/* ============================================================
   devhoot — design system & global styles
   Dark-premium theme · brand teal · modern CSS
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand palette (sampled from the devhoot owl) */
  --teal:        #4fd1cc;   /* primary accent  */
  --teal-bright: #79e7e1;   /* hover / glow    */
  --teal-deep:   #0e8c8c;   /* gradients       */
  --teal-ink:    #032523;   /* text on bright  */
  --mist:        #cfe0e2;   /* light grey-blue */

  /* surfaces */
  --bg:        #070f0e;
  --bg-2:      #0a1413;
  --panel:     #0d1a18;
  --panel-2:   #102320;
  --glass:     rgba(190, 235, 230, .045);
  --glass-2:   rgba(190, 235, 230, .07);
  --line:      rgba(150, 220, 212, .12);
  --line-strong: rgba(150, 220, 212, .22);

  /* text */
  --text:      #e8f3f1;
  --text-dim:  #9bb3b0;
  --text-faint:#6c8481;

  /* gradients */
  --grad-teal: linear-gradient(135deg, #79e7e1 0%, #4fd1cc 42%, #1aa6a0 100%);
  --grad-text: linear-gradient(100deg, #eafffd 0%, #7fe5df 55%, #4fd1cc 100%);
  --glow:      0 0 0 1px rgba(79,209,204,.25), 0 18px 50px -12px rgba(79,209,204,.45);

  /* shape */
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px; --pill: 999px;

  /* type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1280px;   /* max content width — fills wide screens while keeping line length readable */
  --gut: clamp(20px, 5vw, 48px);
  --sect: clamp(60px, 7vw, 104px);   /* vertical rhythm between sections (tighter on desktop) */

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(15px, .55vw + 14px, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ambient page background: aurora + grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -5%, rgba(79,209,204,.16), transparent 60%),
    radial-gradient(50% 45% at 100% 8%, rgba(14,140,140,.14), transparent 55%),
    radial-gradient(45% 40% at 50% 120%, rgba(121,231,225,.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(79,209,204,.3); color: #fff; }

/* ---------- 3. Typography ---------- */
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 4. Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 90px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal)); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; font-size: 1.08rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-dim); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  padding: .92em 1.5em; border-radius: var(--pill);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--grad-teal); color: var(--teal-ink); box-shadow: 0 10px 30px -10px rgba(79,209,204,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(79,209,204,.8); }
.btn--ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--glass-2); border-color: var(--teal); transform: translateY(-2px); color: #fff; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 6. Glass card ---------- */
.card {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  backdrop-filter: blur(12px) saturate(130%);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::after { /* top sheen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.card--hover:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }

/* ---------- 7. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s, padding .35s;
  border-bottom: 1px solid transparent;
  padding-block: .7rem;   /* a touch more vertical presence */
}
.nav.scrolled {
  background: rgba(7,15,14,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.brand img { width: 38px; height: 38px; }
/* the navbar logo gets a bit more presence than the footer one */
.nav__row .brand { font-size: 1.45rem; }
.nav__row .brand img { width: 42px; height: 42px; }
.brand b { font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a { padding: .5rem .9rem; border-radius: var(--pill); color: var(--text-dim); font-size: 1rem; font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: var(--glass); }
.nav__cta { display: flex; align-items: center; gap: .5rem; }
.nav__burger { display: none; position: relative; z-index: 101; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
/* z-index keeps the burger (which morphs into a white ✕) above the open mobile drawer */
.nav__burger span, .nav__burger span::before, .nav__burger span::after { content: ""; display: block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav__burger span::before { transform: translateY(-6px); } .nav__burger span::after { transform: translateY(4px); }
.nav.open .nav__burger span { background: transparent; }
.nav.open .nav__burger span::before { transform: rotate(45deg); }
.nav.open .nav__burger span::after { transform: rotate(-45deg) translateY(-1.5px); }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 16vw, 180px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { max-width: 42ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.6rem; }
.hero__micro { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .88rem; color: var(--text-faint); }
.hero__micro span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__micro svg { width: 16px; height: 16px; color: var(--teal); }

/* decorative aperture glow behind hero */
.hero__aura { position: absolute; z-index: -1; pointer-events: none; filter: blur(8px); }
.aura-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }

/* ---------- 9. Product mockup (Shopify-Admin style) ---------- */
.mock { perspective: 1600px; position: relative; }
.mock__win {
  background: #f6f7f9; color: #1a1c1d;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotateY(-11deg) rotateX(5deg) rotate(.5deg);
  transition: transform .6s var(--ease-out);
}
.mock:hover .mock__win { transform: rotateY(-5deg) rotateX(2deg); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1f2937; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b4757; }
.mock__bar i:nth-child(1){ background:#ef6b5e;} .mock__bar i:nth-child(2){ background:#f4bf4f;} .mock__bar i:nth-child(3){ background:#5fcf80;}
.mock__bar span { margin-left: 10px; font: 600 12px var(--f-body); color: #8aa; opacity:.8; }
.mock__body { padding: 18px; }
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock__title { display:flex; align-items:center; gap:9px; font: 600 15px var(--f-display); color:#101418; }
.mock__title img { width: 26px; height: 26px; }
.mock__btn { font: 600 12px var(--f-body); background:#04201f; color:#fff; padding:7px 12px; border-radius:9px; }
.gcard { background:#fff; border:1px solid #e4e7eb; border-radius:13px; padding:14px; margin-bottom:11px; box-shadow:0 1px 2px rgba(20,30,40,.04); }
.gcard__top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.gcard__label { font:600 13.5px var(--f-body); color:#1a1c1d; }
.gcard__sub { font-size:11.5px; color:#6b7680; }
.pill { font:600 10.5px var(--f-body); padding:3px 9px; border-radius:999px; letter-spacing:.02em; }
.pill--on { background:#e3f5ec; color:#0c7a4a; }
.pill--off { background:#eef0f2; color:#69737d; }
.code { font:600 12.5px ui-monospace, "SF Mono", Menlo, monospace; background:#0e1a18; color:#7fe5df; padding:5px 10px; border-radius:8px; display:inline-block; letter-spacing:.06em; }
.gcard__meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.tag { display:inline-flex; align-items:center; gap:5px; font:500 11px var(--f-body); color:#404a52; background:#f1f3f5; border:1px solid #e4e7eb; padding:4px 9px; border-radius:7px; }
.tag svg { width:12px; height:12px; color:#1aa6a0; }

/* floating chips around mockup */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(13,26,24,.85); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); border-radius: var(--pill);
  padding: .55rem .9rem; font: 600 .82rem var(--f-display); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.7);
}
.float-chip svg { width: 16px; height: 16px; color: var(--teal); }
.float-chip--a { top: 6%; left: -7%; }
.float-chip--b { bottom: 16%; left: -10%; }
.float-chip--c { bottom: 4%; right: -4%; }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 6s ease-in-out infinite; }
  .float-chip--b { animation-delay: -2s; } .float-chip--c { animation-delay: -4s; }
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---------- 10. Trust marquee ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,.012); }
.trust__inner { display: flex; align-items: center; gap: clamp(1.5rem,4vw,3.2rem); padding-block: 1.4rem; flex-wrap: wrap; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-faint); font: 500 .92rem var(--f-display); letter-spacing: .01em; white-space: nowrap; }
.trust__item svg { width: 19px; height: 19px; color: var(--teal); opacity: .9; }

/* ---------- 11. Feature grid ---------- */
.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature__ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(121,231,225,.22), rgba(79,209,204,.06));
  border: 1px solid var(--line-strong); margin-bottom: 1.1rem;
}
.feature__ic svg { width: 23px; height: 23px; color: var(--teal); }
.feature h3 { margin-bottom: .5rem; color: #fff; }
.feature p { font-size: .96rem; }
.feature--wide { grid-column: span 2; }

/* ---------- 12. Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.6rem); }
.steps--4 { grid-template-columns: repeat(4,1fr); }   /* support page: 4 steps on a single row */
.step { position: relative; padding-top: 1rem; }
.step__n { font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--teal); opacity: .7; line-height: 1; margin-bottom: .8rem; }
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .96rem; }
.step__line { position: absolute; top: 1.6rem; left: 3.2rem; right: -1rem; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); opacity: .4; }
.step:last-child .step__line { display: none; }

/* ---------- 13. Split (problem/solution, under the hood) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.checklist li { display: flex; gap: .8rem; padding: .55rem 0; color: var(--text-dim); font-size: 1rem; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: .15rem; }
.painlist li { display: flex; gap: .8rem; padding: .55rem 0; color: var(--text-dim); }
.painlist li svg { flex: none; width: 21px; height: 21px; color: #e0726a; margin-top: .15rem; opacity:.85; }

/* spec / under-the-hood mini cards */
.spec { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.spec:first-child { border-top: none; }
.spec__ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); }
.spec__ic svg { width: 19px; height: 19px; color: var(--teal); }
.spec h4 { font-family: var(--f-display); font-size: 1rem; color: #fff; margin-bottom: .15rem; }
.spec p { font-size: .9rem; }

/* ---------- 14. About / apps catalog ---------- */
.appcard { display: flex; flex-direction: column; gap: 1rem; }
.appcard__icon { width: 56px; height: 56px; border-radius: 15px; }
.appcard__status { font: 600 .72rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.status--live { background: rgba(95,207,128,.14); color: #79e0a0; border: 1px solid rgba(95,207,128,.3); }
.status--soon { background: var(--glass); color: var(--text-faint); border: 1px solid var(--line); }
.appcard--ghost { display: grid; place-items: center; text-align: center; border-style: dashed; color: var(--text-faint); min-height: 200px; }
.appcard--ghost .feature__ic { margin: 0 auto 1rem; }

/* ---------- 15. Pricing ---------- */
.price { max-width: 460px; margin-inline: auto; text-align: center; }
.price__amt { font-family: var(--f-display); font-weight: 600; font-size: 3.6rem; color: #fff; line-height: 1; letter-spacing: -.04em; }
.price__amt small { font-size: 1rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0; }
.price__list { text-align: left; margin: 1.6rem 0; display: grid; gap: .2rem; }
.price__badge { display:inline-block; font:600 .75rem var(--f-display); letter-spacing:.08em; text-transform:uppercase; color: var(--teal); background: rgba(79,209,204,.1); border:1px solid var(--line-strong); padding:.3rem .9rem; border-radius:999px; margin-bottom:1.2rem; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem .3rem; font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; color: #fff; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; transition: transform .3s, border-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; width: 11px; height: 1.5px; background: var(--teal); transition: transform .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { transform: rotate(180deg); border-color: var(--teal); }
.faq details[open] summary .pm::after { transform: rotate(0); opacity: 0; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 .3rem 1.5rem; font-size: 1rem; max-width: 70ch; }

/* ---------- 17. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.6rem,6vw,4.5rem); text-align: center; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(14,140,140,.16), rgba(7,15,14,.4)); }
.cta-band::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(60% 120% at 50% 0%, rgba(79,209,204,.22), transparent 70%); }
.cta-band h2 { margin-bottom: 1rem; }
.signup { display: flex; gap: .6rem; max-width: 440px; margin: 1.8rem auto 0; flex-wrap: wrap; }
.signup input { flex: 1; min-width: 200px; padding: .9em 1.2em; border-radius: var(--pill); background: rgba(7,15,14,.6); border: 1px solid var(--line-strong); color: #fff; font: inherit; }
.signup input::placeholder { color: var(--text-faint); }
.signup input:focus-visible { border-color: var(--teal); outline: none; }
.signup__note { margin-top: 1rem; font-size: .85rem; color: var(--text-faint); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120%); background: var(--panel-2); border: 1px solid var(--teal); color: #fff; padding: .85rem 1.3rem; border-radius: var(--pill); font: 500 .92rem var(--f-display); box-shadow: var(--glow); z-index: 200; transition: transform .5s var(--ease-out); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 18. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem,6vw,4.5rem) 2rem; margin-top: var(--sect); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { font-size: .95rem; max-width: 34ch; }
.footer h5 { font-family: var(--f-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer__links li { margin-bottom: .65rem; }
.footer__links a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--teal); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .85rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-dim); transition: all .2s; }
.footer__social a:hover { color: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }

/* ---------- 19. Legal / docs pages ---------- */
.page-hero { padding-top: clamp(130px, 15vw, 175px); padding-bottom: clamp(30px,5vw,50px); }
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.4rem,2.6vw,1.9rem); margin: 2.6rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: var(--mist); }
.legal p, .legal li { color: var(--text-dim); margin-bottom: .9rem; font-size: 1rem; }
.legal ul { padding-left: 0; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.legal ul li { display: block; line-height: 1.55; }
.legal ul li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 .75rem 0 0; vertical-align: text-top; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .meta { color: var(--text-faint); font-size: .9rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; display: block; overflow-x: auto; }
.legal table::-webkit-scrollbar { height: 8px; }
.legal table::-webkit-scrollbar-thumb { background: rgba(79,209,204,.32); border-radius: 999px; }
.legal th, .legal td { min-width: 12rem; text-align: left; padding: .75rem .9rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--glass); color: #fff; font-family: var(--f-display); font-weight: 500; }
.legal td { color: var(--text-dim); }
.toc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.6rem; margin-bottom: 2.4rem; }
.toc h5 { font-family: var(--f-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.toc ol { columns: 2; column-gap: 2rem; padding-left: 1.1rem; margin: 0; color: var(--text-dim); }
.toc ol li { margin-bottom: .85rem; break-inside: avoid-column; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--teal); }

/* ---------- 20. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s;} .reveal[data-d="2"]{ transition-delay:.16s;} .reveal[data-d="3"]{ transition-delay:.24s;} .reveal[data-d="4"]{ transition-delay:.32s;} .reveal[data-d="5"]{ transition-delay:.4s;}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 21. Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 46ch; }
  .mock { max-width: 460px; margin: 1rem auto 0; }
  .mock__win { transform: none; }
  .split { grid-template-columns: 1fr; }
  .grid--3, .steps, .steps--4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { padding-block: 1.05rem; }   /* more breathing room above the logo / burger on phones */
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); z-index: 90;
    background: #0a1413;   /* solid: page content never bleeds through the drawer */
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease-out);
    padding: 5.6rem 1.6rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: stretch;
  }
  .nav.open .nav__menu { transform: none; }
  /* On mobile, drop the navbar's backdrop-filter: with it, the fixed drawer would be positioned
     relative to the short navbar (CSS containing-block gotcha) and break when the page is scrolled. */
  .nav.scrolled { backdrop-filter: none; background: rgba(7,15,14,.94); }
  /* The burger morphs into the white ✕ — no border box around it when open. */
  .nav.open .nav__burger { border-color: transparent; background: transparent; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__links a { padding: .9rem 1rem; border-radius: 12px; color: var(--text); font-family: var(--f-display); font-size: 1.05rem; }
  .nav__cta { flex-direction: column; }
  .nav__cta .btn { width: 100%; }
  .nav__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 80; }
  .nav.open .nav__backdrop { opacity: 1; visibility: visible; }
}
@media (max-width: 600px) {
  .grid--3, .grid--2, .steps, .steps--4, .footer__grid { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .step__line { display: none; }
  .toc ol { columns: 1; }
  .toc { padding: 1.2rem 1.4rem; }
  .legal { padding-inline: 0.75rem; }
  .legal h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
  .legal table { min-width: 100%; }
  .legal th, .legal td { min-width: 0; }
  .float-chip--a { top: 2%; left: 2%; } .float-chip--b { bottom: 8%; left: 0; } .float-chip--c { bottom: 2%; right: 2%; }
}

/* desktop: keep mobile menu container inert */
@media (min-width: 761px) {
  .nav__menu { display: contents; }
  .nav__backdrop { display: none; }
}

/* anchor offset for fixed nav + scrollspy active state */
[id] { scroll-margin-top: 92px; }
.nav__links a[data-active] { color: #fff; }
.nav__links a[data-active]::after { content: ""; }
