/* Stridu — stridu.com
   Design tokens mirror the app's dark-first system:
   lib/core/theme/stridu_colors.dart + stridu_tokens.dart */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0F19;
  --surface: #151B2C;
  --lime: #CCFF00;
  --lime-deep: #9EFF00;
  --indigo: #6366F1;
  --cyan: #06B6D4;

  --text: #F8FAFC;
  --muted: #94A3B8;
  --dim: #7688A3;

  --glass: rgba(255, 255, 255, .05);
  --glass-strong: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --maxw: 1120px;
  --pad: 24px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient brand glows — fixed so they never create horizontal scroll. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px 520px at 12% -8%, rgba(204, 255, 0, .10), transparent 70%),
    radial-gradient(720px 560px at 92% 8%, rgba(99, 102, 241, .12), transparent 72%),
    radial-gradient(900px 700px at 50% 120%, rgba(6, 182, 212, .07), transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: #E4FF6A; }

::selection { background: rgba(204, 255, 0, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--lime);
  color: #0B0F19;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 99;
}
.skip:focus { left: 16px; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 25, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--lime);
  text-shadow: 0 0 22px rgba(204, 255, 0, .35);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #0B0F19;
  box-shadow: 0 14px 40px -14px rgba(204, 255, 0, .55);
}
.btn-primary:hover { color: #0B0F19; transform: translateY(-2px); box-shadow: 0 20px 50px -14px rgba(204, 255, 0, .7); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(255, 255, 255, .2); color: var(--text); }

/* Store link is not live yet — non-interactive placeholder. */
.btn-soon {
  background: var(--glass);
  border: 1px dashed rgba(204, 255, 0, .45);
  color: var(--lime);
  cursor: default;
}

.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(204, 255, 0, .08);
  border: 1px solid rgba(204, 255, 0, .22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 800;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--lime); }

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.micro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--dim);
  font-size: 14.5px;
  font-weight: 500;
}
.micro li { list-style: none; display: flex; align-items: center; gap: 8px; }
.micro { padding: 0; }
.micro svg { color: var(--lime); flex: none; }

/* ---------- phone frames ---------- */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  overflow: visible;
}

/* Sticky header must not cover anchored section headings. */
[id] { scroll-margin-top: 92px; }

.phone {
  position: relative;
  width: 268px;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(160deg, #2B3550, #10141F 55%, #232C42);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
  flex: none;
}
.phone::after {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 24px;
  border-radius: 999px;
  background: #05070C;
  z-index: 2;
}
.phone img {
  border-radius: 36px;
  width: 100%;
  background: var(--bg);
}

.hero-art .phone-main {
  z-index: 2;
  transform: rotate(-2deg);
}
.hero-art .phone-back {
  position: absolute;
  right: 7%;
  top: 6%;
  width: 208px;
  transform: rotate(6deg);
  opacity: .72;
  filter: blur(.3px);
  z-index: 1;
}

.glow-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, .17), transparent 62%);
  filter: blur(12px);
  z-index: 0;
}

/* ---------- sections ---------- */

.section { padding: 78px 0; }
.section-head { max-width: 60ch; margin-bottom: 42px; }
.section h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section .sub { color: var(--muted); font-size: 18px; margin: 0; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.hr { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

.sub-tight { margin-top: 14px !important; }
.sub-narrow { max-width: 56ch; }
.note { font-size: 15px; color: var(--dim); margin-top: 4px; }
.mt-32 { margin-top: 32px; }

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: .92em;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 2px 7px;
  color: var(--lime);
  overflow-wrap: anywhere;
}

/* ---------- cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(204, 255, 0, .28);
  background: linear-gradient(180deg, rgba(204, 255, 0, .06), rgba(255, 255, 255, .02));
}
.card .ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(204, 255, 0, .1);
  border: 1px solid rgba(204, 255, 0, .2);
  color: var(--lime);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- screenshot rail ---------- */

.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 8px 4px 26px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }
.rail figure { margin: 0; scroll-snap-align: center; flex: none; width: 244px; }
.rail .phone { width: 244px; }
.rail figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.rail figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }

/* ---------- highlight band ---------- */

.band {
  border: 1px solid rgba(204, 255, 0, .22);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(204, 255, 0, .1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border-radius: 30px;
  padding: 46px;
}
.band h2 { margin-bottom: 14px; }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.checks svg { color: var(--lime); flex: none; margin-top: 4px; }
.checks b { color: var(--text); font-weight: 600; }

/* ---------- steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
}
.steps .n {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(204, 255, 0, .12);
  color: var(--lime);
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- spec list ---------- */

.specs {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  overflow: hidden;
}
.specs > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px 26px;
  border-top: 1px solid var(--line-soft);
}
.specs > div:first-child { border-top: 0; }
.specs dt {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
}
.specs dd { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 620px) {
  .specs > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 20px; }
}

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  padding: 4px 22px;
}
.faq details[open] { border-color: rgba(204, 255, 0, .26); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--lime);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

/* ---------- cta band ---------- */

.cta-band {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 60px 40px;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(204, 255, 0, .12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; font-size: 18px; }
.cta-band .cta { justify-content: center; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 46px 0 60px;
  color: var(--dim);
  font-size: 15px;
}
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.foot .fine { max-width: 40ch; margin: 14px 0 0; font-size: 14px; color: var(--dim); }

/* ---------- legal / doc pages ---------- */

.doc { padding: 56px 0 20px; max-width: 76ch; margin-inline: auto; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.doc .meta { color: var(--dim); font-size: 15px; margin: 0 0 10px; }
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.doc h3 { font-size: 17.5px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: #C6D0DE; font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  background: var(--glass);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.doc .callout p { margin: 0; color: var(--muted); font-size: 15.5px; }
.doc .toc {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: var(--r);
  padding: 20px 24px;
  margin: 30px 0 10px;
}
.doc .toc p { margin: 0 0 10px; font-weight: 600; color: var(--text); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 30px; }
.doc .toc li { color: var(--muted); }

.contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(204, 255, 0, .22);
  background: linear-gradient(180deg, rgba(204, 255, 0, .07), rgba(255, 255, 255, .02));
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin: 30px 0;
}
.contact-card .ic {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: rgba(204, 255, 0, .12); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.contact-card p { margin: 0; }
.contact-card b { display: block; font-size: 17px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
  .hero-art { min-height: 480px; }
  .hero-art .phone-back { display: none; }
  .hero-art .phone-main { transform: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .nav-links a:not(.btn) { display: none; }
  .band { padding: 34px 26px; }
  .checks { grid-template-columns: 1fr; }
  .doc .toc ol { columns: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .cta-band { padding: 42px 22px; }
  .foot { flex-direction: column; gap: 22px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
