/* MaiOK 好卖 — marketing site
   Tech-glass dark theme: void black base, frosted panels, violet→mint accents. */

:root {
  --void: #08090d;
  --void-2: #0c0e14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #98a1b2;
  --faint: #6a7283;
  --violet: #7c5cfc;
  --violet-2: #9d7bff;
  --mint: #3dffc0;
  --cyan: #36d1ff;
  --radius: 16px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ----- backdrop glow / mesh ----- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(124, 92, 252, 0.22), transparent 60%),
    radial-gradient(55% 45% at 90% 8%, rgba(54, 209, 255, 0.16), transparent 60%),
    radial-gradient(50% 50% at 60% 100%, rgba(61, 255, 192, 0.1), transparent 60%),
    var(--void);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}

/* ----- layout ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-2);
  font-weight: 600;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(100deg, var(--violet-2) 0%, var(--cyan) 55%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 13, 0.82);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand .logo {
  width: 30px;
  height: 30px;
}
.brand small {
  color: var(--faint);
  font-weight: 500;
  font-size: 12px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  color: #0a0710;
  background: linear-gradient(100deg, var(--violet-2), var(--cyan) 70%, var(--mint));
  box-shadow: 0 8px 28px rgba(124, 92, 252, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(124, 92, 252, 0.5);
}
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
}
.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ----- hero ----- */
.hero {
  padding-top: 84px;
  padding-bottom: 60px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 26px auto 0;
  max-width: 16ch;
  font-weight: 800;
}
.hero p.lead {
  margin: 22px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-sub {
  margin-top: 16px;
  font-size: 13px;
  color: var(--faint);
}

/* ----- product mockup ----- */
.mockup-wrap {
  margin: 64px auto 0;
  max-width: 1000px;
  position: relative;
}
.mockup-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -4% 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(124, 92, 252, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.window {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.9), rgba(12, 14, 20, 0.92));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.win-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-dot.r { background: #ff5f57; }
.win-dot.y { background: #febc2e; }
.win-dot.g { background: #28c840; }
.win-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--faint);
}
.win-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}
.win-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.015);
}
.side-brand {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-item {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  margin-bottom: 4px;
}
.side-item.active {
  background: rgba(124, 92, 252, 0.16);
  color: #fff;
  border: 1px solid rgba(124, 92, 252, 0.4);
}
.win-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.m-row:last-child { border-bottom: 0; }
.m-left { display: flex; align-items: center; gap: 10px; }
.m-avatar {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-size: 11px; display: grid; place-items: center; color: #07060c; font-weight: 700;
}
.pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill.run { color: var(--mint); border-color: rgba(61,255,192,0.4); background: rgba(61,255,192,0.08); }
.pill.idle { color: var(--faint); }
.btn-mini {
  font-size: 11px; padding: 5px 12px; border-radius: 8px;
  background: var(--panel-strong); border: 1px solid var(--border); color: var(--text);
}

/* ----- marquee / platforms ----- */
.platforms {
  padding: 40px 0 8px;
  text-align: center;
}
.platforms .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}
.platform-chip svg { width: 18px; height: 18px; }

/* ----- feature grid ----- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-strong);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.25), rgba(54, 209, 255, 0.18));
  border: 1px solid rgba(124, 92, 252, 0.35);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--violet-2); }
.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.card ul li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 7px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(61, 255, 192, 0.6);
}

/* ----- architecture ----- */
.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.arch-node {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--panel);
  text-align: center;
}
.arch-node .tag {
  font-size: 11px;
  color: var(--violet-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.arch-node h4 {
  margin: 8px 0 6px;
  font-size: 17px;
}
.arch-node p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.arch-flow {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  margin-top: 22px;
}

/* ----- security split ----- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.feat-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.feat-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.feat-list li:first-child { border-top: 0; }
.feat-list .chk {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(61, 255, 192, 0.12);
  border: 1px solid rgba(61, 255, 192, 0.3);
}
.feat-list .chk svg { width: 13px; height: 13px; stroke: var(--mint); }
.feat-list b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.feat-list span {
  color: var(--muted);
  font-size: 13.5px;
}
.code-card {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.9), rgba(10, 12, 18, 0.95));
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.code-card .win-bar { background: rgba(255, 255, 255, 0.02); }
.code-card pre {
  margin: 0;
  padding: 20px;
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #c9d1e3;
  overflow-x: auto;
}
.code-card .k { color: var(--violet-2); }
.code-card .s { color: var(--mint); }
.code-card .c { color: var(--faint); }
.code-card .n { color: var(--cyan); }

/* ----- stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 14px;
  background: var(--panel);
}
.stat .num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .lbl {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ----- alternating feature rows ----- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 60px;
}
.feature-row:nth-child(even) .feature-visual { order: -1; }
.feature-row h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 12px 0 12px;
  letter-spacing: -0.02em;
}
.feature-row p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}
.feature-visual {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.85), rgba(11, 13, 19, 0.9));
  padding: 18px;
  min-height: 240px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* calendar mini */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal .cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  font-size: 10px;
  color: var(--faint);
  padding: 5px;
}
.cal .cell.has {
  border-color: rgba(124, 92, 252, 0.45);
  background: rgba(124, 92, 252, 0.14);
  color: var(--text);
}
.cal .cell .ev {
  margin-top: 4px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* asset grid mini */
.assets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.assets .tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.25), rgba(54, 209, 255, 0.18));
}
.assets .tile:nth-child(3n) {
  background: linear-gradient(135deg, rgba(61, 255, 192, 0.22), rgba(54, 209, 255, 0.15));
}
.assets .tile:nth-child(3n + 1) {
  background: linear-gradient(135deg, rgba(255, 95, 150, 0.2), rgba(124, 92, 252, 0.2));
}

/* ai mini */
.ai-line {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.ai-line .av {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}
.ai-bubble {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.ai-bubble .sk {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); margin: 6px 0;
}
.ai-bubble .sk.w1 { width: 90%; }
.ai-bubble .sk.w2 { width: 70%; }

/* ----- CTA band ----- */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(124, 92, 252, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(18, 20, 28, 0.7), rgba(11, 13, 19, 0.8));
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.cta-band p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 56ch;
}

/* ----- footer ----- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot .muted {
  color: var(--faint);
  font-size: 13px;
}
.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.foot-links a {
  font-size: 14px;
  color: var(--muted);
}
.foot-links a:hover { color: var(--text); }
.disclaimer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--faint);
  max-width: 70ch;
  line-height: 1.7;
}
footer .muted a {
  color: inherit;
  text-decoration: none;
}
footer .muted a:hover {
  color: var(--muted);
  text-decoration: underline;
}

/* ----- download page ----- */
.dl-hero {
  padding-top: 72px;
  padding-bottom: 24px;
  text-align: center;
}
.dl-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.dl-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.dl-card.primary {
  border-color: rgba(124, 92, 252, 0.5);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(124, 92, 252, 0.16), transparent 70%),
    var(--panel);
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.dl-os {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dl-os svg { width: 30px; height: 30px; }
.dl-os h3 { margin: 0; font-size: 20px; }
.dl-card .arch { display: block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.dl-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.dl-meta .kv { display: flex; justify-content: space-between; gap: 12px; }
.dl-meta code {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--cyan);
  word-break: break-all;
  text-align: right;
}
.dl-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.dl-soon {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  border: 1px dashed var(--border-strong);
  border-radius: 11px;
  padding: 13px;
  margin-top: auto;
}
.tagline-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--mint);
  background: rgba(61, 255, 192, 0.08);
  border: 1px solid rgba(61, 255, 192, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.step {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--panel);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: #07060c;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.step code {
  display: inline-block;
  margin-top: 8px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ----- reveal animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   THEME — light overrides + theme toggle
   "Product UI" surfaces (window/code-card/feature-visual) stay dark in both
   themes for authenticity, by re-declaring dark tokens locally.
   ========================================================= */

html[data-theme="light"] {
  --void: #f5f7fb;
  --void-2: #eceff6;
  --panel: rgba(12, 16, 28, 0.035);
  --panel-strong: rgba(12, 16, 28, 0.06);
  --border: rgba(12, 16, 28, 0.1);
  --border-strong: rgba(12, 16, 28, 0.17);
  --text: #0e1322;
  --muted: #4d5568;
  --faint: #7c8498;
  --violet: #6d4bf0;
  --violet-2: #6d4bf0;
}

html[data-theme="light"] body {
  background: var(--void);
  color: var(--text);
}

html[data-theme="light"] .bg-mesh {
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(124, 92, 252, 0.16), transparent 60%),
    radial-gradient(55% 45% at 90% 8%, rgba(54, 209, 255, 0.13), transparent 60%),
    radial-gradient(50% 50% at 60% 100%, rgba(61, 200, 160, 0.12), transparent 60%),
    var(--void);
}
html[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(12, 16, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 16, 28, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .nav {
  background: rgba(245, 247, 251, 0.72);
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(245, 247, 251, 0.9);
  border-bottom-color: var(--border);
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #6d4bf0 0%, #1f8fd6 52%, #0fa87f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .cta-band {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(124, 92, 252, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(12, 16, 28, 0.03), rgba(12, 16, 28, 0.05));
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.28);
}

/* keep these surfaces dark in BOTH themes (they depict the dark app UI / terminal) */
.window,
.code-card,
.feature-visual {
  --text: #eef1f6;
  --muted: #98a1b2;
  --faint: #6a7283;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  color: #eef1f6;
}

/* theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
}
.theme-toggle:active {
  transform: translateY(1px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ----- gatekeeper notice ----- */
.notice {
  border: 1px solid rgba(254, 188, 46, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(254, 188, 46, 0.1), transparent 60%),
    var(--panel);
  padding: 22px;
}
.notice-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.notice-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(254, 188, 46, 0.14);
  border: 1px solid rgba(254, 188, 46, 0.35);
}
.notice-ic svg {
  width: 18px;
  height: 18px;
  stroke: #f5b400;
}
.notice-head b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 3px;
}
.notice-head span {
  color: var(--muted);
  font-size: 13.5px;
}
.notice-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.method {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--panel);
}
.method-t {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: var(--violet-2);
}
.cmd {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.cmd code {
  flex: 1;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--cyan);
  background: rgba(127, 140, 170, 0.12);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  word-break: break-all;
}
.copy-btn {
  flex: none;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--border-strong);
}

/* ----- mobile ----- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .grid-3, .arch, .stats, .dl-grid, .steps, .notice-methods { grid-template-columns: 1fr; }
  .split, .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
