/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0b0f1a;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p  { margin: 0 0 1em; color: #cbd5e1; }
em { font-style: normal; color: #a5b4fc; }
code { background: #1e293b; padding: 2px 6px; border-radius: 4px; font-size: .9em; color: #a5b4fc; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #f1f5f9; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-dot { color: #22d3ee; }
.brand-sm { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; color: #cbd5e1; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 8px 14px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b0f1a !important;
  border-radius: 8px; font-weight: 600;
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  position: relative;
  font-size: 13px;
}
.lang-switcher > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #e5e7eb;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.lang-flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 18px; padding: 0 4px;
  background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(34,211,238,.25));
  border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: #f8fafc;
}
.lang-code { font-weight: 600; letter-spacing: .5px; }
.lang-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  margin-left: 2px;
  transition: transform .15s;
}
.lang-switcher[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  padding: 6px;
  background: #0f1424;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6), 0 4px 12px -4px rgba(0,0,0,.4);
  z-index: 60;
  animation: langFade .12s ease-out;
}
@keyframes langFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  transition: background .12s, color .12s;
}
.lang-option:hover { background: rgba(255,255,255,.06); color: #f8fafc; }
.lang-option.is-active {
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.12));
  color: #f8fafc;
}
.lang-option .lang-flag { flex-shrink: 0; }
.lang-label { flex: 1; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .lang-switcher > summary .lang-code { display: none; }
  .lang-menu { right: -40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 560px;
  background:
    radial-gradient(closest-side, rgba(99,102,241,.35), transparent 70%) 30% 30%/60% 60% no-repeat,
    radial-gradient(closest-side, rgba(34,211,238,.28), transparent 70%) 75% 40%/55% 55% no-repeat;
  filter: blur(40px); z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #cbd5e1; margin-bottom: 24px;
}
.hero-title { font-size: clamp(36px, 6vw, 64px); color: #f8fafc; margin-bottom: 20px; }
.grad-text {
  background: linear-gradient(135deg, #a5b4fc 10%, #22d3ee 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 680px; margin: 0 auto 36px; font-size: 18px; color: #cbd5e1; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-trust {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 36px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.28);
  color: #a5f3fc;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .12s;
}
.hero-trust:hover { background: rgba(34,211,238,.14); border-color: rgba(34,211,238,.5); transform: translateY(-1px); }
.hero-trust svg { flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b0f1a;
  box-shadow: 0 8px 32px -8px rgba(99,102,241,.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(99,102,241,.75); }
.btn-ghost { background: transparent; color: #e5e7eb; border-color: rgba(255,255,255,.16); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.hero-platforms { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #94a3b8; font-size: 13px; }
.platform-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #e5e7eb;
}
.pill-muted { opacity: .6; }
.pill-link {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.14));
  border-color: rgba(165,180,252,.35);
  color: #c7d2fe;
  transition: filter .15s ease;
}
.pill-link:hover { filter: brightness(1.15); }
.pill small { color: #94a3b8; }
.pill-link small { color: #a5b4fc; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(99,102,241,.04) 50%, transparent); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: #f1f5f9; }
.section-head p { color: #94a3b8; font-size: 17px; }
.dl-version-tag {
  display: inline-block; vertical-align: middle;
  margin-left: 10px; padding: 3px 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(165, 180, 252, .25);
  border-radius: 999px;
}
.dl-card-ver {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 1px 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: #94a3b8;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  transition: border-color .2s, transform .2s, background .2s;
}
.feature:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-3px);
  background: rgba(255,255,255,.05);
}
.feature h3 { font-size: 18px; color: #f1f5f9; margin-bottom: 8px; }
.feature p  { font-size: 14px; color: #94a3b8; margin: 0; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }
.icon-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.icon-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-3 { background: linear-gradient(135deg, #10b981, #22d3ee); }
.icon-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.icon-5 { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.icon-6 { background: linear-gradient(135deg, #84cc16, #10b981); }
.icon-7 { background: linear-gradient(135deg, #f97316, #f43f5e); }
.icon-8 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.icon-9 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.icon-0 { background: linear-gradient(135deg, #6366f1, #22d3ee); width: 56px; height: 56px; border-radius: 14px; }
.icon-0 svg { width: 28px; height: 28px; }

.feature.feature-hero {
  grid-column: 1 / -1;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(34,211,238,.08));
  border: 1px solid rgba(99,102,241,.32);
  box-shadow: 0 16px 48px -16px rgba(99,102,241,.35);
}
.feature.feature-hero h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin-bottom: 10px; }
.feature.feature-hero p { font-size: 16px; line-height: 1.55; color: #cbd5e1; max-width: 760px; }
.feature.feature-hero:hover { border-color: rgba(99,102,241,.55); background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.12)); }

/* ---------- Install guide pages ---------- */
.dl-toast {
  max-width: 760px; margin: 20px auto 0; padding: 12px 20px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); color: #a5f3fc;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 14px; text-align: center;
}
.dl-toast svg { flex-shrink: 0; }
.dl-toast a { color: #e0f2fe; text-decoration: underline; }

.guide { padding: 64px 0 96px; }
.guide-inner { max-width: 760px; margin: 0 auto; }
.guide-inner h1 {
  font-size: clamp(32px, 5vw, 44px); color: #f1f5f9;
  margin: 10px 0 20px; line-height: 1.15; letter-spacing: -0.01em;
}
.guide-inner .lede { font-size: 18px; line-height: 1.65; color: #cbd5e1; margin: 0 0 48px; }
.guide-step { margin-bottom: 44px; }
.guide-step h2 {
  font-size: 22px; color: #f1f5f9; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px; line-height: 1.3;
}
.guide-step h3 { font-size: 16px; color: #e5e7eb; margin: 22px 0 10px; font-weight: 600; }
.guide-step p, .guide-step li { font-size: 15px; line-height: 1.7; color: #cbd5e1; }
.guide-step ol, .guide-step ul { margin: 0 0 14px; padding-left: 22px; }
.guide-step li { margin-bottom: 6px; }
.guide-step li::marker { color: #94a3b8; }
.guide-step strong { color: #f1f5f9; font-weight: 600; }
.guide-step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.06); color: #e5e7eb;
}
.guide-step .note {
  padding: 12px 16px; background: rgba(34,211,238,.06);
  border-left: 3px solid rgba(34,211,238,.4); border-radius: 6px;
  margin-top: 16px; color: #cbd5e1; font-size: 14px;
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b0f1a; font-weight: 700; font-size: 15px;
}
.macos-warning {
  margin: 16px 0; padding: 16px 20px;
  background: rgba(251,191,36,.08); border-left: 3px solid rgba(251,191,36,.5);
  border-radius: 6px; color: #fde68a; font-size: 15px; line-height: 1.55;
}
.inline-link { color: #a5f3fc; text-decoration: underline; }
.inline-link:hover { color: #67e8f9; }
.guide-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.05) 30%, rgba(34,211,238,.04) 70%, transparent);
  padding: 96px 0;
}
.manifesto-inner { max-width: 1040px; margin: 0 auto; }
.manifesto h2 {
  font-size: clamp(26px, 4.2vw, 40px); color: #f1f5f9;
  margin: 0 0 28px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700;
  text-align: center;
}
.manifesto-body { text-align: left; }
.manifesto-body p { font-size: 17px; line-height: 1.75; color: #cbd5e1; margin: 0 0 18px; }
.manifesto-body p:last-child { margin-bottom: 0; }
.manifesto-body strong { color: #f1f5f9; font-weight: 700; }

/* ---------- How-it-works video ---------- */
.how-video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 64px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #0b0f1a;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 30px 60px -20px rgba(99, 102, 241, .35),
    0 18px 50px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease;
  isolation: isolate;
}
.how-video::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 21.5px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(99,102,241,.7), rgba(34,211,238,.5) 45%, rgba(255,255,255,.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.how-video::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 60% at 50% 60%, rgba(99,102,241,.22), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.how-video:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 36px 80px -20px rgba(99,102,241,.55),
    0 22px 60px rgba(0,0,0,.55);
}
.how-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
  border-radius: 20px;
  z-index: 1;
}
@media (max-width: 720px) {
  .how-video { margin-bottom: 48px; border-radius: 14px; }
  .how-video iframe { border-radius: 14px; }
  .how-video::before { border-radius: 15.5px; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 32px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b0f1a; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; color: #f1f5f9; margin-bottom: 6px; }
.steps p  { font-size: 14px; color: #94a3b8; margin: 0; }

/* ---------- Downloads ---------- */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.dl-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #f1f5f9;
  transition: border-color .2s, transform .15s, background .2s;
}
.dl-card:hover {
  border-color: rgba(99,102,241,.5);
  background: rgba(99,102,241,.08);
  transform: translateY(-2px);
}
.dl-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.dl-icon svg { width: 26px; height: 26px; color: #cbd5e1; }
.dl-text { flex: 1; min-width: 0; }
.dl-text h3 { font-size: 16px; color: #f8fafc; margin-bottom: 2px; }
.dl-text p  { font-size: 13px; color: #cbd5e1; margin: 0 0 2px; }
.dl-text small { font-size: 12px; color: #64748b; }
.dl-arrow { font-size: 22px; color: #6366f1; font-weight: 700; }
.dl-card-disabled {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}
.dl-note {
  text-align: center; margin-top: 32px;
  color: #94a3b8; font-size: 14px;
}
.dl-note a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.footer-tagline { color: #64748b; font-size: 14px; margin: 8px 0 0; }
.footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links a { font-size: 14px; color: #94a3b8; }
.footer-links a:hover { color: #f1f5f9; }
footer small { display: block; width: 100%; margin-top: 8px; color: #64748b; font-size: 13px; text-align: center; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 8px; }
}
