:root {
  --bg: #090b10;
  --bg-elevated: #0f131c;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.55);
  --sticky: #f6c744;
  --radius: 16px;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 0.1em 0.42em;
  border-radius: 6px;
  word-break: break-all;
}

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; position: relative; z-index: 1; }
.narrow { width: min(760px, 100% - 40px); }

/* Ambient background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 12%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 12%, #000 30%, transparent 100%);
}
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(59, 130, 246, 0.18), transparent 62%),
    radial-gradient(680px 440px at 10% 16%, rgba(246, 199, 68, 0.09), transparent 60%),
    radial-gradient(760px 460px at 50% 85%, rgba(99, 102, 241, 0.09), transparent 65%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }

/* Hero */
.hero {
  padding: 84px 0 108px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fde68a;
  border: 1px solid rgba(246, 199, 68, 0.28);
  background: rgba(246, 199, 68, 0.07);
  padding: 4px 13px;
  border-radius: 999px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sticky);
  box-shadow: 0 0 10px var(--sticky);
}
h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 35%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .hl {
  color: #111827;
  background: linear-gradient(135deg, #fde047 0%, #f6c744 100%);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  padding: 0 0.2em;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2.5deg);
  box-shadow: 0 10px 28px -8px rgba(246, 199, 68, 0.55);
}
.lead {
  font-size: 17.5px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 34em;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  background: linear-gradient(180deg, #4f8ff7 0%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 16px 36px -8px rgba(59, 130, 246, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1.5px);
}
.meta {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-badge {
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

/* Hero 3D Stage */
.hero-visual {
  position: relative;
  padding: 0 6% 9% 0;
  perspective: 1200px;
}
.hero-glow {
  position: absolute;
  inset: 8% 8% 12% 4%;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.35), rgba(246, 199, 68, 0.14) 55%, transparent 75%);
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
}
.hero-stage {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.shot {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sticky {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 22px 44px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sticky.s1 { width: 27%; right: 0; top: 6%; --base-rot: 3deg; transform: rotate(3deg); }
.sticky.s2 { width: 25%; right: 9%; bottom: 0; --base-rot: -4deg; transform: rotate(-4deg); }
.sticky.s3 { width: 23%; left: -6%; bottom: 3%; --base-rot: -2deg; transform: rotate(-2deg); }

/* Sections */
.section { padding: 92px 0; position: relative; }
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 0 44px; font-size: 16.5px; }
.section-head .section-sub { margin-bottom: 0; }

/* Spotlight shared effect */
.spotlight {
  position: relative;
  overflow: hidden;
  --mx: -999px;
  --my: -999px;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(96, 165, 250, 0.65), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.08), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spotlight:hover::before,
.spotlight:hover::after { opacity: 1; }

/* Bento Grid (6-col asymmetric: 4+2, 2+2+2, 2+2+2 = 8 cards) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
}
.bento-card.bento-wide {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.bento-body { max-width: 44ch; }
.bento-deco-swatches {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.swatch {
  width: 28px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.bento-wide:hover .swatch:nth-child(odd) { transform: translateY(-4px) rotate(-3deg); }
.bento-wide:hover .swatch:nth-child(even) { transform: translateY(-2px) rotate(3deg); }
.s-yellow { background: #fde047; }
.s-green  { background: #86efac; }
.s-blue   { background: #93c5fd; }
.s-pink   { background: #f9a8d4; }
.s-purple { background: #d8b4fe; }

.ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-amber  { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.22); }
.ico-blue   { color: #60a5fa; background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.22); }
.ico-purple { color: #c084fc; background: rgba(192, 132, 252, 0.12); border-color: rgba(192, 132, 252, 0.22); }
.ico-cyan   { color: #22d3ee; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.22); }
.ico-emerald{ color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.22); }
.ico-slate  { color: #cbd5e1; background: rgba(203, 213, 225, 0.1); border-color: rgba(203, 213, 225, 0.2); }
.ico-indigo { color: #818cf8; background: rgba(129, 140, 248, 0.12); border-color: rgba(129, 140, 248, 0.22); }
.ico-rose   { color: #fb7185; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.22); }

.bento-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; color: #f8fafc; }
.bento-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* Showcases */
.showcase {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
}
.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 104px; }
.row.reverse .row-copy { order: 2; }
.row-copy h2 { font-size: clamp(26px, 3vw, 34px); margin: 6px 0 20px; line-height: 1.25; letter-spacing: -0.015em; }
.tag {
  display: inline-block;
  margin: 0;
  color: #60a5fa;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 15.5px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.row-visual { display: flex; justify-content: center; }
.frame-glass {
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}
.shot-tall { max-height: 540px; width: auto; }

.stickies-stack { position: relative; min-height: 420px; width: 100%; }
.stickies-stack .st {
  position: absolute;
  width: 52%;
  border-radius: 8px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.stickies-stack .a { left: 4%; top: 0; transform: rotate(-3deg); z-index: 1; }
.stickies-stack .b { right: 2%; top: 14%; transform: rotate(4deg); z-index: 2; }
.stickies-stack .c { left: 22%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.stickies-stack:hover .a { transform: rotate(-5deg) translate(-4px, -4px); }
.stickies-stack:hover .b { transform: rotate(6deg) translate(4px, -4px); }
.stickies-stack:hover .c { transform: rotate(0deg) translateY(-6px); }

/* Themes */
.tabs-wrap { display: flex; justify-content: center; margin: 26px 0 32px; }
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: center;
}
.tabs button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.tabs button:hover { color: #fff; }
.tabs button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.theme-stage {
  margin: 0 auto;
  max-width: 1020px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.theme-shot { width: 100%; transition: opacity 0.2s ease, transform 0.2s ease; }
.theme-shot.fading { opacity: 0.22; transform: scale(0.992); }

/* Download */
.download {
  border-top: 1px solid var(--line);
  background: radial-gradient(800px 420px at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%);
}
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.dl-card:hover { background: var(--surface-hover); border-color: var(--line-strong); transform: translateY(-2px); }
.dl-card.featured {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.04));
  box-shadow: 0 20px 50px -24px rgba(59, 130, 246, 0.55);
}
.dl-card strong { font-size: 18px; color: #fff; }
.dl-card .file { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--sticky); word-break: break-all; }
.dl-card small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.dl-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 28px auto 0; max-width: 48em; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  transition: border-color 0.18s, background 0.18s;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; position: relative; padding-right: 28px; color: #f8fafc; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-inner > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-inner img { display: inline-block; }
.muted { color: var(--muted); }
.footer-inner a { margin-left: auto; text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta, .meta { justify-content: center; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.bento-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .row, .row.reverse { grid-template-columns: 1fr; gap: 36px; }
  .row.reverse .row-copy { order: 0; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 52px 0 68px; }
  .bento-grid, .dl-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .stickies-stack { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
