@font-face { font-family: "Schibsted"; src: url("fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
    --pine: #0F3D33;
    --pine-2: #15493E;
    --paper: #EDF3F1;
    --ice: #EDF3F1;
    --paper-2: #DDE8E4;
    --white: #F9FBFA;
    --ink: #0B2A23;
    --ink-soft: #2E4A43;
    --ink-2: #55706A;
    --line: rgba(11, 42, 35, .13);
    --line-strong: rgba(11, 42, 35, .24);
    --coral: #FF6B4A;
    --peach: #FFC2A1;
    --mint: #8CE8C8;
    --sky: #BFE3F2;
    --display: "Schibsted", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --mono: "Plex", "PingFang SC", "Microsoft YaHei", ui-monospace, monospace;
    --gutter: clamp(16px, 3vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Four channels */
[data-plate="0"] { --plate: var(--coral); }
[data-plate="1"] { --plate: var(--peach); }
[data-plate="2"] { --plate: var(--mint); }
[data-plate="3"] { --plate: var(--sky); }

.mark { width: 30px; height: 30px; flex: none; overflow: visible; color: var(--pine); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -0.025em; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; color: var(--ink-2); }
.section-title { font-size: clamp(2.2rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -0.04em; font-weight: 650; max-width: 18ch; margin-top: 14px; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-large { min-height: 64px; padding: 0 40px; font-size: 20px; }
.btn-ink { background: var(--coral); color: #24100A; }
.btn-ink:hover { background: #FF8466; }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-paper:hover { background: var(--mint); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--pine); color: var(--white); border-color: var(--pine); }
.btn:disabled { opacity: .45; cursor: progress; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); font-family: var(--mono); font-size: 12.5px; }
.lang button { min-height: 32px; min-width: 40px; padding: 0 9px; border-radius: 999px; color: var(--ink-2); }
.lang button:hover { color: var(--ink); }
.lang button.is-active { background: var(--pine); color: var(--white); }

/* Floating pill nav on every page */
.nav { position: fixed; top: 12px; left: var(--gutter); right: var(--gutter); z-index: 20; display: flex; align-items: center; gap: 20px; padding: 7px 8px 7px 18px; border-radius: 999px; background: rgba(249, 251, 250, .95); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(11, 42, 35, .1); transition: transform .35s; }
.nav.is-hidden { transform: translateY(-140%); }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(180px, 34vh, 380px); padding: 104px var(--gutter) 30px; overflow: hidden; background: var(--pine); color: var(--white); }
.wave-canvas { position: absolute; display: block; pointer-events: none; }
.hero-waves { left: 0; right: 0; top: 40%; width: 100%; height: 36%; }
.hero-head, .hero-foot { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--mint); }
.hero-title { margin-top: 16px; font-size: clamp(3.2rem, 8.6vw, 10rem); line-height: .96; letter-spacing: -0.045em; font-weight: 650; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: block; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-copy { flex: 1; max-width: 640px; }
.hero-sub { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.42; color: #CFE3DC; }
.hero-form { display: flex; gap: 6px; margin-top: 16px; padding: 5px; border-radius: 999px; background: var(--white); color: var(--ink); }
.hero-form input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; outline: 0; }
.hero-form input::placeholder { color: var(--ink-2); }
.hero-form:focus-within { box-shadow: 0 0 0 3px var(--coral); }
.hero-note { color: #A6C2B8 !important; }
.stats { display: flex; gap: clamp(20px, 3vw, 44px); flex: none; }
.stats dt { font-size: clamp(2.1rem, 3.4vw, 3.4rem); line-height: 1; font-weight: 650; letter-spacing: -0.04em; }
.stats dd { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: #A6C2B8; max-width: 12ch; line-height: 1.3; }

/* Pinned scope demo */
.scope-section { background: var(--paper); }
.scope-pin { display: flex; flex-direction: column; min-height: 100svh; padding: 92px var(--gutter) 24px; }
.scope-question { margin-top: 8px; font-size: clamp(1.9rem, 4.2vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 650; }
.scope { position: relative; flex: 1; min-height: 260px; margin-top: 20px; border-radius: 28px; background: var(--pine); color: var(--white); overflow: hidden; }
.scope canvas { inset: 0; width: 100%; height: 100%; }
.reading { position: absolute; right: 26px; top: 14px; text-align: right; }
.reading b { display: block; font-size: clamp(3.4rem, 7.6vw, 7.6rem); line-height: 1; letter-spacing: -0.05em; font-weight: 650; }
.reading span { font: 400 12.5px var(--mono); color: var(--mint); }
.scope-split { position: absolute; left: 26px; bottom: 16px; font: 400 13.5px var(--mono); color: var(--peach); }
.demo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.demo-card { padding: 14px 16px; border-radius: 20px; background: var(--white); font-size: 15px; line-height: 1.34; }
.demo-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 400 12px var(--mono); color: var(--ink-2); }
.demo-card i { width: 10px; height: 10px; border-radius: 50%; background: var(--plate); box-shadow: 0 0 0 1px var(--line); }

/* Why */
.why, .how, .faq, .models { padding: clamp(72px, 11vw, 150px) var(--gutter); }
.why { background: var(--white); }
.why-list { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: 10px; }
.why-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px 24px; align-items: center; padding: clamp(18px, 2.2vw, 30px); border-radius: 26px; background: var(--paper); }
.why-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--plate); box-shadow: 0 0 0 1px var(--line); }
.why-list h3 { font-size: clamp(1.45rem, 2.5vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.why-list p { color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.42; }

/* Lineup marquee */
.models { padding-inline: 0; overflow: hidden; background: var(--white); padding-top: 0; }
.models .eyebrow { padding-inline: var(--gutter); margin-bottom: 22px; }
.roster { display: grid; gap: 12px; }
.roster-row { display: flex; gap: 12px; width: max-content; align-items: center; will-change: transform; }
.roster-item { display: inline-flex; align-items: center; gap: 14px; padding: 10px 30px 10px 12px; border-radius: 999px; background: var(--paper); font-size: clamp(1.5rem, 3.4vw, 3.4rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.roster-row[data-direction="1"] .roster-item { background: var(--pine); color: var(--white); }
.roster-item span.logo { display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--pine); overflow: hidden; }
.roster-row[data-direction="1"] span.logo { background: var(--pine-2); }
.roster-item img { width: 60%; height: 60%; object-fit: contain; }

/* How */
.how { padding-top: clamp(40px, 6vw, 90px); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(32px, 5vw, 64px); }
.step { display: flex; flex-direction: column; min-height: clamp(280px, 28vw, 400px); padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; background: var(--white); }
.step-wave { width: 100%; height: auto; max-height: 76px; margin-bottom: 18px; }
.step-num { font: 400 13px var(--mono); color: var(--ink-2); }
.step h3 { margin-top: auto; font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; }
.step p { margin-top: 10px; color: var(--ink-soft); }

/* Token */
.token { position: relative; background: var(--pine); color: var(--white); overflow: hidden; }
.token .eyebrow { color: var(--mint); }
.token-waves { right: 0; top: 4%; width: 46%; height: 40%; opacity: .6; }
.token-inner { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(36px, 5vw, 60px); }
.token-ticker { margin-top: 12px; margin-left: -.03em; font-size: clamp(4rem, 15vw, 16rem); line-height: .94; letter-spacing: -0.055em; font-weight: 650; }
.token-title { margin-top: clamp(14px, 2vw, 26px); max-width: 21ch; font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: clamp(22px, 3vw, 40px); width: fit-content; max-width: 100%; padding: 8px 10px 8px 20px; border-radius: 999px; background: var(--pine-2); }
.ca-label { font: 400 12px var(--mono); color: #A6C2B8; }
.ca-value { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; min-height: 40px; display: inline-flex; align-items: center; }
.token .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.token-warn { margin-top: 14px; max-width: 62ch; font-size: 13.5px; line-height: 1.45; color: #A6C2B8; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px clamp(24px, 5vw, 80px); align-items: start; background: var(--white); }
.faq-head { position: sticky; top: 100px; }
.faq .section-title { font-size: clamp(2.1rem, 4.2vw, 4rem); }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-radius: 20px; background: var(--paper); padding: 0 20px; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 16px 0; cursor: pointer; list-style: none; font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform .3s, background-color .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--ink); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--coral); }
.faq-list details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 64ch; }

/* CTA + footer */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 40px); padding: clamp(50px, 8vw, 110px) var(--gutter); background: var(--peach); }
.cta h2 { font-size: clamp(2.4rem, 7vw, 7.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 650; max-width: 14ch; text-wrap: balance; }
.footer { background: var(--pine); color: var(--white); overflow: hidden; }
.footer .mark { color: var(--white); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--gutter) 0; font: 400 13px var(--mono); color: #A6C2B8; }
.footer-word { font-size: 23vw; line-height: .9; letter-spacing: -0.06em; font-weight: 650; text-align: center; margin: .08em 0 -.14em; color: var(--pine-2); }

/* Model chips (in the picker) */
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px 0 7px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-soft); background: var(--paper); transition: background-color .2s, color .2s, transform .2s; }
.chip img { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--pine); object-fit: contain; opacity: .75; }
.chip:hover { color: var(--ink); background: var(--paper-2); }
.chip:active { transform: scale(.98); }

.workspace { position: relative; flex: 1; min-height: 0; }
.column { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.column.is-ghost { opacity: .4; }
.column-head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 6px 4px 14px; }
.column-plate { width: 11px; height: 11px; border-radius: 50%; background: var(--plate); box-shadow: 0 0 0 1px var(--line); }
.column-head img { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--pine); object-fit: contain; }
.column-head h3 { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.column-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 18px; }

/* Loading: four little bars moving like a signal */
.dots { display: inline-flex; gap: 4px; height: 22px; align-items: center; padding-left: 2px; }
.dots i { width: 4px; height: 18px; border-radius: 4px; transform-origin: center; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(1) { background: var(--coral); }
.dots i:nth-child(2) { background: var(--peach); animation-delay: .12s; }
.dots i:nth-child(3) { background: #4FCBA4; animation-delay: .24s; }
.dots i:nth-child(4) { background: #8CC7E0; animation-delay: .36s; }
@keyframes dot { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.chat-empty { position: absolute; inset: 0; z-index: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; overflow-y: auto; color: var(--ink-2); }
.mark-large { width: clamp(64px, 11vh, 96px); height: clamp(64px, 11vh, 96px); margin-bottom: 14px; }
.chat-empty-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; font-weight: 650; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 6px; }

/* Web <-> chat: a signal line sweeps across, then opens into a colour fill */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; visibility: hidden; }
.wipe i { position: absolute; inset: 0; }
.wipe-edge { background: var(--coral); }
.wipe-fill { background: var(--pine); }

/* Notfound */
.nf-waves { left: 0; right: 0; top: 16%; width: 100%; height: 42%; }

/* Chinese typography */
html[lang="zh-CN"] :is(.hero-title, .section-title, .token-title, .cta h2, .why-list h3, .step h3, .scope-question, .chat-empty-title, .faq-list summary, .tile h3, .agent-card h3, .dash-block-head h2, .modal-head h2, .doc-text h2, .share-question, .privacy-grid strong, .balance-value, .footer-claim) { letter-spacing: 0; line-height: 1.16; }
html[lang="zh-CN"] .hero-title { font-size: clamp(3rem, 8vw, 9.4rem); line-height: 1.12; }

@media (max-width: 1000px) {
    .nav-links { display: none; }
    .hero { gap: clamp(150px, 26vh, 240px); }
    .hero-foot { flex-direction: column; align-items: stretch; }
    .stats { justify-content: space-between; }
    .faq { grid-template-columns: minmax(0, 1fr); }
    .faq-head { position: static; }
    .why-list li { grid-template-columns: 30px minmax(0, 1fr); }
    .why-list p { grid-column: 2; }
    .demo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .token-waves { width: 100%; opacity: .22; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .hero { padding-top: 92px; gap: 190px; }
    .hero-title { font-size: clamp(2.9rem, 14.4vw, 5.6rem); }
    html[lang="zh-CN"] .hero-title { font-size: clamp(2.4rem, 12vw, 5rem); }
    .hero-waves { top: 39%; height: 24%; }
    .hero-form .btn { padding: 0 18px; }
    .stats dd { font-size: 11px; }
    .stats dt { font-size: 1.9rem; }
    .scope { flex: none; height: 300px; }
    .reading { right: 16px; top: 10px; }
    .scope-split { left: 16px; bottom: 12px; font-size: 12px; }
    .demo-cards, .how-steps { grid-template-columns: minmax(0, 1fr); }
    .step { min-height: 230px; }
    .roster-item { padding-right: 20px; }
    .brand span { font-size: 18px; }
    .nav { padding-left: 14px; }
    .ca { border-radius: 22px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
