:root {
  --bg: oklch(98.4% 0.004 121.6);
  --surface: oklch(100% 0 0);
  --surface-soft: oklch(96.8% 0.014 159);
  --surface-tint: oklch(95.7% 0.022 170);
  --fg: oklch(22.3% 0.005 173.9);
  --muted: oklch(39.6% 0.013 167.1);
  --outline: oklch(56.7% 0.012 167.5);
  --border: oklch(91.3% 0.005 134.9);
  --accent: oklch(47.4% 0.059 171.7);
  --accent-container: oklch(89.5% 0.060 170.9);
  --accent-fixed: oklch(82.4% 0.073 170.9);
  --coral: oklch(49.2% 0.076 23.5);
  --coral-soft: oklch(84.5% 0.085 23.5);
  --sky: oklch(47.8% 0.056 217.5);
  --sky-soft: oklch(90.0% 0.054 220.2);
  --butter: oklch(96.3% 0.071 98.1);
  --error: oklch(50.6% 0.193 27.7);
  --error-soft: oklch(91.8% 0.042 25.2);
  --accent-mist: color-mix(in oklch, var(--accent-container) 44%, var(--surface));
  --coral-mist: color-mix(in oklch, var(--coral-soft) 36%, var(--surface));
  --sky-mist: color-mix(in oklch, var(--sky-soft) 42%, var(--surface));
  --butter-mist: color-mix(in oklch, var(--butter) 50%, var(--surface));
  --fg-soft: color-mix(in oklch, var(--fg) 7%, transparent);
  --shadow-mint: 0 22px 70px color-mix(in oklch, var(--accent-container) 32%, transparent);
  --shadow-coral: 0 22px 70px color-mix(in oklch, var(--coral-soft) 28%, transparent);
  --shadow-sky: 0 22px 70px color-mix(in oklch, var(--sky-soft) 32%, transparent);
  --shadow-soft: 0 18px 60px color-mix(in oklch, var(--fg) 7%, transparent);
  --font-display: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --radius-xl: 52px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 8%, color-mix(in oklch, var(--accent-container) 34%, transparent), transparent 32%),
    radial-gradient(circle at 10% 22%, color-mix(in oklch, var(--sky-soft) 28%, transparent), transparent 30%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h1, h3 { text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.06; font-weight: 800; max-width: 13ch; }
h2 { font-size: clamp(30px, 4.3vw, 54px); line-height: 1.12; font-weight: 800; }
h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; font-weight: 800; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent-container) 70%, var(--accent)); outline-offset: 3px; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section + .section { border-top: 1px solid color-mix(in oklch, var(--border) 70%, transparent); }
.section-head { display: grid; grid-template-columns: minmax(0, .82fr) minmax(280px, .42fr); gap: 28px; align-items: end; margin-bottom: 42px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); max-width: 64ch; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0; }
.soft-label { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--accent-mist); color: var(--accent); font-weight: 800; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; padding-top: 1px; }

.topnav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--surface) 74%, transparent); backdrop-filter: blur(20px); box-shadow: 0 12px 42px color-mix(in oklch, var(--accent-container) 20%, transparent); }
.topnav-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--accent); letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 15px; object-fit: cover; box-shadow: var(--shadow-mint); }
.topnav nav { display: flex; align-items: center; gap: 10px; }
.topnav nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--pill); color: var(--muted); font-size: 14px; font-weight: 700; }
.topnav nav a:hover, .topnav nav a[aria-current='page'] { color: var(--accent); background: var(--accent-mist); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--pill); background: var(--surface); color: var(--accent); font-weight: 850; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--surface); box-shadow: 0 16px 36px color-mix(in oklch, var(--accent) 30%, transparent); }
.btn-coral { background: var(--coral-soft); color: var(--coral); box-shadow: var(--shadow-coral); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--accent); padding-inline: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(38px, 6vw, 78px); align-items: center; padding-block: clamp(58px, 7vw, 104px); }
.hero > * { min-width: 0; }
.hero .lead { margin-top: 22px; }
.home-hero { min-height: calc(100vh - 72px); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: var(--pill); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 750; box-shadow: 0 8px 24px color-mix(in oklch, var(--fg) 4%, transparent); }
.tag.mint { background: var(--accent-mist); color: var(--accent); }
.tag.coral { background: var(--coral-mist); color: var(--coral); }
.tag.sky { background: var(--sky-mist); color: var(--sky); }
.tag.butter { background: var(--butter-mist); color: color-mix(in oklch, var(--fg) 70%, var(--butter)); }

.soft-card { background: color-mix(in oklch, var(--surface) 88%, transparent); border-radius: var(--radius-lg); box-shadow: var(--shadow-mint); }
.panel-card { background: var(--surface); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); }
.tint-card { border-radius: var(--radius-md); padding: 22px; background: var(--accent-mist); color: var(--accent); box-shadow: var(--shadow-mint); }
.tint-card.coral { background: var(--coral-mist); color: var(--coral); box-shadow: var(--shadow-coral); }
.tint-card.sky { background: var(--sky-mist); color: var(--sky); box-shadow: var(--shadow-sky); }
.tint-card.butter { background: var(--butter-mist); color: var(--muted); box-shadow: 0 22px 70px color-mix(in oklch, var(--butter) 30%, transparent); }

.phone-showcase { display: grid; grid-template-columns: .95fr 1fr; gap: 20px; align-items: stretch; }
.phone-frame { width: min(100%, 360px); margin-inline: auto; border-radius: 44px; padding: 12px; background: var(--surface); box-shadow: 0 30px 90px color-mix(in oklch, var(--accent-container) 38%, transparent); }
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--surface); }
.phone-screen img { width: 100%; display: block; }
.device-stack { display: grid; gap: 18px; align-content: center; }
.study-mini { display: grid; gap: 14px; }
.study-mini-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.study-icon { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-mist); color: var(--accent); font-weight: 900; line-height: 1; padding-top: 1px; }
.study-icon.coral { background: var(--coral-mist); color: var(--coral); }
.study-icon.sky { background: var(--sky-mist); color: var(--sky); }
.study-mini-row strong { display: block; font-size: 15px; }
.study-mini-row div span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.progress-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) var(--p), var(--accent-mist) 0); color: var(--accent); font: 800 12px var(--font-mono); }
.progress-ring::before { content: attr(data-label); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); line-height: 1; padding-top: 1px; }

.feature-grid, .page-grid, .cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.page-card, .feature-card, .card { min-width: 0; border-radius: var(--radius-md); padding: 26px; background: var(--surface); box-shadow: var(--shadow-soft); }
.page-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; transition: transform .18s ease, box-shadow .18s ease; }
.page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mint); }
.card small, .page-card small { color: var(--outline); font: 800 12px var(--font-mono); }
.card p, .feature-card p, .page-card p { color: var(--muted); font-size: 15px; }
.feature-card { min-height: 280px; display: grid; align-content: start; gap: 18px; }
.feature-card.mint {
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent-container) 76%, var(--surface)), color-mix(in oklch, var(--accent-container) 46%, var(--surface)));
  box-shadow: var(--shadow-mint);
}
.feature-card.coral {
  background: linear-gradient(180deg, color-mix(in oklch, var(--coral-soft) 78%, var(--surface)), color-mix(in oklch, var(--coral-soft) 48%, var(--surface)));
  box-shadow: var(--shadow-coral);
}
.feature-card.sky {
  background: linear-gradient(180deg, color-mix(in oklch, var(--sky-soft) 82%, var(--surface)), color-mix(in oklch, var(--sky-soft) 52%, var(--surface)));
  box-shadow: var(--shadow-sky);
}
.feature-card.mint .soft-label { background: color-mix(in oklch, var(--surface) 76%, var(--accent-container)); color: var(--accent); }
.feature-card.coral .soft-label { background: color-mix(in oklch, var(--surface) 72%, var(--coral-soft)); color: var(--coral); }
.feature-card.sky .soft-label { background: color-mix(in oklch, var(--surface) 72%, var(--sky-soft)); color: var(--sky); }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 18px; background: var(--surface); color: currentColor; box-shadow: inset 0 2px 4px color-mix(in oklch, var(--surface) 85%, transparent); }
.icon-box svg { width: 24px; height: 24px; }

.product-map { border-radius: var(--radius-lg); padding: 24px; background: var(--surface); box-shadow: var(--shadow-mint); }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.map-card { min-height: 150px; padding: 20px; border-radius: 26px; background: var(--surface-tint); display: grid; align-content: start; gap: 8px; }
.map-card.focus { background: var(--accent-mist); color: var(--accent); }
.map-card.coral { background: var(--coral-mist); color: var(--coral); }
.map-card.sky { background: var(--sky-mist); color: var(--sky); }
.map-card span { color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.screen-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.screen-shot { border-radius: 36px; padding: 12px; background: var(--surface); box-shadow: var(--shadow-mint); overflow: hidden; }
.screen-shot img { width: 100%; border-radius: 28px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top center; }
.screen-caption { text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 12px; }
.family-shot { aspect-ratio: 16 / 9; border-radius: 38px; overflow: hidden; box-shadow: var(--shadow-coral); background: var(--surface); }
.family-shot img { width: 100%; height: 100%; object-fit: cover; }

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { min-height: 172px; border-radius: 26px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; align-content: start; gap: 10px; }
.step .num { color: var(--accent); font: 900 13px var(--font-mono); }
.step p { color: var(--muted); font-size: 14px; }

.tab-wrap { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-mint); }
.tabs { display: flex; gap: 8px; padding: 12px; background: var(--surface-tint); overflow-x: auto; }
.tab-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-weight: 850; white-space: nowrap; }
.tab-btn[aria-selected='true'] { color: var(--accent); background: var(--surface); box-shadow: var(--shadow-soft); }
.panel { display: none; padding: 28px; grid-template-columns: minmax(0, .75fr) minmax(280px, .55fr); gap: 26px; }
.panel.active { display: grid; }
.panel p { color: var(--muted); }
.ui-card { border-radius: 28px; padding: 22px; background: var(--surface-tint); display: grid; gap: 14px; }
.metric-row { display: grid; grid-template-columns: 72px 1fr 48px; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.bar { height: 10px; border-radius: var(--pill); background: color-mix(in oklch, var(--accent-container) 34%, var(--surface)); overflow: hidden; }
.bar span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }

.table-wrap { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--fg); font-weight: 900; font-size: 15px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: var(--pill); background: var(--accent-mist); color: var(--accent); font-weight: 850; font-size: 12px; }

.scan-card { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-mint); overflow: hidden; }
.scan-head { padding: 28px; background: linear-gradient(135deg, var(--accent), color-mix(in oklch, var(--accent) 56%, var(--sky))); color: var(--surface); }
.scan-head h2 { color: var(--surface); font-size: clamp(28px, 3.4vw, 42px); }
.scan-head p { margin-top: 10px; opacity: .88; }
.scan-body { padding: 28px; display: grid; gap: 22px; }
.qr-panel { display: grid; place-items: center; text-align: center; gap: 16px; padding: clamp(18px, 4vw, 30px); border-radius: 34px; background: var(--surface-tint); }
.qr-code { width: min(100%, 292px); aspect-ratio: 1; border: 12px solid var(--surface); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.qr-code img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.qr-pattern { position: relative; width: 100%; height: 100%; border-radius: 18px; background:
  linear-gradient(90deg, var(--fg) 12px, transparent 12px 24px, var(--fg) 24px 36px, transparent 36px) 42% 23% / 90px 12px no-repeat,
  linear-gradient(90deg, var(--fg) 10px, transparent 10px 22px, var(--fg) 22px 34px, transparent 34px 46px, var(--fg) 46px 58px) 60% 74% / 120px 10px no-repeat,
  linear-gradient(0deg, var(--fg) 11px, transparent 11px 24px, var(--fg) 24px 36px, transparent 36px) 70% 45% / 11px 108px no-repeat,
  linear-gradient(0deg, var(--fg) 10px, transparent 10px 20px, var(--fg) 20px 30px, transparent 30px 44px, var(--fg) 44px 54px) 36% 65% / 10px 112px no-repeat,
  repeating-linear-gradient(90deg, color-mix(in oklch, var(--fg) 92%, transparent) 0 8px, transparent 8px 18px),
  repeating-linear-gradient(0deg, color-mix(in oklch, var(--fg) 92%, transparent) 0 8px, transparent 8px 18px); overflow: hidden; opacity: .92; }
.qr-pattern::before, .qr-pattern::after, .finder { content: ''; position: absolute; width: 70px; height: 70px; border: 12px solid var(--fg); background: var(--surface); border-radius: 9px; }
.qr-pattern::before { left: 13px; top: 13px; }
.qr-pattern::after { right: 13px; top: 13px; }
.finder { left: 13px; bottom: 13px; }
.qr-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 98px; height: 98px; border-radius: 26px; background: var(--surface); display: grid; place-items: center; color: var(--accent); font-weight: 900; line-height: 1; padding-top: 2px; box-shadow: var(--shadow-soft); }
.scan-note, .fine { color: var(--muted); font-size: 13px; max-width: 46ch; }
.scan-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.mini-input { min-height: 48px; display: flex; align-items: center; border-radius: var(--pill); padding: 0 18px; background: var(--surface-tint); color: var(--accent); font-weight: 900; }
.use-steps { display: grid; gap: 12px; }
.use-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.step-num { width: 32px; height: 32px; border-radius: var(--pill); display: grid; place-items: center; background: var(--accent-mist); color: var(--accent); font: 900 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; padding-top: 1px; }
.use-step span:not(.step-num) { display: block; color: var(--muted); font-size: 13px; }
.copy-status { min-height: 20px; color: var(--accent); font-size: 13px; font-weight: 850; }
.fine { max-width: none; padding: 14px 16px; border-radius: 20px; background: var(--accent-mist); color: var(--accent); font-weight: 750; }

.cta-strip { text-align: center; padding-block: clamp(64px, 9vw, 120px); }
.cta-strip .lead { margin: 16px auto 30px; }
footer { padding: 34px 0; color: var(--outline); font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .hero, .split, .phone-showcase, .panel { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .phone-frame { max-width: 360px; }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .topnav nav { display: none; }
  .section-head, .feature-grid, .page-grid, .cards-3 { grid-template-columns: 1fr; }
  .screen-gallery, .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(32px, 9.4vw, 40px); max-width: 12ch; line-height: 1.1; }
  .hero { padding-block: 46px 70px; }
  .container { padding-inline: 20px; }
  .hero .lead { margin-top: 18px; line-height: 1.72; }
  .hero, .hero * { min-width: 0; }
  .topnav .btn { display: none; }
  .topnav-inner { min-height: 64px; }
  .actions { gap: 10px; }
  .btn { width: 100%; }
  .btn-ghost { width: auto; }

  .study-mini { gap: 14px; }
  .study-mini-row { grid-template-columns: 42px minmax(0, 1fr); padding: 15px; }
  .progress-ring { display: none; }
  .workflow { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .tabs { padding: 10px; }
  .panel { padding: 20px; }
  th, td { padding: 13px; }
  .scan-actions { grid-template-columns: 1fr; }
  .scan-head, .scan-body { padding: 22px; }
  .qr-code { width: min(100%, 244px); border-width: 10px; }
}
