*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. DESIGN TOKENS — LIGHT THEME */
:root,
[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-1: #efefef;
  --bg-nav: rgba(245, 245, 245, 0.88);
  --border: rgba(10, 10, 10, 0.08);
  --border-hi: rgba(10, 10, 10, 0.14);
  --ink: #0a0a0a;
  --ink-90: rgba(10, 10, 10, 0.9);
  --ink-60: rgba(10, 10, 10, 0.55);
  --ink-30: rgba(10, 10, 10, 0.3);
  --ink-12: rgba(10, 10, 10, 0.1);
  --ink-06: rgba(10, 10, 10, 0.05);
  --amber: #e8a020;
  --amber-glow: rgba(232, 160, 32, 0.1);
  --amber-border: rgba(232, 160, 32, 0.35);
  --amber-dim: rgba(232, 160, 32, 0.12);
  --neu-shadow-dark: rgba(0, 0, 0, 0.1);
  --neu-shadow-light: rgba(255, 255, 255, 0.88);
  --toggle-bg: rgba(10, 10, 10, 0.07);
  --toggle-knob: #ffffff;
  --toggle-knob-shadow: rgba(10, 10, 10, 0.18);
  --grid-line: rgba(10, 10, 10, 0.07);
  --scrollbar-thumb: rgba(10, 10, 10, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* 3. DESIGN TOKENS — DARK THEME */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-1: #0f0f0f;
  --bg-nav: rgba(10, 10, 10, 0.85);
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.13);
  --ink: #ffffff;
  --ink-90: rgba(255, 255, 255, 0.9);
  --ink-60: rgba(255, 255, 255, 0.6);
  --ink-30: rgba(255, 255, 255, 0.3);
  --ink-12: rgba(255, 255, 255, 0.12);
  --ink-06: rgba(255, 255, 255, 0.06);
  --amber: #e8a020;
  --amber-glow: rgba(232, 160, 32, 0.08);
  --amber-border: rgba(232, 160, 32, 0.4);
  --amber-dim: rgba(232, 160, 32, 0.1);
  --neu-shadow-dark: rgba(0, 0, 0, 0.5);
  --neu-shadow-light: rgba(255, 255, 255, 0.03);
  --toggle-bg: rgba(255, 255, 255, 0.1);
  --toggle-knob: #0a0a0a;
  --toggle-knob-shadow: rgba(0, 0, 0, 0.5);
  --grid-line: rgba(255, 255, 255, 0.07);
  --scrollbar-thumb: rgba(255, 255, 255, 0.12);
}

/* 4. GLOBAL TRANSITIONS */
body,
nav,
footer,
section,
.wordmark,
.stat-callout,
.section-label,
.pain-headline,
.pain-body,
.how-headline,
.closer-headline,
.step-title,
.step-body,
.step-number,
.footer-email,
.copyright,
.footer-link,
.tagline,
.social-icon,
.hero-headline,
.hero-sub,
.eyebrow,
.free-note,
.closer-sub {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* 5. BASE TYPOGRAPHY */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 6. SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 2px;
}

/* 7. NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.wordmark:hover {
  opacity: 0.65;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 8. THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 4px 0;
}

.toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--toggle-bg);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--toggle-knob);
  border-radius: 50%;
  box-shadow: 0 1px 4px var(--toggle-knob-shadow);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s;
}

[data-theme="dark"] .toggle-knob {
  transform: translateX(18px);
}

.toggle-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
}

/* 9. BUTTONS */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--amber);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.btn-amber:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 160, 32, 0.28);
}

.btn-amber:active {
  transform: translateY(0);
}

.btn-amber.lg {
  padding: 14px 32px;
  font-size: 15px;
}

/* 10. REPORT ID BAR */
.report-bar {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}

.report-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 5px 5px 5px 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.report-bar-inner:focus-within {
  border-color: var(--amber-border);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

.report-bar-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-30);
  flex-shrink: 0;
  margin-right: 10px;
}

.report-bar-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  min-width: 0;
}

.report-bar-input::placeholder {
  color: var(--ink-30);
  font-weight: 300;
}

.report-bar-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.report-bar-btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.report-bar-btn:active {
  transform: translateY(0);
}

/* 11. HERO SECTION */
section {
  position: relative;
}

#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--bg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    black 20%,
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    black 20%,
    transparent 80%
  );
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--ink);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.free-note {
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
}

/* 12. TOOL SUITE — FLOW DIAGRAM */
#tools {
  padding: 120px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-inner {
  max-width: 900px;
  margin: 0 auto;
}

.tools-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 72px;
}

.flow-svg {
  display: block;
  width: 100%;
  overflow: visible;
  margin-bottom: 32px;
}

.flow-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.tool-name {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.tool-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  max-width: 240px;
}

.flow-mobile-wrap {
  display: none;
}

/* 13. PAIN / REALITY SECTION */
#pain {
  padding: 120px 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pain-inner {
  max-width: 680px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 32px;
}

.pain-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.pain-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
}

.pain-body strong {
  color: var(--ink);
  font-weight: 600;
}

.stat-callout {
  display: inline-block;
  border-left: 2px solid var(--amber);
  padding: 16px 24px;
  margin: 36px 0;
  background: var(--amber-glow);
  border-radius: 0 4px 4px 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* 14. HOW IT WORKS — THREE STEPS */
#how {
  padding: 140px 24px;
  background: var(--bg);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 80px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  max-width: 520px;
}

.step::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 56px;
  bottom: -40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-hi), transparent);
}

.step:last-child::before {
  display: none;
}

/* 15. CLOSER — FINAL CTA */
#closer {
  padding: 160px 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closer-inner {
  max-width: 560px;
  margin: 0 auto;
}

.closer-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 44px;
}

.closer-headline em {
  display: block;
  font-style: italic;
  color: var(--ink);
}

.closer-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.closer-sub {
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
}

/* 16. FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 40px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .tagline {
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
}

.footer-email {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-email:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 12px;
  color: var(--ink-30);
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--ink);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--ink-60);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.social-icon:hover {
  color: var(--ink);
  background: var(--ink-06);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 17. SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* 18. HERO LOAD ANIMATIONS */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-2 {
  animation-delay: 0.15s;
}
.hero-anim-3 {
  animation-delay: 0.3s;
}
.hero-anim-4 {
  animation-delay: 0.45s;
}
.hero-anim-5 {
  animation-delay: 0.55s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 19. RESPONSIVE — TABLET (max-width: 800px) */
@media (max-width: 800px) {
  #tools {
    padding: 80px 20px;
  }

  .flow-svg {
    display: none;
  }

  .flow-labels {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .flow-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 40px 0;
  }

  .flow-item:last-child {
    padding-bottom: 0;
  }

  .flow-item-text {
    flex: 1;
  }
  .tool-desc {
    max-width: none;
  }
}

/* 20. RESPONSIVE — MOBILE (max-width: 600px) */
@media (max-width: 600px) {
  nav {
    padding: 0 16px;
  }
  .nav-right {
    gap: 10px;
  }

  nav .btn-amber {
    padding: 8px 14px;
    font-size: 12px;
  }

  #hero {
    padding: 100px 20px 60px;
  }

  .pain-inner,
  .how-inner,
  .closer-inner {
    max-width: 100%;
  }

  #pain,
  #how,
  #closer {
    padding: 80px 20px;
  }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 0 20px;
  }

  .step::before {
    left: 27px;
  }

  footer {
    padding: 40px 20px 32px;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .toggle-track {
    width: 32px;
    height: 20px;
  }
  .toggle-knob {
    width: 14px;
    height: 14px;
  }

  [data-theme="dark"] .toggle-knob {
    transform: translateX(12px);
  }

  .report-bar-input {
    font-size: 12px;
  }
  .report-bar-input::placeholder {
    font-size: 11px;
  }
  .report-bar-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .report-bar-inner {
    padding: 4px 4px 4px 12px;
    border-radius: 10px;
  }
}

/* 21. RESPONSIVE — SMALL MOBILE (max-width: 380px) */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 30px;
  }

  .btn-amber.lg {
    padding: 12px 24px;
    font-size: 14px;
  }

  nav {
    padding: 0 12px;
  }
  .nav-right {
    gap: 8px;
  }
  nav .btn-amber {
    padding: 7px 12px;
    font-size: 11px;
  }
}
