:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: calc(var(--radius) + 10px);

  --background: oklch(0.975 0.004 285);
  --foreground: oklch(0.26 0.02 285);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.005 285);
  --card: oklch(1 0 0);

  --primary: oklch(0.62 0.15 155);
  --primary-foreground: oklch(0.99 0.005 155);
  --primary-soft: oklch(0.955 0.045 155);
  --primary-deep: oklch(0.48 0.13 155);

  --muted: oklch(0.965 0.005 285);
  --muted-foreground: oklch(0.56 0.015 285);
  --ink-2: oklch(0.42 0.02 285);

  --destructive: oklch(0.58 0.21 25);
  --success: oklch(0.62 0.15 155);
  --warning: oklch(0.72 0.15 70);
  --info: oklch(0.6 0.15 250);

  --border: oklch(0.92 0.006 285);
  --input: oklch(0.9 0.008 285);
  --ring: oklch(0.62 0.15 155);
  --grid-line: oklch(0.94 0.005 285);

  --shadow-panel: 0 1px 2px oklch(0.4 0.03 285 / 0.06), 0 8px 24px oklch(0.4 0.03 285 / 0.05);
  --shadow-float: 0 12px 40px oklch(0.4 0.05 155 / 0.16);
  --shadow-hero: 0 24px 64px oklch(0.4 0.04 155 / 0.14), 0 2px 8px oklch(0.4 0.03 285 / 0.06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
code, kbd, pre, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    box-shadow 180ms var(--ease), border-color 180ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 6px 18px oklch(0.5 0.12 155 / 0.28);
}
.btn-primary:hover { background: var(--primary-deep); box-shadow: var(--shadow-float); }
.btn-outline {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; border-radius: 12px; }
.btn-lg svg { width: 18px; height: 18px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 32%, transparent), transparent);
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-float);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--foreground);
  background: var(--muted);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.language-btn {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.language-btn:hover { color: var(--foreground); transform: translateY(-1px); }
.language-btn.active { background: var(--surface); color: var(--primary-deep); box-shadow: 0 2px 8px oklch(0.4 0.03 285 / .08); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
  flex: none;
}
.nav-toggle:hover { background: var(--muted); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(720px 420px at 12% -10%, oklch(0.92 0.06 155 / 0.55), transparent 60%),
    radial-gradient(640px 380px at 92% 8%, oklch(0.93 0.04 250 / 0.35), transparent 62%),
    var(--background);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 88%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  box-shadow: 0 4px 14px oklch(0.5 0.12 155 / 0.08);
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--border));
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.62 0.15 155 / 0.22);
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  margin: 18px 0 26px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cmd {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: oklch(0.22 0.02 260);
  border-radius: 12px;
  color: #e8eef5;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: var(--shadow-panel);
}
.hero-cmd .prompt { color: #34d399; font-weight: 700; flex: none; }
.hero-cmd code {
  background: none;
  color: #e8eef5;
  padding: 0;
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: 12.5px;
}
.hero-cmd .copy-btn { flex: none; }
.hero-note {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--primary); }

.mock-stage {
  position: relative;
  perspective: 1600px;
}
.mock-glow {
  position: absolute;
  inset: 18% -8% auto;
  height: 50%;
  background: radial-gradient(closest-side, oklch(0.7 0.12 155 / 0.28), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.mock-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  transform: rotateX(6deg) rotateY(-10deg) rotateZ(1deg);
  transform-origin: 50% 80%;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-chrome .dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-chrome .r { background: #ff5f57; }
.mock-chrome .y { background: #febc2e; }
.mock-chrome .g { background: #28c840; }
.mock-url {
  margin-left: 10px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
}
.mock-app {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 372px;
  background: var(--background);
  font-size: 11.5px;
  pointer-events: none;
  user-select: none;
}
.mock-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 12px;
}
.mock-side-brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.mock-side-brand .mark svg { width: 13px; height: 13px; }
.mock-side-brand b { display: block; font-size: 12px; }
.mock-side-brand small { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 9px; }
.mock-group {
  color: var(--muted-foreground);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 8px 4px;
}
.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  color: oklch(0.4 0.02 285);
}
.mock-item svg { width: 13px; height: 13px; flex: none; }
.mock-item.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 6px 16px oklch(0.5 0.12 155 / 0.28);
}
.mock-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--primary-soft);
}
.mock-user b { display: block; font-size: 11px; line-height: 1.2; }
.mock-user small { display: block; color: var(--muted-foreground); font-size: 9px; }
.mock-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mock-main { padding: 14px 16px 16px; min-width: 0; }
.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted-foreground);
  font-size: 11px;
}
.mock-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mock-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.mock-card .lbl { color: var(--muted-foreground); font-size: 10px; }
.mock-card .val { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.mock-card .val em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--muted-foreground); margin-left: 2px; }
.mock-card .sub { color: var(--muted-foreground); font-size: 9px; font-family: var(--font-mono); margin-top: 2px; }
.mock-spark { width: 100%; height: 36px; display: block; margin-top: 6px; }
.mock-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-panel);
}
.mock-body h4 { font-size: 12px; font-weight: 650; margin-bottom: 10px; }
.mock-rows { display: grid; gap: 8px; }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.mock-row span { color: var(--muted-foreground); }
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.mock-pill.ok { background: var(--primary-soft); color: var(--primary-deep); }
.mock-pill.warn { background: oklch(0.96 0.05 80); color: oklch(0.52 0.13 70); }
.mock-sites { display: grid; gap: 6px; }
.mock-site {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.mock-store {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mock-pkg {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  background: var(--surface-2);
}
.mock-pkg img { width: 22px; height: 22px; object-fit: contain; margin: 0 auto 6px; }
.mock-pkg b { display: block; font-size: 11px; }
.mock-pkg small { color: var(--muted-foreground); font-size: 9px; }
.mock-hidden { display: none; }
.mock-panel.active { display: block; }

.stats {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.stats-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { text-align: center; padding: 8px; }
.stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
}
.stat-num em { font-style: normal; font-size: 15px; font-weight: 600; margin-left: 2px; color: var(--primary-deep); }
.stat-label { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; }

.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
html.js-reveal .section-head, html.js-reveal .feature-card, html.js-reveal .runtime, html.js-reveal .security-item, html.js-reveal .arch-node, html.js-reveal .step, html.js-reveal .compat-card, html.js-reveal .faq-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease) var(--reveal-delay, 0ms), transform 650ms var(--ease) var(--reveal-delay, 0ms);
}
html.js-reveal .section-head.is-visible, html.js-reveal .feature-card.is-visible, html.js-reveal .runtime.is-visible, html.js-reveal .security-item.is-visible, html.js-reveal .arch-node.is-visible, html.js-reveal .step.is-visible, html.js-reveal .compat-card.is-visible, html.js-reveal .faq-item.is-visible {
  opacity: 1;
  transform: none;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--primary);
}
.section-head h2,
.section-split h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.2;
}
.section-head p,
.lede {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
}

.overview { background: var(--surface); }
.overview-layout {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.tab:hover { background: var(--background); color: var(--foreground); }
.tab.active {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-panel);
}
.tab-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}
.tab.active .tab-ico { background: var(--primary); color: #fff; }
.tab-ico svg { width: 18px; height: 18px; }
.tab b { display: block; font-size: 14px; font-weight: 700; }
.tab > span:last-child { display: block; min-width: 0; font-size: 12px; color: var(--muted-foreground); margin-top: 0; line-height: 1.45; }
.tab-ico { margin-top: 0; }
.tab-panels {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  min-height: 420px;
  box-shadow: var(--shadow-panel);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise 420ms var(--ease); }
.tab-copy { margin-bottom: 16px; }
.tab-copy h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.tab-copy p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.tab-copy ul {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  list-style: none;
}
.tab-copy li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--foreground);
}
.tab-copy li svg { width: 14px; height: 14px; color: var(--primary); flex: none; }

.features { background: var(--background); }
.feature-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  min-height: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-panel);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hero);
  border-color: color-mix(in oklab, var(--primary) 28%, var(--border));
}
.feature-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-ico svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); font-size: 13.5px; }

.runtimes { background: var(--surface); }
.runtime-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.runtime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}
.runtime:hover {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--foreground);
  transform: translateY(-2px);
}
.runtime img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 5px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px oklch(0.4 0.03 285 / .08), inset 0 0 0 1px var(--border);
  transition: transform 180ms var(--ease);
}
.runtime:hover img { transform: rotate(-4deg) scale(1.05); }
.runtime img[src$="/php.svg"] { background: #777bb4; padding: 7px 5px; }
.runtime img[src$="/postgresql.svg"] { background: #336791; padding: 6px; }
.mock-pkg img[src$="/php.svg"] { background: #777bb4; border-radius: 6px; padding: 4px 2px; }
.mock-pkg img[src$="/mysql.svg"] { background: #fff; border-radius: 6px; padding: 3px; }

.security { background: var(--background); }
.security-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.security-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-panel);
}
.security-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.security-item p { color: var(--ink-2); font-size: 13.5px; }
.security-item .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.security-item .ico svg { width: 18px; height: 18px; }

.arch { background: var(--surface); }
.arch-flow {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.arch-node {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.arch-node.accent {
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  background: linear-gradient(180deg, var(--primary-soft), var(--background));
}
.arch-node h3 { font-size: 16px; font-weight: 750; margin-bottom: 6px; }
.arch-node p { color: var(--ink-2); font-size: 13px; }
.arch-node ul { margin-top: 12px; list-style: none; display: grid; gap: 6px; }
.arch-node li {
  font-size: 13px;
  color: var(--foreground);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.arch-node li svg { width: 14px; height: 14px; color: var(--primary); margin-top: 3px; flex: none; }
.arch-arrow {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 72px;
}
.arch-arrow span {
  writing-mode: horizontal-tb;
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

.install { background: var(--background); }
.steps {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-panel);
  position: relative;
}
.step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 13px; }

.install-box {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}
.install-tabs {
  display: flex;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.install-tab {
  flex: 1;
  min-width: 120px;
  padding: 14px 10px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
}
.install-tab:hover { color: var(--foreground); }
.install-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--surface); }
.install-panel { display: none; padding: 24px; }
.install-panel.active { display: block; }
.install-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.os-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.os-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.os-pill.active {
  background: var(--primary-soft);
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  color: var(--primary-deep);
}
.cmd-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: oklch(0.22 0.02 260);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  margin-bottom: 10px;
}
.cmd-box code {
  background: none;
  color: #e8eef5;
  font-size: 13.5px;
  flex: 1;
  word-break: break-all;
  padding: 0;
}
.copy-btn {
  flex: none;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid oklch(0.62 0.15 155 / 0.4);
  background: oklch(0.62 0.15 155 / 0.18);
  color: #a7f3c8;
  font-size: 12px;
  font-weight: 650;
}
.copy-btn:hover { background: oklch(0.62 0.15 155 / 0.32); }
.copy-btn.copied {
  background: oklch(0.62 0.15 155 / 0.35);
  border-color: oklch(0.72 0.14 155 / 0.6);
  color: #bbf7d0;
}
.install-hint { color: var(--muted-foreground); font-size: 13px; margin-top: 6px; line-height: 1.55; }
.install-links {
  width: min(820px, calc(100% - 48px));
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.install-links a { color: var(--primary); font-weight: 650; font-size: 14px; }
.install-links a:hover { text-decoration: underline; }

.compat {
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.compat-card {
  min-height: 152px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.compat-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.compat-card ul { list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; }
.compat-card li { display: flex; gap: 8px; align-items: center; }
.compat-card li svg { width: 14px; height: 14px; color: var(--primary); }

.faq { background: var(--surface); }
.faq-list {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 650;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 14px;
}

.cta {
  background:
    radial-gradient(800px 240px at 50% 0%, oklch(0.78 0.1 155 / 0.35), transparent 70%),
    var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  padding: 72px 24px;
}
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { margin: 12px 0 26px; color: oklch(0.96 0.02 155); font-size: 16px; }
.cta .btn-primary {
  background: var(--surface);
  color: var(--primary-deep);
  box-shadow: 0 10px 28px oklch(0.3 0.05 155 / 0.28);
}
.cta .btn-primary:hover { background: #fff; }

.footer {
  background: oklch(0.22 0.02 260);
  color: oklch(0.72 0.02 250);
  padding: 56px 0 24px;
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; line-height: 1.65; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: oklch(0.72 0.02 250);
  transition: color 150ms;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  width: min(var(--max), calc(100% - 48px));
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
  font-size: 12px;
  color: oklch(0.62 0.02 250);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  min-height: 48px;
  border-radius: 14px;
  justify-content: center;
  box-shadow: var(--shadow-float);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  animation: rise 520ms var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .mock-frame { transform: none; }
}

@media (max-width: 1024px) {
  .hero-inner, .overview-layout { grid-template-columns: 1fr; }
  .mock-frame { transform: none; }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-arrow span { transform: rotate(90deg); }
  .runtime-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 0; }
  .compat { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap, .hero-inner, .stats-inner, .overview-layout,
  .feature-grid, .runtime-grid, .security-grid, .arch-flow, .steps,
  .compat, .tab-panels { width: calc(100% - 32px); }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-sub { font-size: 15px; }
  .section { padding: 56px 0; }
  .nav-inner {
    position: relative;
    width: 100%;
    min-height: var(--nav-h);
    padding: 0 64px 0 16px;
  }
  .nav-links, .nav-actions { display: none; }
  .nav.open { height: auto; }
  .nav.open .nav-inner { align-items: flex-start; padding-top: 12px; padding-bottom: 16px; }
  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
    width: 100%;
    padding: 8px 0 0;
    flex-wrap: wrap;
  }
  .nav.open .language-switcher { order: 3; margin-top: 8px; }
  .nav.open .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.open .nav-links a { width: 100%; padding: 10px 12px; }
  .nav.open .nav-actions { padding-bottom: 0; gap: 8px; }
  .nav.open .nav-actions .btn { flex: 1; min-width: 0; }
  .nav-toggle {
    display: flex !important;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 90;
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: transparent;
  }
  .hero-cmd {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .hero-cmd .copy-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 4px;
  }
  .hero-cmd code, .cmd-box code { overflow-wrap: anywhere; }
  .cmd-box { flex-wrap: wrap; }
  .cmd-box code { min-width: 0; }
  .cmd-box .copy-btn { margin-left: auto; }
  body { padding-bottom: 76px; }
  .footer { padding-bottom: 88px; }
  .stats-inner, .feature-grid, .security-grid, .steps, .runtime-grid { grid-template-columns: 1fr 1fr; }
  .tab-list { gap: 10px; }
  .tab { padding: 14px; }
  .tab-panels { padding: 18px; }
  .tab-copy h3 { font-size: 18px; }
  .tab-copy ul { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-metrics { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: inline-flex; }
  .hero h1 { max-width: none; }
}

@media (max-width: 480px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .wrap, .hero-inner, .stats-inner, .overview-layout,
  .feature-grid, .runtime-grid, .security-grid, .arch-flow, .steps,
  .compat, .tab-panels, .install-box, .install-links, .faq-list,
  .footer-inner, .footer-bottom { width: calc(100% - 24px); }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 30px; padding-inline: 4px; }
  .section-head h2, .section-split h2 { font-size: 27px; line-height: 1.18; }
  .section-head p, .lede { font-size: 14px; line-height: 1.65; }

  .nav-inner { padding-left: 14px; padding-right: 60px; }
  .nav.open .nav-inner { padding-inline: 14px 60px; }
  .nav.open .nav-actions .btn { flex-basis: 100%; }
  .nav-actions .btn { font-size: 13px; padding-inline: 12px; }
  .nav.open .language-switcher { width: max-content; }

  .hero { padding: 28px 0 42px; }
  .hero-inner { gap: 34px; }
  .hero-badge { max-width: 100%; margin-bottom: 16px; font-size: 12px; white-space: normal; }
  .hero h1 { font-size: clamp(31px, 10.5vw, 40px); line-height: 1.12; }
  .hero-sub { margin: 16px 0 22px; font-size: 14.5px; line-height: 1.7; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; padding-inline: 12px; }
  .hero-cmd { margin-top: 18px; padding: 12px; }
  .hero-note { gap: 8px 12px; font-size: 12px; }
  .mock-stage { margin-inline: -4px; }
  .mock-frame { border-radius: 13px; }
  .mock-url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mock-main { padding: 12px; }
  .mock-top { align-items: flex-start; gap: 8px; font-size: 9px; }
  .mock-btn { display: none; }
  .mock-metrics { grid-template-columns: 1fr 1fr; gap: 6px; }
  .mock-card { min-height: 88px; padding: 8px 8px 0; }
  .mock-card .sub, .mock-spark { display: none; }
  .mock-body { padding: 10px; }

  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; padding: 20px 0; }
  .stat { padding: 12px 6px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stat-num { font-size: 25px; }
  .stat-label { font-size: 11.5px; }

  .overview-layout { gap: 18px; }
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tab { min-height: 70px; gap: 9px; padding: 10px; align-items: center; }
  .tab-ico { width: 34px; height: 34px; }
  .tab > span:last-child { font-size: 11px; line-height: 1.3; }
  .tab b { font-size: 12.5px; line-height: 1.25; }
  .tab > span:last-child > span { display: none; }
  .tab-panels { padding: 16px; min-height: 0; border-radius: 16px; }
  .tab-copy { margin-bottom: 14px; }
  .tab-copy h3 { font-size: 18px; }
  .tab-copy p { font-size: 13px; line-height: 1.65; }
  .tab-copy li { font-size: 12px; align-items: flex-start; }
  .mock-store { grid-template-columns: 1fr 1fr; }
  .mock-site { grid-template-columns: 1fr auto; }
  .mock-site > span:last-child { grid-column: 1 / -1; }

  .feature-grid, .security-grid, .steps, .footer-inner { grid-template-columns: 1fr; gap: 10px; }
  .feature-card, .security-item, .step { padding: 18px; }
  .feature-card { display: grid; grid-template-columns: 38px 1fr; gap: 0 12px; align-items: center; }
  .feature-ico { width: 38px; height: 38px; margin: 0; grid-row: 1 / 3; }
  .feature-card h3 { margin: 0 0 4px; }
  .feature-card p { font-size: 13px; line-height: 1.6; }

  .runtime-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .runtime { min-width: 0; gap: 7px; padding: 12px 4px; font-size: 11.5px; }
  .runtime img { width: 36px; height: 36px; padding: 5px; }

  .arch-flow { gap: 8px; }
  .arch-node { padding: 17px; }
  .arch-arrow { min-height: 34px; }
  .arch-arrow span { transform: none; writing-mode: horizontal-tb; }

  .steps { gap: 8px; margin-bottom: 28px; }
  .step { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
  .step-n { grid-row: 1 / 3; margin: 0; }
  .step h3 { margin: 0 0 4px; }
  .install-box { border-radius: 15px; }
  .install-tabs { scroll-snap-type: x mandatory; }
  .install-tab { min-width: 108px; padding: 12px 8px; font-size: 12px; scroll-snap-align: start; }
  .install-panel { padding: 16px; }
  .install-desc, .install-hint { font-size: 12.5px; }
  .cmd-box { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cmd-box code { font-size: 11.5px; line-height: 1.6; }
  .cmd-box .copy-btn { width: 100%; margin: 0; }
  .compat { margin-top: 28px; gap: 8px; }
  .compat-card { min-height: 0; padding: 16px; }

  .faq-item summary { padding: 15px; font-size: 14px; }
  .faq-item p { padding: 0 15px 15px; font-size: 13px; }
  .cta { padding: 54px 16px; }
  .cta p { font-size: 14px; }
  .footer { padding-top: 44px; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .footer-inner { gap: 28px; }
  .footer-bottom { margin-top: 24px; }
  .mobile-cta { bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
}
