:root {
  color-scheme: light;
  --bg: oklch(99% 0.002 240);
  --bg-elevated: oklch(100% 0 0);
  --surface: oklch(100% 0 0 / 0.92);
  --surface-strong: oklch(98% 0.004 240);
  --fg: oklch(18% 0.012 250);
  --fg-strong: oklch(12% 0.01 250);
  --muted: oklch(54% 0.012 250);
  --muted-2: oklch(69% 0.01 250);
  --border: oklch(92% 0.005 250);
  --border-strong: oklch(86% 0.008 250);
  --accent: oklch(58% 0.18 255);
  --accent-2: oklch(64% 0.16 270);
  --accent-soft: oklch(93% 0.05 255);
  --success: oklch(66% 0.13 155);
  --warning: oklch(78% 0.13 85);
  --shadow-sm: 0 1px 1px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.05);
  --shadow-md: 0 16px 48px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 28px 80px rgb(15 23 42 / 0.12);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --container-narrow: 960px;
  --gutter: clamp(18px, 2vw, 28px);
  --section-y: clamp(64px, 8vw, 112px);
  --stack: clamp(14px, 2vw, 24px);
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--fg);
  background:
    radial-gradient(1100px 700px at 8% -10%, rgb(94 106 210 / 0.08), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgb(94 106 210 / 0.05), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, oklch(98.4% 0.003 240) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

::selection { background: rgb(94 106 210 / 0.16); color: var(--fg-strong); }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); outline: none; }

.site-shell {
  width: min(var(--container), calc(100% - clamp(20px, 5vw, 48px)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(20px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}

.header-inner {
  width: min(var(--container), calc(100% - clamp(20px, 5vw, 48px)));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 8px 20px rgb(94 106 210 / 0.16);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.42);
  opacity: 0.85;
}
.brand-name {
  font-family: var(--display);
  font-size: 1rem;
}
.brand-subtitle {
  display: block;
  margin-top: 1px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
}
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--fg-strong);
  background: rgb(94 106 210 / 0.08);
  outline: none;
}
.nav a[aria-current='page'] {
  color: var(--fg-strong);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px rgb(94 106 210 / 0.22);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.lang-switch button:hover,
.lang-switch button:focus-visible { color: var(--fg-strong); background: rgb(94 106 210 / 0.08); outline: none; }
.lang-switch button[aria-pressed='true'] {
  color: var(--fg-strong);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px rgb(94 106 210 / 0.18);
}

main { display: block; }
.page {
  padding-bottom: 32px;
}

.hero {
  padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 5vw, 56px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hero-copy {
  max-width: 760px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(94 106 210 / 0.12);
}
.hero h1,
.page-title {
  margin: 0;
  font-family: var(--display);
  color: var(--fg-strong);
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: 11ch;
  overflow-wrap: anywhere;
}
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.hero-lead {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.button {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 30px rgb(94 106 210 / 0.2);
}
.button:hover,
.button:focus-visible { transform: translateY(-1px); outline: none; }
.button-secondary {
  color: var(--fg-strong);
  background: var(--surface);
  border-color: var(--border);
}
.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: var(--border-strong);
  background: color-mix(in oklab, var(--surface) 88%, rgb(94 106 210 / 0.05));
}
.button-ghost {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.72));
  box-shadow: var(--shadow-md);
  overflow: clip;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 18% 0%, rgb(94 106 210 / 0.12), transparent 45%),
    radial-gradient(420px 220px at 90% 20%, rgb(94 106 210 / 0.08), transparent 52%);
  pointer-events: none;
}
.hero-panel > * { position: relative; }
.hero-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-card + .hero-card { margin-top: 12px; }

.hero-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.hero-card-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, white, var(--surface-strong));
}
.stat strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}
.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding: var(--section-y) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(22px, 3vw, 30px);
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--fg-strong);
}
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  grid-column: span 4;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}
.feature-card h3,
.info-card h3,
.blog-card h3,
.timeline-item h3,
.accent-card h3 {
  margin: 0;
  color: var(--fg-strong);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: 1.12rem;
}
.feature-card p,
.info-card p,
.blog-card p,
.timeline-item p,
.accent-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}
.feature-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.feature-metric strong {
  font-size: 1.55rem;
  color: var(--fg-strong);
  letter-spacing: -0.05em;
}

.info-band {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, white, oklch(98.8% 0.003 240));
  box-shadow: var(--shadow-sm);
}
.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.info-card,
.accent-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(94 106 210 / 0.06);
  color: var(--fg-strong);
  font-size: 0.84rem;
  font-weight: 600;
}
.pill.muted {
  background: var(--surface-strong);
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.timeline-item {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.timeline-item::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgb(94 106 210 / 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
}
.timeline-item p { margin-bottom: 0; }

.blog-shell {
  padding: clamp(30px, 5vw, 48px) 0 var(--section-y);
}
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 22px;
  align-items: end;
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.82)),
    radial-gradient(900px 420px at 100% 0%, rgb(94 106 210 / 0.08), transparent 55%);
  box-shadow: var(--shadow-md);
}
.blog-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--fg-strong);
}
.blog-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.blog-meta .tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-module {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.blog-toolbar h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--fg-strong);
}
.blog-toolbar .hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filter-row button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  transition: all 160ms ease;
}
.blog-filter-row button:hover,
.blog-filter-row button:focus-visible {
  outline: none;
  color: var(--fg-strong);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.blog-filter-row button[aria-pressed='true'] {
  color: var(--fg-strong);
  background: rgb(94 106 210 / 0.08);
  border-color: rgb(94 106 210 / 0.18);
}

[data-shpitto-blog-root] {
  display: block;
}
[data-shpitto-blog-list] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.blog-card {
  grid-column: span 6;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, white, var(--surface-strong));
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}
.blog-card[data-featured='true'] { grid-column: span 12; }
.blog-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}
.blog-card .meta-row .chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.blog-card .excerpt { margin-top: 12px; }
.blog-card .readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 650;
}
.blog-card .readmore::after { content: '↗'; font-size: 0.95em; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.content-panel {
  grid-column: span 7;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.aside-panel {
  grid-column: span 5;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(94 106 210 / 0.04), var(--surface));
}

.site-footer {
  margin-top: clamp(30px, 5vw, 56px);
  padding: 34px 0 42px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 86%, white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-brand p,
.footer-col p,
.footer-col a,
.footer-note {
  color: var(--muted);
  line-height: 1.7;
}
.footer-col h2,
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--fg-strong);
  letter-spacing: 0.01em;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--fg-strong); outline: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.92rem;
}

.prose {
  color: var(--muted);
  line-height: 1.8;
}
.prose h2,
.prose h3 { color: var(--fg-strong); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }

.focusable:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgb(94 106 210 / 0.45);
  outline-offset: 3px;
}

[data-lang='en'] [data-visible-lang='zh'],
[data-lang='zh'] [data-visible-lang='en'] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .blog-hero,
  .section-head,
  .info-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-card { grid-column: span 6; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { max-width: 12ch; }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0 12px;
    justify-content: center;
  }
  .nav {
    width: 100%;
    justify-content: center;
  }
  .lang-switch { margin-inline-start: auto; }
  .hero { padding-top: 28px; }
  .hero h1,
  .page-title,
  .blog-hero h1 { max-width: 100%; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button, .button-secondary, .button-ghost { width: 100%; }
  .feature-grid,
  [data-shpitto-blog-list] {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .blog-card,
  .content-panel,
  .aside-panel {
    grid-column: auto;
  }
  .timeline { grid-template-columns: 1fr; }
  .blog-toolbar { align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}