/* =========================================================
   Marketing Site — styles.css
   Theme: Dark, editorial. Amber accent. Instrument Serif display.

   Satoshi loaded via Bunny Fonts (no Google tracking).
   Instrument Serif via Google Fonts (set in HTML <head>).
   ========================================================= */

/* ── Satoshi font ── */
@import url("https://fonts.bunny.net/css?family=satoshi:400,500,700&display=swap");

/* ── Design tokens ── */
:root {
  --bg:        #0c0c0e;
  --bg-card:   #131316;
  --bg-hover:  #1a1a1f;
  --border:    rgba(255,255,255,0.08);
  --text:      #e8e8ea;
  --text-muted:#888898;
  --text-dim:  #555566;
  --accent:    #f59e0b;
  --accent-dim:rgba(245,158,11,0.12);
  --accent-glow:rgba(245,158,11,0.25);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.22s ease;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subhead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--accent);
  color: #0c0c0e;
}
.btn--primary:hover {
  background: #fbbf24;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--sm  { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--lg  { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  max-width: 72rem;
  margin-inline: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav__mobile-link:hover { color: var(--text); }
.nav__mobile-cta { margin-top: 1.25rem; }

@media (max-width: 680px) {
  .nav__links       { display: none; }
  .nav__mobile-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

/* Subtle noise texture overlay */
.hero__noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.07) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: cover, 300px 300px;
}

.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__form { max-width: 38rem; }

.hero__form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__input {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero__input::placeholder { color: var(--text-dim); }
.hero__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero__form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.hero__form-note.success { color: #34d399; }
.hero__form-note.error   { color: #f87171; }

.hero__secondary-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.hero__secondary-cta:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Logo strip (hidden by default, uncomment in HTML) ── */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.logos__label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.logos__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.logos__img {
  height: 24px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
}
.logos__img:hover { opacity: 0.7; filter: grayscale(0.3); }

/* ── Features ── */
.features {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.features__header {
  margin-bottom: 3.5rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(245,158,11,0.25);
  background: var(--bg-hover);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card__icon svg { width: 100%; height: 100%; }

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.feature-card__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── FAQ ── */
.faq {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.faq .section-label { margin-bottom: 2.5rem; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 56rem;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--accent); }

.faq__chevron {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--text-dim);
  transition: transform var(--transition);
}
details[open] .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 62ch;
}

/* ── Bottom CTA ── */
.cta-bottom {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-bottom__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.cta-bottom__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-bottom__form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 36rem;
  margin-inline: auto;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo .nav__logo-text { font-size: 1rem; color: var(--text-dim); }

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__link { color: var(--text-dim); transition: color var(--transition); }
.footer__link:hover { color: var(--text-muted); }

.footer__copy { color: var(--text-dim); }

/* ── Problem / Solution band ── */
.problem {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem__col {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.problem__col--pain {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.problem__col--shift {
  background: var(--bg-hover);
  position: relative;
}

/* Subtle amber glow on shift col */
.problem__col--shift::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(245,158,11,0.06) 0%, transparent 70%);
}

.problem__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.problem__col--shift .problem__label {
  color: var(--accent);
}

.problem__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.problem__headline em {
  font-style: italic;
  color: var(--accent);
}

.problem__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.problem__list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.problem__list--positive li {
  color: var(--text-muted);
}

.problem__list--positive li::first-letter {
  color: var(--accent);
}

@media (max-width: 680px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }
  .problem__col--pain {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ── How It Works ── */
.how {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.how__header {
  margin-bottom: 4rem;
}

.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line between steps on desktop */
.how__steps::before {
  content: '';
  position: absolute;
  top: 1.6rem;
  left: calc(33.333% / 2);
  right: calc(33.333% / 2);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
  pointer-events: none;
}

.how__step {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  padding-top: 0;
}

.how__step:first-child { padding-left: 0; }
.how__step:last-child { padding-right: 0; }

.how__step-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 999px;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.how__step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.how__step-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .how__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .how__steps::before { display: none; }
  .how__step { padding: 0; }
  .how__step-number { margin-bottom: 1.25rem; }
}

/* ── Bottom CTA (upgraded with eyebrow + italic headline) ── */
.cta-bottom__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.cta-bottom__headline em {
  font-style: italic;
  color: var(--accent);
}

/* ── Scroll-triggered fade-in utility ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .hero__form-row { flex-direction: column; }
  .btn--lg { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cta-bottom__form { flex-direction: column; }
}

/* ── Interactive Demo ── */
.demo {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.demo__header {
  margin-bottom: 3rem;
}

.demo__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.demo__heading em {
  font-style: italic;
  color: var(--accent);
}

.demo__subhead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.demo__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.demo__col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.demo__textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  padding: 1.1rem 1.25rem;
  resize: vertical;
  min-height: 260px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
}
.demo__textarea::placeholder { color: var(--text-dim); }
.demo__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.demo__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.demo__extract-btn {
  flex-shrink: 0;
}

.demo__reset-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0;
  transition: color var(--transition);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.demo__reset-btn:hover {
  color: var(--text-muted);
  text-decoration-color: var(--text-dim);
}

/* Output column */
.demo__output-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 300px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.demo__output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.demo__output-empty-icon {
  font-size: 2rem;
  color: var(--text-dim);
  opacity: 0.4;
}

.demo__output-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo__col-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo__result-col {
  animation: demo-fade-in 0.35s ease both;
}

@keyframes demo-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo__result-col:nth-child(2) { animation-delay: 0.08s; }
.demo__result-col:nth-child(3) { animation-delay: 0.16s; }

.demo__result-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.demo__result-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.demo__result-label--amber { color: var(--accent); }
.demo__result-label--green { color: #34d399; }
.demo__result-label--blue  { color: #60a5fa; }

.demo__result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo__result-list li {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.45rem 0.65rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 2px solid currentColor;
}

.demo__result-list--amber li { border-left-color: var(--accent); }
.demo__result-list--green li { border-left-color: #34d399; }
.demo__result-list--blue  li { border-left-color: #60a5fa; }

.demo__no-items {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.35rem 0.65rem;
}

.demo__footer-cta {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo__footer-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(245,158,11,0.3);
  transition: border-color var(--transition), color var(--transition);
}
.demo__footer-link:hover {
  border-color: var(--accent);
}

/* Responsive: stack input above output on mobile */
@media (max-width: 860px) {
  .demo__panel {
    grid-template-columns: 1fr;
  }
  .demo__textarea {
    min-height: 200px;
  }
  .demo__output-col {
    min-height: 200px;
  }
}
