:root {
  color-scheme: light;
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --surface-low: #eee9df;
  --ink: #252b27;
  --muted: #6d716d;
  --line: #d9d7cf;
  --primary: #3f7651;
  --primary-strong: #315f41;
  --primary-soft: #dce9dd;
  --accent: #8a641f;
  --accent-soft: #f0e2bd;
  --header: rgba(247, 243, 235, .9);
  --shadow: 0 14px 44px rgba(55, 62, 57, .08);
  --display: "Literata", "Songti SC", "STSong", serif;
  --body: "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101223;
  --surface: #1c1e30;
  --surface-low: #27293b;
  --ink: #e6e7f5;
  --muted: #aaacbf;
  --line: #414457;
  --primary: #bbc3ff;
  --primary-strong: #d9ddff;
  --primary-soft: rgba(187, 195, 255, .14);
  --accent: #54e77a;
  --accent-soft: rgba(84, 231, 122, .11);
  --header: rgba(16, 18, 35, .9);
  --shadow: 0 18px 56px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--body); line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 9px 13px; border-radius: 9px; color: var(--surface); background: var(--primary-strong); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 20; top: 0; width: min(1180px, calc(100% - 40px)); height: 72px; display: flex; align-items: center; gap: 48px; margin: auto; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: var(--header); backdrop-filter: blur(18px); }
.site-header::before { content: ""; position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: 72px; background: var(--header); }
.brand { font: 700 27px/1 var(--display); letter-spacing: -1.2px; text-decoration: none; }
.brand span { color: var(--primary); }
nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
nav a { position: relative; color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--primary); }
.tools { display: flex; gap: 8px; }
.tools button { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); cursor: pointer; }
.lang { padding: 0 10px; font-size: 11px; font-weight: 800; }
.theme { width: 38px; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: 650px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 56px; margin: auto; padding: 76px 0 94px; }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--primary); font: 800 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.hero h1 { margin: 0; font: 600 clamp(50px, 6vw, 78px)/1.07 var(--display); letter-spacing: -.055em; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--primary-strong); }
html[data-theme="dark"] .button.primary { color: #101223; background: var(--primary); }
.button.secondary { border-color: var(--line); background: var(--surface); }

.hero-visual { position: relative; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background-color: var(--surface-low); background-image: linear-gradient(color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px); background-size: 36px 36px; box-shadow: var(--shadow); }
.hero-visual::after { content: ""; position: absolute; width: 320px; height: 320px; top: -130px; right: -100px; border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 50%; }
.hero-visual svg { position: absolute; inset: 10px 0 15px; width: 100%; height: calc(100% - 25px); }
.road { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 8; }
.route { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.visual-label { position: absolute; z-index: 2; top: 30px; left: 30px; display: flex; flex-direction: column; padding-left: 12px; border-left: 2px solid var(--accent); }
.visual-label span { color: var(--muted); font-size: 11px; }
.visual-label strong { font: 600 27px/1.2 var(--display); }
.node { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.node i { width: 11px; height: 11px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.n1 { left: 29%; top: 60%; } .n2 { left: 64%; top: 35%; } .n3 { right: 9%; top: 52%; }
.metric { position: absolute; z-index: 2; min-width: 124px; display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.metric strong { font: 600 28px/1 var(--display); }
.metric span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.m1 { top: 103px; right: 28px; } .m2 { bottom: 34px; left: 24px; }

.products { padding: 104px max(20px, calc((100% - 1180px) / 2)); border-block: 1px solid var(--line); background: var(--surface-low); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; margin-bottom: 46px; }
.section-heading h2, .contact h2 { margin: 0; font: 600 clamp(34px, 4.2vw, 52px)/1.15 var(--display); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.comparison { margin: 0 0 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.comparison-intro { display: grid; grid-template-columns: .7fr 1.3fr; align-items: end; gap: 40px; padding: 25px 26px 24px; border-bottom: 1px solid var(--line); }
.comparison-kicker { margin: 0; color: var(--primary); font: 800 10px/1.4 var(--mono); letter-spacing: .12em; }
.comparison-intro h3 { max-width: 670px; margin: 0; font: 600 25px/1.3 var(--display); letter-spacing: -.02em; }
.comparison-scroll { overflow-x: auto; }
.comparison table { width: 100%; min-width: 870px; border-collapse: collapse; text-align: left; }
.comparison th, .comparison td { padding: 16px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.comparison tr:last-child th, .comparison tr:last-child td { border-bottom: 0; }
.comparison tr > *:last-child { border-right: 0; }
.comparison thead th { color: var(--muted); background: color-mix(in srgb, var(--surface-low) 70%, var(--surface)); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.comparison thead th:first-child { position: sticky; z-index: 4; left: 0; }
.comparison tbody th { position: sticky; z-index: 2; left: 0; width: 18%; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 800; }
.comparison tbody td { width: 19%; color: var(--muted); font-size: 12px; }
.comparison tbody td:not(.rmap-column) strong, .comparison tbody td:not(.rmap-column) small { display: block; }
.comparison tbody td:not(.rmap-column) strong { color: var(--ink); font-size: 12px; line-height: 1.45; }
.comparison tbody td:not(.rmap-column) small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.comparison .rmap-column { position: sticky; z-index: 3; right: 0; width: 25%; background: color-mix(in srgb, var(--primary-soft) 48%, var(--surface)); box-shadow: -8px 0 18px rgba(45, 49, 46, .05); }
.comparison thead .rmap-column { z-index: 5; }
.comparison td.rmap-column { padding: 0; }
.comparison td.rmap-column a, .product-mapping { min-height: 64px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 13px 16px; color: var(--ink); text-decoration: none; }
.comparison td.rmap-column a:hover { background: color-mix(in srgb, var(--primary-soft) 80%, transparent); }
.comparison td.rmap-column strong { font: 600 17px/1.2 var(--display); }
.comparison td.rmap-column small { padding: 5px 7px; border-radius: 999px; color: var(--primary-strong); background: var(--surface); font-size: 9px; font-weight: 800; white-space: nowrap; }
.comparison td.rmap-column .soon-text { color: var(--accent); background: var(--accent-soft); }
.comparison td.rmap-column .preview-text { color: var(--primary-strong); background: var(--primary-soft); }
.comparison-note { margin: 0; padding: 13px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { min-height: 430px; display: flex; flex-direction: column; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--surface); text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
a.product-card:hover { z-index: 2; transform: translateY(-3px); background: color-mix(in srgb, var(--primary-soft) 60%, var(--surface)); box-shadow: var(--shadow); }
.card-wide { grid-column: span 2; }
.card-full { grid-column: 1 / -1; }
.product-top { display: flex; justify-content: space-between; align-items: center; }
.product-icon { font-size: 31px; line-height: 1; filter: saturate(.9); }
.status { padding: 6px 9px; border-radius: 999px; font: 800 10px/1 var(--body); }
.status.live { color: var(--primary-strong); background: var(--primary-soft); }
.status.soon { color: var(--accent); background: var(--accent-soft); }
.status.preview { color: var(--primary-strong); background: var(--primary-soft); }
.product-number { margin: 24px 0 0; color: var(--muted); font: 700 10px/1 var(--mono); }
.product-card h3 { margin: 26px 0 11px; font: 600 31px/1.2 var(--display); }
.product-card > p:not(.product-number) { max-width: 570px; margin: 0; color: var(--muted); font-size: 14px; }
.product-card ul { display: grid; gap: 8px; margin: 24px 0 30px; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.product-card li::before { content: "—"; margin-right: 8px; color: var(--primary); }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--primary-strong); font-size: 12px; font-weight: 800; }
.card-link.muted { color: var(--muted); }
.navigation-card { background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface)); }
.curling-card { background: color-mix(in srgb, var(--primary-soft) 30%, var(--surface)); }
.location-card { background: color-mix(in srgb, var(--primary-soft) 18%, var(--surface)); }
.pickup-card { min-height: 320px; background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface)); }
.pickup-card > p:not(.product-number) { max-width: 760px; }
.pickup-card ul { max-width: 900px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 32px; }
.feature-pills span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; }
.location-card .card-link { text-decoration: none; }

.contact { width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: 1fr .85fr; gap: 90px; margin: auto; padding: 108px 0; }
.contact-copy { align-self: end; }
.contact-copy p { max-width: 500px; margin: 0 0 26px; color: var(--muted); }
footer { width: min(1180px, calc(100% - 40px)); min-height: 96px; display: flex; align-items: center; gap: 24px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer span { margin-right: auto; }

.docs-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 72px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; margin: auto; padding: 72px 0 100px; }
.docs-shell aside { position: sticky; top: 112px; height: max-content; display: flex; flex-direction: column; gap: 6px; }
.docs-shell aside .section-index { margin-bottom: 15px; }
.docs-shell aside a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.docs-shell aside a.active { color: var(--primary-strong); background: var(--primary-soft); }
.docs-content { max-width: 760px; }
.docs-content h1 { margin: 0; font: 600 clamp(44px, 6vw, 70px)/1.08 var(--display); letter-spacing: -.05em; }
.docs-lead { margin: 28px 0 42px; color: var(--muted); font-size: 18px; }
.docs-placeholder { display: flex; gap: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.docs-placeholder > span { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--primary-strong); background: var(--primary-soft); font: 700 21px var(--mono); }
.docs-placeholder strong { font: 600 20px var(--display); }
.docs-placeholder p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 1; }
  .comparison-intro { grid-template-columns: 1fr; gap: 8px; }
  .contact { gap: 50px; }
  .docs-shell { grid-template-columns: 190px 1fr; gap: 46px; }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 28px); height: 64px; gap: 10px; }
  .site-header::before { height: 64px; }
  nav { gap: 15px; }
  nav a { font-size: 12px; }
  .lang { display: none; }
  .hero { width: calc(100% - 28px); min-height: auto; gap: 44px; padding: 50px 0 68px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { flex: 1; }
  .hero-visual { min-height: 350px; }
  .n2 { left: 60%; }
  .products { padding: 74px 14px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .comparison { margin-bottom: 38px; }
  .comparison-intro { padding: 20px; }
  .comparison-intro h3 { font-size: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .card-full { grid-column: span 1; }
  .product-card { min-height: 400px; }
  .pickup-card ul { grid-template-columns: 1fr; }
  .contact { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 32px; padding: 74px 0; }
  footer { width: calc(100% - 28px); }
  .docs-shell { width: calc(100% - 28px); grid-template-columns: 1fr; padding-top: 44px; }
  .docs-shell aside { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .docs-shell aside .section-index { display: none; }
  .docs-shell aside a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
