/* ============================================
   Worker Harness LP — Premium SaaS Editorial
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f0d1a;
  --ink-light: #3d3654;
  --ink-muted: #6e6587;
  --surface: #faf9fc;
  --surface-raised: #ffffff;
  --surface-dim: #f0eef5;
  --accent: #6c3ce0;
  --accent-light: #8b5cf6;
  --accent-glow: rgba(108, 60, 224, .15);
  --accent-subtle: #ede8fb;
  --cta: #e8590c;
  --cta-hover: #d1480a;
  --cta-glow: rgba(232, 89, 12, .2);
  --line-green: #06c755;
  --border: rgba(15, 13, 26, .08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.sp-only { display: inline; }
strong { font-weight: 700; }

/* --- Animations --- */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.anim[data-delay="1"] { transition-delay: .1s; }
.anim[data-delay="2"] { transition-delay: .2s; }
.anim[data-delay="3"] { transition-delay: .3s; }
.anim[data-delay="4"] { transition-delay: .4s; }
.anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 24px;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(250, 249, 252, .85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-en); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); letter-spacing: -.02em;
}
.nav-logo-dot { color: var(--accent); }
.nav-cta {
  font-size: .8rem; font-weight: 700;
  color: var(--surface); background: var(--ink);
  padding: 8px 20px; border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta:active { transform: scale(.96); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ja); font-size: .95rem; font-weight: 700;
  text-decoration: none; border-radius: 100px;
  padding: 16px 32px;
  transition: all .25s var(--ease);
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 4px 20px var(--cta-glow), 0 1px 3px rgba(0,0,0,.1);
}
.btn--primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 32px var(--cta-glow), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--ink); background: rgba(15,13,26,.03);
}
.btn--lg { padding: 20px 40px; font-size: 1.05rem; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 0 80px; overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,60,224,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,60,224,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 400px; height: 400px; top: -10%; right: -10%;
  background: rgba(108, 60, 224, .25);
}
.hero-orb--2 {
  width: 300px; height: 300px; bottom: -5%; left: -5%;
  background: rgba(232, 89, 12, .12);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.hero .container { position: relative; text-align: center; }
.hero-badge {
  display: inline-block;
  font-family: var(--font-en); font-size: .7rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-light); background: rgba(108,60,224,.15);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(1.75rem, 6vw, 2.8rem);
  font-weight: 900; line-height: 1.4;
  color: #fff; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero-highlight {
  position: relative;
  background: linear-gradient(135deg, var(--accent-light), var(--cta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.65);
  line-height: 1.9; margin-bottom: 32px;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero .btn--ghost { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.hero .btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

.hero-proof {
  margin-top: 40px; display: flex; align-items: center;
  justify-content: center; gap: 12px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.hero-proof strong { color: rgba(255,255,255,.85); }
.hero-proof-avatars { display: flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: hsl(var(--hue), 50%, 60%);
  border: 2px solid var(--ink);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* --- Section common --- */
.section-label {
  font-family: var(--font-en); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; color: var(--accent);
  margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 900; line-height: 1.5;
  text-align: center; margin-bottom: 48px;
  letter-spacing: -.01em;
}
.text-accent { color: var(--accent); }

/* --- Pain Points --- */
.pain { padding: 100px 0; }
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.pain-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,13,26,.06);
}
.pain-card-num {
  font-family: var(--font-en); font-size: .65rem; font-weight: 700;
  color: var(--ink-muted); letter-spacing: .1em;
  margin-bottom: 12px;
}
.pain-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pain-card h3 {
  font-size: .95rem; font-weight: 700; margin-bottom: 6px;
}
.pain-card p {
  font-size: .82rem; color: var(--ink-muted); line-height: 1.7;
}

/* --- Features --- */
.features { padding: 80px 0 100px; background: var(--surface-dim); }
.feature-row {
  display: flex; flex-direction: column; gap: 32px;
  margin-bottom: 72px; align-items: center;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-visual { width: 100%; }
.feature-text { width: 100%; }
.feature-num-label {
  font-family: var(--font-en); font-size: .7rem; font-weight: 700;
  color: var(--accent); letter-spacing: .15em; margin-bottom: 8px;
}
.feature-text h3 {
  font-size: 1.3rem; font-weight: 900; margin-bottom: 12px;
}
.feature-text p {
  font-size: .9rem; color: var(--ink-light); line-height: 1.9;
}

/* Feature mockup — worker table */
.feature-mockup {
  background: var(--surface-raised); border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(15,13,26,.05);
}
.mockup-bar {
  background: var(--surface-dim); padding: 10px 14px;
  display: flex; gap: 6px;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
}
.mockup-body { padding: 4px; }
.mockup-row {
  display: grid; grid-template-columns: 1.5fr 1fr 0.7fr 1fr;
  padding: 10px 14px; font-size: .75rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.mockup-row--header {
  font-weight: 700; font-size: .65rem; color: var(--ink-muted);
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface-dim);
  border-radius: var(--radius-xs);
}
.num-hi { color: var(--accent); font-weight: 700; }
.status-on {
  font-size: .65rem; font-weight: 600;
  color: #16a34a; background: #dcfce7;
  padding: 2px 8px; border-radius: 100px; display: inline-block; text-align: center;
}
.status-off {
  font-size: .65rem; font-weight: 600;
  color: var(--ink-muted); background: var(--surface-dim);
  padding: 2px 8px; border-radius: 100px; display: inline-block; text-align: center;
}

/* Feature flow — LINE integration */
.feature-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 40px 16px;
  background: var(--surface-raised); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .4; transition: opacity .4s;
}
.flow-step--active { opacity: 1; }
.flow-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.flow-icon--line { background: #e8f9ee; color: var(--line-green); }
.flow-step span { font-size: .7rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.flow-line {
  width: 24px; height: 2px; background: var(--border);
  margin: 0 4px; margin-bottom: 22px;
  flex-shrink: 0;
}

/* Feature calc — reward */
.feature-calc {
  background: var(--surface-raised); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 8px 40px rgba(15,13,26,.05);
}
.calc-header {
  padding: 16px 20px; font-size: .8rem; font-weight: 700;
  background: var(--surface-dim); color: var(--ink-light);
}
.calc-rows { padding: 4px 20px; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.calc-amount { font-family: var(--font-en); font-weight: 700; color: var(--accent); }
.calc-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-size: 1rem; font-weight: 900;
  background: var(--ink); color: #fff;
}
.calc-badge {
  text-align: center; padding: 8px;
  font-size: .7rem; font-weight: 600;
  color: #16a34a; background: #dcfce7;
}

/* --- Stats --- */
.stats {
  padding: 80px 0;
  background: var(--ink);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.stat-card {
  text-align: center; padding: 36px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.stat-value {
  font-family: var(--font-en); font-size: 3rem; font-weight: 700;
  color: #fff; line-height: 1; display: inline;
}
.stat-unit {
  font-size: 1rem; font-weight: 700;
  color: var(--accent-light); display: inline; margin-left: 2px;
}
.stat-label {
  font-size: .78rem; color: rgba(255,255,255,.45);
  margin-top: 8px;
}

/* --- Steps --- */
.steps { padding: 100px 0; }
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 0; text-align: center; padding: 0 12px;
}
.step-connector {
  display: flex; align-items: center; padding-top: 20px;
  color: var(--border);
}
.step-num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 1.1rem; font-weight: 700;
  background: var(--accent-subtle); color: var(--accent);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .82rem; color: var(--ink-muted); line-height: 1.7; }

/* --- FAQ --- */
.faq { padding: 100px 0; background: var(--surface-dim); }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-ja); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-align: left; gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; color: var(--ink-muted); transition: transform .3s var(--ease); }
.faq-icon-v { transition: transform .3s var(--ease), opacity .3s; }
.faq-q[aria-expanded="true"] .faq-icon-v { transform: scaleY(0); opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.faq-a p {
  padding-bottom: 20px;
  font-size: .88rem; color: var(--ink-muted); line-height: 1.8;
}

/* --- Final CTA --- */
.cta-final {
  position: relative; padding: 100px 0; overflow: hidden;
  background: var(--ink); text-align: center;
}
.cta-final-bg { position: absolute; inset: 0; }
.cta-orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
}
.cta-orb--1 {
  width: 500px; height: 500px; top: -30%; left: 50%; transform: translateX(-50%);
  background: rgba(108, 60, 224, .2);
}
.cta-orb--2 {
  width: 300px; height: 300px; bottom: -20%; right: -5%;
  background: rgba(232, 89, 12, .1);
}
.cta-final .container { position: relative; }
.cta-final h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900; color: #fff; line-height: 1.6;
  margin-bottom: 16px;
}
.cta-final p {
  font-size: .9rem; color: rgba(255,255,255,.5);
  margin-bottom: 32px; line-height: 1.9;
}

/* --- Chat mockup --- */
.mockup-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; }
.chat-msg--in { align-items: flex-start; }
.chat-msg--out { align-items: flex-end; }
.chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px;
  font-size: .78rem; line-height: 1.6;
}
.chat-bubble--in {
  background: var(--surface-dim); color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-bubble--out {
  background: var(--accent); color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-time {
  font-size: .6rem; color: var(--ink-muted); margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
.chat-auto {
  font-size: .55rem; font-weight: 600;
  color: var(--line-green); background: #e8f9ee;
  padding: 1px 6px; border-radius: 100px;
}

/* --- Feature extras grid --- */
.feature-extras {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 48px;
}
.extra-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.extra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15,13,26,.06);
}
.extra-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.extra-card h4 { font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.extra-card p { font-size: .78rem; color: var(--ink-muted); line-height: 1.7; }

/* --- Comparison table --- */
.compare { padding: 80px 0; }
.compare-table {
  max-width: 560px; margin: 0 auto;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.compare-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-row span {
  padding: 14px 16px; display: flex; align-items: center;
}
.compare-row--header {
  background: var(--surface-dim); font-weight: 700;
  font-size: .72rem; letter-spacing: .05em;
  color: var(--ink-muted);
}
.compare-row--header .compare-ours { color: var(--accent); }
.compare-ours { font-weight: 600; }
.compare-win {
  color: var(--accent); background: var(--accent-glow);
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-en); font-weight: 700; font-size: .85rem;
  color: rgba(255,255,255,.3); letter-spacing: -.01em;
}
.footer p { font-size: .72rem; color: rgba(255,255,255,.25); }

/* --- Desktop --- */
@media (min-width: 768px) {
  .sp-only { display: none; }
  .pain-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .feature-row { flex-direction: row; gap: 48px; }
  .feature-row--reverse { flex-direction: row-reverse; }
  .feature-visual { width: 55%; flex-shrink: 0; }
  .feature-text { width: 45%; }
  .flow-line { width: 40px; margin: 0 8px; }
}
