/* Geist and Geist Mono are self-hosted so the site loads without any third-party requests. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f0e6; --bg-2: #ede6d8; --card: #fbf8f1; --line: #e0d7c5;
  --text: #16150f; --muted: #5d5a52; --accent: #e8743b; --accent-ink: #b4501d;
  --accent-soft: #fdeee4; --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(22,21,15,.05), 0 8px 24px rgba(22,21,15,.06);
  --radius: 16px; --edge: clamp(16px, 5vw, 48px);
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC";
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", var(--cjk), sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, var(--cjk), monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0f0e; --bg-2: #161614; --card: #1b1b19; --line: #2c2b28;
  --text: #f3f1ec; --muted: #a39f95; --accent: #f08a50; --accent-ink: #f5a172;
  --accent-soft: #2a1b12; --on-accent: #140b05;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}
[data-theme="dark"] body { background-image: none; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background-color: var(--bg); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--edge); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* announcement bar */
.announce { background: var(--text); color: var(--bg); font-size: 14px; text-align: center;
  padding: 10px var(--edge); }
.announce a { color: inherit; font-weight: 600; white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700;
  font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-btn { height: 40px; min-width: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center;
  font: 500 14px/1 var(--sans); text-decoration: none; padding: 0 11px; white-space: nowrap; }
.nav-btn:hover { background: var(--bg-2); color: var(--text); }
.theme-btn { padding: 0; }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 15px/1 var(--sans); text-decoration: none; border-radius: 12px; border: 1px solid transparent;
  padding: 12px 18px; transition: background .15s, transform .15s; white-space: nowrap; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-ink); color: var(--on-accent); }
[data-theme="dark"] .btn-accent:hover { color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 17px; padding: 17px 26px; border-radius: 14px; }
.btn-block { width: 100%; min-height: 54px; font-size: 17px; }

/* shared section grammar */
section { padding: clamp(72px, 10vw, 120px) 0 0; scroll-margin-top: 24px; }
.eyebrow { display: block; font: 500 14px/1.3 var(--mono); color: var(--accent-ink); margin-bottom: 18px; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 20ch; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; margin-top: 16px; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -0.035em; line-height: 1.03; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 24px; max-width: 34ch; line-height: 1.45; }
.hero .sub strong { color: var(--text); font-weight: 600; }
.hero .links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; text-decoration: none; }
.link-arrow .icon { width: 17px; height: 17px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line); background: var(--card); padding: 8px 12px; border-radius: 999px; margin-bottom: 26px; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* buy box */
.buy { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(22px, 3.4vw, 36px); scroll-margin-top: 88px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--mono); color: var(--accent-ink);
  background: var(--accent-soft); padding: 7px 11px; border-radius: 999px; }
.pill .icon { width: 14px; height: 14px; }
.buy h2 { font-size: clamp(23px, 2.6vw, 29px); margin-top: 18px; letter-spacing: -0.02em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; }
.price b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 17px; }
.price s { font-size: 20px; color: var(--muted); font-weight: 500; }
.checks { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 11px; font-size: 16px; line-height: 1.4; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-ink); stroke-width: 2.4; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.feature .num { font: 500 13px/1 var(--mono); color: var(--muted); }
.feature h3 { font-size: clamp(20px, 2vw, 23px); letter-spacing: -0.02em; line-height: 1.2; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.soon { display: inline-block; font: 500 12px/1 var(--mono); color: var(--accent-ink); background: var(--accent-soft);
  padding: 5px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; white-space: nowrap; }

/* live view: text beside a mock of the agent's browser */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .head { margin-bottom: 0; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--muted); line-height: 1.5; }
.points strong { color: var(--text); font-weight: 600; display: block; }
.points .icon { color: var(--accent-ink); margin-top: 2px; width: 20px; height: 20px; }

.screen { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow), 0 24px 48px rgba(22,21,15,.10); margin: 0; }
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url { flex: 1; min-width: 0; font: 400 13px/1 var(--mono); color: var(--muted); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
.url .icon { width: 13px; height: 13px; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mono); color: var(--accent-ink); flex: none; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.screen-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.page { padding: 22px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); background: var(--bg); }
.sk { height: 10px; border-radius: 5px; background: var(--line); }
.sk.w40 { width: 40%; } .sk.w70 { width: 70%; } .sk.w55 { width: 55%; }
.login { margin-top: 8px; border: 2px solid var(--accent); border-radius: 12px; padding: 16px; display: grid; gap: 10px; background: var(--card); position: relative; }
.login b { font-size: 14px; font-weight: 600; }
.field { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: flex; align-items: center; padding: 0 10px;
  font: 400 12px/1 var(--mono); color: var(--muted); }
.field.go { background: var(--text); color: var(--bg); border-color: var(--text); justify-content: center; font-family: var(--sans); font-weight: 600; font-size: 13px; }
.flag { position: absolute; top: -11px; right: 12px; font: 600 11px/1 var(--mono); background: var(--accent); color: var(--on-accent); padding: 5px 8px; border-radius: 999px; }
.steps { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.steps h4 { margin: 0; font: 500 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; line-height: 1.35; }
.steps li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.steps li.now { color: var(--text); font-weight: 600; }
.steps li.todo { opacity: .6; }
.mark { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line); margin-top: 1px; }
.done .mark { background: var(--text); border-color: var(--text); color: var(--bg); }
.done .mark .icon { width: 11px; height: 11px; stroke-width: 3; }
.now .mark { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 9px var(--accent); }
.takeover { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 14px; padding: 11px 12px; border-radius: 10px; text-align: center; }
.takeover .icon { width: 16px; height: 16px; }

/* safety rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows h3 { font-size: 20px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.rows h3 .icon { color: var(--accent-ink); width: 20px; height: 20px; }
.rows p { color: var(--muted); font-size: 17px; max-width: 62ch; }

/* GOSIM bonus */
.bonus { background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 5vw, 64px); }
.bonus .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.when { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 400 14px/1.4 var(--mono); color: var(--muted); }
.when li { display: flex; gap: 9px; align-items: center; }
.when .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.when a { color: inherit; text-decoration-color: var(--line); }
.when a:hover { color: var(--accent-ink); }
.asks { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); }
.asks h3 { font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.asks ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.asks li { font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--bg); border: 1px solid var(--line); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.8vw, 32px); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .name { font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 27px; }
.plan .checks { flex: 1; margin-bottom: 26px; align-content: start; }
.plan .note { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 3em; }
.plan.muted .price b { color: var(--muted); }

/* self-host */
.code { background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 22px 24px; overflow-x: auto;
  font: 400 14px/1.7 var(--mono); margin: 0; tab-size: 2; }
[data-theme="dark"] .code { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.code .c { opacity: .55; }
.paths { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.paths li { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 14px; border: 1px solid var(--line);
  background: var(--card); border-radius: 12px; font-weight: 500; font-size: 15px; }
.paths .icon { color: var(--accent-ink); width: 19px; height: 19px; }
.aside { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 70ch; }
code { font: 400 .92em var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* closing cta */
.final { text-align: center; background: var(--text); color: var(--bg); border-radius: 28px;
  padding: clamp(44px, 8vw, 88px) var(--edge); }
.final .eyebrow { color: var(--accent); }
[data-theme="dark"] .final .eyebrow { color: #b4501d; }
.final h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 18ch; margin: 0 auto; }
.final .price-line { font-size: 18px; opacity: .75; margin: 16px auto 0; max-width: 46ch; }
.final .btn { margin-top: 32px; }

/* footer */
footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 36ch; }
.foot h4 { margin: 0 0 12px; font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--accent-ink); }
.legal { margin-top: 40px; font-size: 13px; color: var(--muted); max-width: 80ch; }

/* Chinese: CJK glyphs are about 2ch wide and read badly with negative tracking */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .hero h1 { letter-spacing: 0; line-height: 1.18; font-size: clamp(34px, 5vw, 60px); }
:lang(zh) .h2 { max-width: 30ch; }
:lang(zh) .final h2 { max-width: 28ch; }
:lang(zh) .hero .sub { max-width: 44ch; line-height: 1.6; }
:lang(zh) .lede, :lang(zh) .rows p { max-width: 76ch; }
:lang(zh) body { line-height: 1.7; }

/* responsive */
@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero .sub { max-width: 44ch; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan .note { min-height: 0; }
  .plan.best { order: -1; }
  .bonus .head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .screen-body { grid-template-columns: 1fr; }
  .page { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { padding: 10px 13px; font-size: 14px; }
  .code { font-size: 12.5px; padding: 18px; }
  .live span { display: none; }
}
