/* Layout (medeo-inspired): centred claim over a tilted full-app mock → moments marquee → sticky step list beside scrolling screens → feature grid → dark AI band → start steps → closing CTA. Harbor teal is the one brand colour (buttons, accent words, selection); amber, red and green are kept for status only. */
:root {
  --bg: #FFFFFF;
  --soft: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #0A1A1C;
  --muted: #5E6B70;
  --faint: #B4B9C4;
  --line: #E8EAEF;
  --pill: #0F766E;
  --pill-ink: #FFFFFF;
  --brand: #0F766E;
  --brand-soft: #E2F3F0;
  --amber: #B45309;
  --amber-soft: #FEF3D7;
  --red: #DC2626;
  --red-soft: #FDECEC;
  --green: #15803D;
  --green-soft: #E6F4EA;
  --band: #0B0D12;
  --band-ink: #EEF0F4;
  --band-muted: #9AA1AE;
  --band-line: #232731;
  --band-card: #14171F;
  --shadow: 0 2px 6px rgba(11, 13, 18, .05), 0 24px 60px rgba(11, 13, 18, .10);
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, var(--cjk);
  --serif: "Instrument Serif", Georgia, "Songti SC", serif;
  --body: "Inter", system-ui, -apple-system, var(--cjk);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C10; --soft: #11141A; --surface: #151922; --ink: #F1F3F7; --muted: #9AA1AE; --faint: #4A505C; --line: #232833;
    --pill: #3CC8B4; --pill-ink: #04201C;
    --brand: #3CC8B4; --brand-soft: #0F2E2B; --amber: #FBBF24; --amber-soft: #382A0E;
    --red: #F87171; --red-soft: #3A1A1D; --green: #4ADE80; --green-soft: #122E1E;
    --band: #05060A; --band-ink: #EEF0F4; --band-muted: #9AA1AE; --band-line: #1F232C; --band-card: #10131A;
    --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0C10; --soft: #11141A; --surface: #151922; --ink: #F1F3F7; --muted: #9AA1AE; --faint: #4A505C; --line: #232833;
  --pill: #3CC8B4; --pill-ink: #04201C;
  --brand: #3CC8B4; --brand-soft: #0F2E2B; --amber: #FBBF24; --amber-soft: #382A0E;
  --red: #F87171; --red-soft: #3A1A1D; --green: #4ADE80; --green-soft: #122E1E;
  --band: #05060A; --band-ink: #EEF0F4; --band-muted: #9AA1AE; --band-line: #1F232C; --band-card: #10131A;
  --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--brand); }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.2; }
:lang(zh) h1 em, :lang(zh) h2 em { font-family: var(--display); font-style: normal; font-weight: 800; color: var(--brand); }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 112px; }
.big-head { display: grid; gap: 20px; justify-items: start; margin-bottom: 48px; }
.big-head h2 { font-size: clamp(40px, 6vw, 72px); }
.big-head p { color: var(--muted); font-size: 18px; max-width: 38em; }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1px solid var(--pill); transition: opacity .15s; }
.pill:hover { opacity: .85; }
.pill svg { width: 14px; height: 14px; }
.pill-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.pill-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pill-ghost:hover { border-color: var(--muted); opacity: 1; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--pill-ink); display: grid; place-items: center; }
.brand small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top .actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.lang { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lang:hover { border-color: var(--muted); }
.signin { text-decoration: none; font-size: 14px; font-weight: 600; padding: 0 10px; }

/* Hero */
.hero { padding-block: 64px 0; text-align: center; }
.hero .kicker { font-size: 15px; color: var(--muted); }
.hero h1 { font-size: clamp(48px, 8.4vw, 112px); margin-top: 10px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 36em; margin: 22px auto 0; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

.stage { perspective: 2200px; margin-top: 56px; padding-bottom: 40px; }
.app { width: min(1080px, 100%); margin: 0 auto; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transform: rotateX(16deg) rotateZ(-6deg) translateY(-10px); transform-origin: 50% 0; font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar .b { font-family: var(--display); font-weight: 700; }
.app-bar nav { display: flex; gap: 14px; color: var(--muted); }
.app-bar nav .on { color: var(--ink); font-weight: 600; }
.app-bar .sel { margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 180px 1fr 250px; min-height: 340px; }
.side { border-right: 1px solid var(--line); padding: 14px; display: grid; gap: 6px; align-content: start; }
.side .cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.batch { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.batch.on { background: var(--soft); font-weight: 600; }
.batch .n { margin-left: auto; font-family: var(--mono); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.tbl { min-width: 0; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tr.th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-block: 9px; }
.tr.sel-row { background: var(--brand-soft); }
.tr.new { animation: arrive 1.2s ease-out; }
@keyframes arrive { from { background: var(--amber-soft); } to { background: transparent; } }
.detail { border-left: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; align-content: start; }
.detail .cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.detail .gift { border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 10px; }
.detail .act { justify-self: start; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 12px; }
.ex-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

.chip { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; justify-self: start; }
.c-store { background: var(--brand-soft); color: var(--brand); }
.c-wm { background: var(--amber-soft); color: var(--amber); }
.c-rush { background: var(--red-soft); color: var(--red); }
.c-std { background: var(--soft); color: var(--muted); }
.c-ok { background: var(--green-soft); color: var(--green); }

/* Platforms */
.platforms { text-align: center; padding-block: 24px 8px; }
.platforms .row { display: flex; justify-content: center; align-items: center; gap: 14px 36px; flex-wrap: wrap; margin-top: 14px; }
.platforms .label { font-size: 13px; color: var(--muted); }
.plat { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.plat.soon { color: var(--faint); }
.plat small { font-family: var(--body); font-size: 11px; font-weight: 600; color: var(--muted); vertical-align: middle; margin-left: 4px; }

/* Moments marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; padding-block: 8px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.moment { width: 236px; height: 300px; flex: none; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); padding: 16px; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.moment .scr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; font-size: 12px; overflow: hidden; }
.moment .lbl { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.mrow { display: flex; justify-content: space-between; gap: 8px; }
.big-num { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding-top: 6px; }
.bars span { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; }
.bars span:last-child { opacity: 1; }
.barcode { height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); border-radius: 2px; }
.ok-line { display: flex; gap: 6px; align-items: center; }
.ok-line::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green-soft); border: 3px solid var(--green); box-sizing: border-box; flex: none; }

/* Sticky workflow */
.flow { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.flow-list { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 0; }
.flow-item { text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 18px 0; font: inherit; color: var(--faint); cursor: pointer; display: grid; gap: 6px; transition: color .25s; }
.flow-item:last-child { border-bottom: 1px solid var(--line); }
.flow-item b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.flow-item span { font-size: 15px; display: none; }
.flow-item.on { color: var(--ink); }
.flow-item.on span { display: block; color: var(--muted); }
.screens { display: grid; gap: 28px; min-width: 0; }
.screen { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 28px; min-height: 420px; display: grid; align-content: center; gap: 14px; scroll-margin-top: 110px; min-width: 0; }
.screen .m-title { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.crow:last-child { border-bottom: 0; }
.crow .l { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.cap { font-size: 12px; color: var(--muted); }
.scan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.scan .field { flex: 1; min-width: 160px; border: 2px solid var(--brand); border-radius: 10px; padding: 8px 12px; font-family: var(--mono); }
.slip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.slip .gift { grid-column: 1 / -1; border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--soft); border-radius: 22px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--muted); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 15px; }
.feature li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--ink); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.stat b { display: block; font-family: var(--mono); font-size: 16px; }
.stat span { font-size: 12px; color: var(--muted); }

/* AI band */
.ai { background: var(--band); color: var(--band-ink); border-radius: 32px; margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
.ai h2 em { color: #3CC8B4; }
.ai .big-head p { color: var(--band-muted); }
.soon-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--band-ink); border: 1px solid var(--band-line); border-radius: 999px; padding: 4px 12px; }
.soon-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FBBF24; }
.ai-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.ask { background: var(--band-card); border: 1px solid var(--band-line); border-radius: 20px; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ask-head strong { font-family: var(--display); font-size: 20px; }
.q { justify-self: end; max-width: 85%; background: var(--pill); color: var(--pill-ink); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 15px; }
.a { display: grid; gap: 10px; font-size: 15px; }
.a table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a th, .a td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--band-line); white-space: nowrap; }
.a th { color: var(--band-muted); font-weight: 500; }
.a .num { text-align: right; font-family: var(--mono); }
.neg { color: #F87171; }
.ask .note { font-size: 12px; color: var(--band-muted); }
.table-scroll { overflow-x: auto; }
.ai-list { display: grid; gap: 0; }
.ai-item { border-top: 1px solid var(--band-line); padding: 18px 0; display: grid; gap: 6px; }
.ai-item:last-child { border-bottom: 1px solid var(--band-line); }
.ai-item h3 { font-size: 20px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ai-item h3 small { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #FBBF24; }
.ai-item p { color: var(--band-muted); font-size: 15px; }

/* Start + closing */
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.start-step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.start-step .mono { font-size: 13px; color: var(--muted); }
.start-step h3 { font-size: 24px; }
.start-step p { color: var(--muted); }
.closing { text-align: center; padding-block: 120px; }
.closing h2 { font-size: clamp(40px, 6.5vw, 84px); }
.closing .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.contact { font-size: 14px; color: var(--muted); margin-top: 16px; }
.contact b { color: var(--ink); font-weight: 600; user-select: all; }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .nav { display: none; }
  .top .wrap { grid-template-columns: 1fr auto; }
  .app-body { grid-template-columns: 150px 1fr; }
  .detail { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-list { display: none; }
  .screen .m-title { display: grid; gap: 6px; }
  .screen .m-title b { font-family: var(--display); font-size: 24px; }
  .screen .m-title span { color: var(--muted); }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding-block: 72px; }
  .signin { display: none; }
  .app { transform: none; border-radius: 16px; }
  .app-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .app-bar nav span:nth-child(n+3) { display: none; }
  .tr { grid-template-columns: 1.5fr 1fr; }
  .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
  .features, .start { grid-template-columns: 1fr; }
  .screen { padding: 18px; min-height: 0; }
  .slip { grid-template-columns: 1fr; }
  .ai { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}
