/* chemtize_bot landing — single design system, dark concrete + neon graffiti
   tokens ------------------------------------------------------------------ */
:root {
  --bg: #0d0d0f;
  --bg-soft: #141417;
  --surface: #1a1a1f;
  --ink: #f2f2f0;
  --muted: #9a9aa3;
  --line: #26262c;
  --pink: #ff2ea6;
  --lime: #b6ff00;
  --orange: #ffb400;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--pink); color: #fff; }

/* header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,15,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-flask { width: 26px; height: 26px; color: var(--ink); }
.logo-text { font-family: var(--font-display); font-size: .85rem; font-weight: 500; letter-spacing: .02em; }
.logo-cursor { color: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.btn-nav { padding: 9px 18px; border-radius: 999px; }

.menu-btn {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; padding: 12px; cursor: pointer;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-solid { background: var(--pink); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,46,166,.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-big { padding: 16px 34px; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px;
}

/* hero ------------------------------------------------------------------ */
.hero { padding: 96px 0 72px; background:
  radial-gradient(ellipse 60% 45% at 78% 18%, rgba(255,46,166,.09), transparent 60%),
  radial-gradient(ellipse 45% 40% at 12% 82%, rgba(182,255,0,.05), transparent 60%),
  var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 26px;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  line-height: 1.05; letter-spacing: -.01em;
}
.accent { color: var(--pink); }
.lead { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* terminal mock */
.term {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2e2e35; }
.term-bar i:first-child { background: var(--pink); }
.term-title { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.term-body { padding: 22px 22px 18px; font-family: var(--font-mono); font-size: .88rem; line-height: 2; }
.t-user { color: var(--ink); background: rgba(255,46,166,.12); padding: 3px 10px; border-radius: 8px; display: inline-block; }
.t-ok { color: var(--lime); margin-right: 8px; }
.t-run { color: var(--orange); margin-right: 8px; }
.t-cursor { animation: blink 1s steps(1) infinite; color: var(--lime); }

/* ticker ------------------------------------------------------------------ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: var(--bg-soft);
}
.ticker-track {
  display: flex; gap: 28px; width: max-content;
  padding: 14px 0; animation: slide 26s linear infinite;
}
.ticker-track span { font-family: var(--font-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ticker-track i { color: var(--pink); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections ------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin-bottom: 48px; }

/* features — numbered rows, asymmetric, not a card grid */
.features { display: flex; flex-direction: column; }
.frow {
  display: grid; grid-template-columns: 70px 240px 1fr; gap: 28px;
  align-items: baseline; padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.frow:first-child { border-top: 1px solid var(--line); }
.frow { transition: background .2s; }
.frow:hover { background: rgba(255,255,255,.015); }
.fnum { font-family: var(--font-mono); font-size: .8rem; color: var(--lime); }
.ftitle { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; line-height: 1.3; }
.fdesc { color: var(--muted); font-size: .98rem; }

/* steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.step { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { font-family: var(--font-mono); font-size: .78rem; color: var(--lime); display: block; margin-bottom: 16px; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }
.step code, .cmd code {
  font-family: var(--font-mono); font-size: .85em;
  background: rgba(182,255,0,.08); color: var(--lime);
  padding: 2px 7px; border-radius: 6px;
}
.cmd { border-top: 1px solid var(--line); padding-top: 26px; }
.cmd p { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; color: var(--muted); font-size: .95rem; }
.cmd p span { color: var(--muted); }
.cmd code { white-space: nowrap; }

/* rules ------------------------------------------------------------------ */
.rules-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.rules-note { color: var(--muted); margin-top: -28px; max-width: 38ch; }
.rules-list { list-style: none; }
.rules-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.rules-list li:first-child { border-top: 1px solid var(--line); }
.rules-list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; margin-bottom: 8px; }
.rules-list h3::before { content: "→ "; color: var(--pink); }
.rules-list p { color: var(--muted); font-size: .96rem; }

/* faq ------------------------------------------------------------------ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0;
  font-weight: 700; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--pink);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 62ch; }

/* cta ------------------------------------------------------------------ */
.cta {
  padding: 110px 0; text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255,46,166,.12), transparent 65%),
    var(--bg);
}
.display-2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.cta p { color: var(--muted); margin-bottom: 36px; }

/* footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer p, .footer a { font-size: .88rem; color: var(--muted); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* reveal on scroll — hidden only when JS is confirmed running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
section[id] { scroll-margin-top: 80px; }

/* responsive ------------------------------------------------------------------ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .frow { grid-template-columns: 48px 1fr; }
  .frow .fdesc { grid-column: 2; }
  .steps { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; gap: 24px; }
  .rules-note { margin-top: 0; }

  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .btn-nav { margin-top: 10px; display: inline-flex; width: auto; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .frow { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .frow .fdesc { grid-column: 1; }
  .term-body { font-size: .8rem; }
}
