:root {
  --bg: #f4f7ff;
  --bg-2: #fbfdff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.38);
  --surface-solid: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 40px 100px rgba(15, 23, 42, 0.16);
  --cyan: #38bdf8;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --mint: #2dd4bf;
  --green: #059669;
  --grad: linear-gradient(135deg, #38bdf8, #3b82f6, #6366f1);
  --grad-text: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  --final-bg:
    radial-gradient(700px 360px at 50% 0%, rgba(56, 189, 248, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(244, 114, 182, 0.06)),
    #ffffff;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 26px;
  --radius-sm: 18px;
  --max: 1200px;
}

html[data-theme="dark"] {
  --bg: #080b14;
  --bg-2: #0b1020;
  --text: #f1f5ff;
  --muted: #a9b7cc;
  --muted-2: #8ea0bb;
  --surface: rgba(17, 24, 39, 0.66);
  --surface-2: rgba(17, 24, 39, 0.4);
  --surface-solid: #111827;
  --nav-bg: rgba(8, 11, 20, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 40px 100px rgba(0, 0, 0, 0.55);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --green: #34d399;
  --final-bg:
    radial-gradient(700px 360px at 50% 0%, rgba(34, 211, 238, 0.12), transparent 65%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(244, 114, 182, 0.05)),
    #0b1020;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-display); font-size: 0.9em; }
::selection { background: rgba(56, 189, 248, 0.24); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
section { scroll-margin-top: 96px; }
.gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(56, 189, 248, 0.16), transparent 42%),
    radial-gradient(circle at 84% 20%, rgba(192, 132, 252, 0.14), transparent 40%),
    radial-gradient(circle at 62% 88%, rgba(244, 114, 182, 0.1), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 52%, var(--bg));
}
.bg-grid {
  position: absolute;
  inset: -30% -10% auto;
  height: 170%;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 58% at 50% 18%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 58% at 50% 18%, #000 12%, transparent 72%);
  transform: perspective(650px) rotateX(52deg);
  opacity: 0.7;
}
html[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: morph 28s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.bg-glow-1 {
  width: 34rem; height: 34rem; top: -12rem; left: -10rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(129, 140, 248, 0.35), rgba(192, 132, 252, 0.4));
  border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%;
}
.bg-glow-2 {
  width: 30rem; height: 30rem; top: -8rem; right: -8rem;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.5), rgba(129, 140, 248, 0.4), rgba(244, 114, 182, 0.35));
  animation-delay: -8s;
  border-radius: 40% 60% 47% 53% / 58% 42% 61% 39%;
}
.bg-glow-3 {
  width: 36rem; height: 36rem; bottom: -18rem; left: 20%;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.4), rgba(56, 189, 248, 0.5), rgba(129, 140, 248, 0.35));
  opacity: 0.42; animation-delay: -15s;
  border-radius: 55% 45% 61% 39% / 47% 55% 45% 53%;
}
html[data-theme="dark"] .bg-glow { opacity: 0.3; }
html[data-theme="dark"] .bg-glow-3 { opacity: 0.26; }
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .bg-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
  mix-blend-mode: screen;
  opacity: 0.2;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.12), transparent 45%),
    var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
  animation: introAutoHide 0.7s 3.2s forwards;
}
.intro.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
html.intro-seen #intro { display: none; }
.intro-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.intro-mark {
  position: relative;
  width: 132px; height: 132px;
  display: grid; place-items: center;
  margin-bottom: 28px;
  animation: introMark 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.intro-mark img {
  width: 96px; height: 96px; border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}
.intro-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-top-color: transparent;
  animation: spin 2.4s linear infinite;
}
.intro-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.35);
}
.intro-word {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}
.intro-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: introLetter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.intro-word span:nth-child(1) { animation-delay: 0.28s; }
.intro-word span:nth-child(2) { animation-delay: 0.34s; }
.intro-word span:nth-child(3) { animation-delay: 0.40s; }
.intro-word span:nth-child(4) { animation-delay: 0.46s; }
.intro-word span:nth-child(5) { animation-delay: 0.52s; }
.intro-word span:nth-child(6) { animation-delay: 0.58s; }
.intro-word span:nth-child(7) { animation-delay: 0.64s; }
.intro-word span:nth-child(8) { animation-delay: 0.70s; }
.intro-word span:nth-child(9) { animation-delay: 0.76s; }
.intro-word span:nth-child(10) { animation-delay: 0.82s; }
.intro-word .slash {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-inline: 2px;
}
.intro-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  animation: introLetter 0.7s 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.intro-line {
  width: 190px; height: 2px;
  margin-top: 24px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.intro-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  animation: introLine 1.5s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.intro-skip {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: color 0.2s, border-color 0.2s;
}
.intro-skip:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08); }
html[data-theme="dark"] .nav.scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  overflow: hidden;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 1rem; color: var(--text); }
.brand-slash { color: var(--blue); margin-inline: 3px; }
.brand-by {
  font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.06em;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--border);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: color 0.18s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons / toggle ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text); cursor: pointer; white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, background 0.22s, border-color 0.22s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(37, 99, 235, 0.35); color: var(--blue); }
.btn-lg { padding: 16px 26px; font-size: 1rem; border-radius: 16px; }
.btn-sm { padding: 9px 15px; font-size: 0.8rem; border-radius: 10px; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading svg { animation: spin 0.9s linear infinite; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.theme-toggle:hover { color: var(--blue); border-color: rgba(37, 99, 235, 0.3); background: var(--surface-solid); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 50px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 0 14px rgba(56, 189, 248, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-title {
  margin: 0 0 24px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.hero-line { display: block; }
.hero-sub {
  margin: 0 0 30px;
  max-width: 590px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--muted-2); font-size: 0.78rem; font-weight: 600;
  margin-bottom: 32px;
}
.hero-meta b { color: var(--text); font-weight: 700; }
.hero-stats {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 17px 25px; border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.stat-divider { width: 1px; height: 34px; background: var(--border); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  perspective: 1200px;
}
.logo-orbit {
  position: relative;
  width: min(390px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.ring-a { inset: 0; border-style: dashed; border-color: rgba(56, 189, 248, 0.28); animation: spin 28s linear infinite; }
.ring-b { inset: 11%; border-color: rgba(139, 92, 246, 0.22); animation: spin 20s linear infinite reverse; }
.ring-c { inset: 23%; border-color: rgba(244, 114, 182, 0.18); animation: spin 14s linear infinite; }
.orbit-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), rgba(139, 92, 246, 0.14) 45%, transparent 70%);
  filter: blur(28px);
  animation: pulse 4s ease-in-out infinite;
}
.logo-core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 26%;
  display: grid; place-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.logo-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.32), transparent 45%);
  pointer-events: none;
}
.logo-core img { width: 74%; height: 74%; object-fit: contain; border-radius: 22%; }
.orbit-node {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  z-index: 3;
}
.node-1 { top: 8%; left: 46%; animation: pulse 2.6s infinite; }
.node-2 { bottom: 14%; left: 14%; background: var(--violet); box-shadow: 0 0 14px var(--violet); animation: pulse 3.2s infinite; }
.node-3 { top: 32%; right: 7%; background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: pulse 2.2s infinite; }
.logo-wordmark {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1;
}
.logo-wordmark .slash { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-inline: 2px; }
.logo-wordmark .pro { font-size: 0.52em; letter-spacing: 0.16em; font-weight: 500; color: var(--muted); margin-left: 4px; }
.logo-caption {
  margin-top: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  backdrop-filter: blur(12px);
  z-index: 4;
}
.float-chip b { color: var(--text); }
.float-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(5, 150, 105, 0.6); animation: pulse 2s infinite; }
.chip-a { top: 8%; right: -2%; animation: float 6s ease-in-out infinite; }
.chip-b { bottom: 12%; left: -4%; animation: float 7s ease-in-out infinite reverse; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll svg { width: 16px; height: 16px; animation: float 2.4s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-style: normal; }

/* ---------- Manifesto ---------- */
.manifesto { padding: 110px 0 90px; }
.display {
  margin: 0 0 44px;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 34px;
}
.manifesto-grid p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.manifesto-grid .lead { color: var(--text); font-size: 1.22rem; line-height: 1.65; font-weight: 500; }

/* ---------- Features ---------- */
.system { padding: 90px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section-sub { max-width: 440px; margin: 0; color: var(--muted); font-size: 0.96rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s, border-color 0.28s;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.28s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, 0.2); box-shadow: var(--shadow-strong); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 20px;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ---------- Showcase ---------- */
.showcase { padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.showcase-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.showcase-copy p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 0 0 24px; }
.showcase-list { list-style: none; display: grid; gap: 12px; margin: 0 0 30px; }
.showcase-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.9rem; }
.showcase-list span {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex: none;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
}
.showcase-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.45; }
.orb-1 { width: 280px; height: 280px; background: rgba(56, 189, 248, 0.4); top: 0; left: 6%; }
.orb-2 { width: 300px; height: 300px; background: rgba(139, 92, 246, 0.35); bottom: 0; right: 4%; }
.device {
  position: relative;
  width: min(470px, 100%);
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: 0 40px 100px rgba(37, 99, 235, 0.18);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.device:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0) translateY(-4px); }
.device-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.win-dot { width: 9px; height: 9px; border-radius: 50%; }
.win-dot.red { background: #ff8a8a; }
.win-dot.yellow { background: #ffd166; }
.win-dot.green { background: #6ee7b7; }
.device-title { margin-left: 10px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--text); letter-spacing: 0.04em; }
.device-tag {
  margin-left: auto;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.18);
  background: rgba(5, 150, 105, 0.08);
  padding: 3px 8px; border-radius: 999px;
}
.device-body { padding: 18px; }
.device-hero {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 12px;
}
.device-badge { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; color: var(--blue); }
.device-hero h3 { margin: 6px 0 4px; font-size: 1.25rem; font-weight: 700; }
.device-hero p { margin: 0 0 14px; font-size: 0.74rem; color: var(--muted); }
.device-progress { height: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.device-progress span { display: block; width: 68%; height: 100%; border-radius: 99px; background: var(--grad); animation: progress 3.4s ease-in-out infinite alternate; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.device-node {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.68rem;
}
.device-node b { color: var(--text); font-weight: 700; }
.device-node small { margin-left: auto; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }
.node-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2.2s infinite; }
.device-chip-a { top: 8%; left: 0; }
.device-chip-b { bottom: 7%; right: 0; }

/* ---------- Steps ---------- */
.steps { padding: 100px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(37, 99, 235, 0.1);
}
html[data-theme="dark"] .step-num { color: rgba(148, 163, 184, 0.18); }
.step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 20px;
}
.step-icon svg { width: 23px; height: 23px; }
.step h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ---------- Numbers ---------- */
.numbers { padding: 20px 0 100px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.number-card {
  padding: 28px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.number-big { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.number-big .unit { font-size: 0.4em; letter-spacing: 0.02em; color: var(--muted); margin-left: 4px; }
.number-label { display: block; margin-top: 10px; font-size: 0.7rem; font-weight: 600; color: var(--muted-2); }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding: 90px 0 100px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(37, 99, 235, 0.15);
  margin-bottom: -20px;
}
.quote blockquote {
  margin: 0 auto;
  max-width: 950px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
}
.quote-author { display: block; margin-top: 22px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq { padding: 90px 0 110px; border-top: 1px solid var(--border); }
.faq-list { display: grid; gap: 10px; margin-top: 32px; max-width: 880px; }
.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.faq-item summary {
  cursor: pointer;
  padding: 17px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "?";
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  flex: none;
}
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 1.1rem; line-height: 1; }
.faq-item[open] summary::after { content: "âˆ’"; }
.faq-item p { margin: 0 0 18px; padding-left: 34px; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.faq-item code { color: var(--blue); background: rgba(56, 189, 248, 0.1); padding: 2px 6px; border-radius: 5px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 40px 0 110px; }
.final-inner {
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
  border-radius: 34px;
  border: 1px solid var(--border-strong);
  background: var(--final-bg);
  text-align: center;
  box-shadow: var(--shadow-strong);
}
.final-glow {
  position: absolute;
  width: 600px; height: 300px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.final-mark {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}
.final-mark img { width: 100%; height: 100%; object-fit: cover; }
.final-title { margin: 0 0 16px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; }
.final-inner p { margin: 0 auto 28px; max-width: 560px; color: var(--muted); font-size: 1rem; }
.final-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-note { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 46px; background: var(--surface-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--text); }
.footer-brand span { color: var(--muted-2); font-size: 0.72rem; }
.footer-brand a { color: var(--blue); font-weight: 600; }
.footer-meta { display: flex; gap: 24px; color: var(--muted-2); font-size: 0.68rem; font-weight: 600; }
.footer-meta a { color: var(--blue); }
.footer-meta a:hover { text-decoration: underline; }
.footer-meta .ok { color: var(--green); }
.footer-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.7rem; }

/* ---------- Cursor / toast ---------- */
.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 62%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .cursor-glow { background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 62%); mix-blend-mode: screen; }
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 300;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; }
html.theme-anim, html.theme-anim * {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.94); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { width: 62%; } to { width: 76%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes morph {
  0% { border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%; transform: translate(0) scale(1) rotate(0); }
  50% { border-radius: 40% 60% 48% 52% / 60% 40% 55% 45%; transform: translate(2.5rem, 2rem) scale(1.08) rotate(9deg); }
  100% { border-radius: 55% 45% 62% 38% / 42% 55% 45% 58%; transform: translate(-1.5rem, 3rem) scale(0.96) rotate(-7deg); }
}
@keyframes introMark { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes introLetter { to { opacity: 1; transform: none; } }
@keyframes introLine { to { width: 100%; } }
@keyframes introAutoHide { to { opacity: 0; visibility: hidden; } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero { padding: 50px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { min-height: 460px; order: -1; }
  .hero-scroll { display: none; }
  .manifesto-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-grid .lead { grid-column: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .showcase-inner { grid-template-columns: 1fr; gap: 44px; }
  .steps-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .brand-by { display: none; }
  .nav-download span { display: none; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-grid .lead { grid-column: auto; }
  .features { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .chip-a, .chip-b { display: none; }
  .final-inner { padding: 60px 24px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--max)); }
  .hero-title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-stats { width: 100%; justify-content: space-between; gap: 12px; padding: 15px 18px; }
  .hero-actions .btn { width: 100%; }
  .logo-orbit { width: min(320px, 82vw); }
  .hero-visual { min-height: 380px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .nav-inner { height: 68px; }
  .quote { padding: 70px 0 80px; }
  .intro-word { font-size: clamp(2rem, 10vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
html.force-intro .intro { display: grid !important; }
