/* OffRails — local demo site. Shared design system. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --bg-soft: #fafaf8;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #666661;
  --muted-2: #9b9b95;
  --line: #e7e7e4;
  --line-2: #f0f0ed;
  --dark: #0a0a0f;
  --dark-2: #13131b;
  --dark-line: rgba(255, 255, 255, .09);
  --accent: #6c5cff;
  --accent-2: #19c9b6;
  --accent-soft: #efedff;
  --brand-blue: #0055fd;
  --live: #22c55e;
  --live-soft: #e8f8ee;
  --warn: #f59e0b;
  --red: #ef4444;
  --tp: #00b67a;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -16px rgba(17, 17, 17, .14);
  --shadow-lg: 0 1px 2px rgba(17, 17, 17, .05), 0 40px 80px -40px rgba(17, 17, 17, .30);
  --cjk: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei";
  --font: Inter, var(--cjk), ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: Prompt, Inter, var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 72px;
}
html[lang="zh-Hans"] { --cjk: "PingFang SC", "Noto Sans SC", "Microsoft YaHei"; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang^="zh"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: #111; color: #fff; }
code, kbd, pre { font-family: var(--mono); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}
.h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.h4 { font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0; }
html[lang^="zh"] :is(.display, .h1, .h2, .h3) { letter-spacing: 0; line-height: 1.18; font-weight: 600; }
.soft { color: var(--muted-2); }
.on-dark .soft { color: rgba(255, 255, 255, .42); }
.grad-text {
  background: linear-gradient(92deg, var(--accent) 0%, #a855f7 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: rgba(255, 255, 255, .5); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); margin: 0; }
.lead b, .lead strong { color: var(--ink); font-weight: 500; }
.on-dark .lead { color: rgba(255, 255, 255, .62); }
.on-dark .lead b { color: #fff; }
.small { font-size: 13px; color: var(--muted-2); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: #cfcfca; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececec; }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill b { font-weight: 600; }
.pill:hover { border-color: #d6d6d1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; background: var(--bg-alt); color: var(--ink-2);
}
.chip-live { background: var(--live-soft); color: #15803d; }
.chip-accent { background: var(--accent-soft); color: #4a3bd6; }
.chip-dark { background: var(--ink); color: #fff; }
.chip-glass { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.dot-red { background: var(--red); }
.dot-live { position: relative; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; color: var(--live); opacity: .35; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Announcement + nav ---------- */
.announce {
  background: var(--bg-alt); border-bottom: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); text-align: center; padding: 8px 16px;
}
.announce a { color: var(--ink); font-weight: 500; }
.announce a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; font-family: var(--font); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.logo:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 7px; border-radius: 4px; }
.logo-mark { width: 44px; height: 36px; object-fit: contain; flex: none; }
.footer .logo { gap: 12px; font-size: 25px; }
.footer .logo-mark { width: 48px; height: 40px; }
@media (max-width: 480px) {
  .nav .logo { gap: 9px; font-size: 22px; }
  .nav .logo-mark { width: 39px; height: 33px; }
}
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background .15s;
}
.nav-link:hover { background: var(--bg-alt); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .16s ease;
}
.nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a, .dd-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2);
}
.dd-menu a:hover, .dd-menu button:hover { background: var(--bg-alt); }
.dd-menu .sub { display: block; font-size: 12.5px; color: var(--muted-2); line-height: 1.4; }
.dd-menu button.current { background: var(--bg-alt); font-weight: 600; }
.dd-menu .check { margin-left: auto; opacity: 0; }
.dd-menu button.current .check { opacity: 1; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.lang-btn:hover { background: var(--bg-alt); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-toggle:hover { background: var(--bg-alt); }
.mobile-sheet {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: #fff;
  padding: 16px 16px 40px; overflow-y: auto;
}
.mobile-sheet.open { display: block; }
.mobile-sheet a.m-link { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line-2); font-size: 18px; font-family: var(--font-display); }
.mobile-sheet .m-langs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.mobile-sheet .m-langs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.mobile-sheet .m-langs button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 1180px) {
  .nav-links, .nav-right .hide-m { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 22px; }
.section-head.left { margin-left: 0; text-align: left; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-head { margin-bottom: 44px; } }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 32px; position: relative;
}
.card-flat { box-shadow: none; }
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-dark { background: var(--dark-2); border-color: var(--dark-line); color: #fff; box-shadow: none; }
.card .h4 + p, .card .h3 + p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card-dark .h4 + p, .card-dark .h3 + p { color: rgba(255, 255, 255, .58); }
@media (max-width: 720px) { .card { padding: 24px; border-radius: 24px; } }

.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--ink); margin-bottom: 22px;
}
.icon-box svg { width: 22px; height: 22px; }
.card-dark .icon-box { background: rgba(255, 255, 255, .07); color: #fff; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.page-hero .pill { margin-bottom: 28px; }
.page-hero .lead { max-width: 720px; margin: 26px auto 0; }
.page-hero .hero-ctas { margin-top: 36px; }
.glow {
  position: absolute; pointer-events: none; z-index: -1; inset: -200px 0 auto 0; height: 700px;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(0, 85, 253, .075), transparent 70%),
    radial-gradient(500px 260px at 72% 20%, rgba(25, 201, 182, .08), transparent 70%);
}

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 0; text-align: center; position: relative; isolation: isolate; }
.hero .pill { margin-bottom: 30px; }
.hero .lead { max-width: 760px; margin: 28px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-trust { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* Showcase (dark streaming demo) */
.showcase {
  margin: 72px auto 0; max-width: 1180px; border-radius: 36px; overflow: hidden; position: relative;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(108, 92, 255, .45), transparent 60%),
    radial-gradient(700px 380px at 100% 110%, rgba(25, 201, 182, .30), transparent 60%),
    linear-gradient(180deg, #14122b 0%, #0b0b12 100%);
  color: #fff; text-align: left; box-shadow: 0 50px 100px -50px rgba(40, 30, 120, .55);
}
.showcase-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; gap: 12px; flex-wrap: wrap; }
.showcase-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding: 0 24px 24px; }
@media (max-width: 900px) { .showcase-body { grid-template-columns: minmax(0, 1fr); } }
.term {
  background: rgba(5, 5, 10, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  overflow: hidden; min-height: 420px; display: flex; flex-direction: column;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: inline-block; }
.term-bar .t-title { margin-left: 8px; font-family: var(--mono); }
.term-bar .t-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.term-body { padding: 18px 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d8d8e6; flex: 1; overflow: hidden; position: relative; }
.term-body .prompt { color: #9d93ff; }
.term-body .user { color: #fff; }
.term-out { white-space: pre-wrap; word-break: break-word; margin-top: 12px; color: #c9f5ee; max-height: 300px; overflow: hidden; }
.term-out.overflow { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); }
.term-out .kw { color: #c4b5fd; }
.term-out .cm { color: rgba(255, 255, 255, .38); }
.caret { display: inline-block; width: 8px; height: 15px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.meter-col { display: flex; flex-direction: column; gap: 16px; }
.meter {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 22px;
}
.meter-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; }
.meter-value { font-family: var(--font-display); font-size: 60px; line-height: 1; margin-top: 14px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-value small { font-size: 18px; color: rgba(255, 255, 255, .5); margin-left: 6px; letter-spacing: 0; }
.spark { height: 46px; margin-top: 16px; display: flex; align-items: flex-end; gap: 3px; }
.spark span { flex: 1; background: linear-gradient(180deg, #8b7dff, rgba(139, 125, 255, .25)); border-radius: 3px 3px 0 0; transition: height .3s ease; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stats .meter { padding: 18px; }
.mini-stats .meter-value { font-size: 30px; margin-top: 10px; }
.showcase-foot {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 0 24px 24px;
}

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 56px 0 8px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* Logo strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; align-items: center; opacity: .78; }
.logos span { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: #8a8a85; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.logos span svg { width: 20px; height: 20px; }

/* ---------- Speed bars ---------- */
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 96px; gap: 18px; align-items: center; }
.bar-name { font-size: 14.5px; font-weight: 500; }
.bar-name .small { display: block; font-weight: 400; }
.bar-track { height: 14px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: #c9c9c4; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar-fill.us { background: linear-gradient(90deg, var(--accent), #a855f7 60%, var(--accent-2)); }
.bar-val { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-val b { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
@media (max-width: 720px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 980px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: auto; } }

/* ---------- Code window ---------- */
.code {
  background: #0d0d14; color: #e6e6f0; border-radius: 22px; overflow: hidden; border: 1px solid #1d1d28;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; box-shadow: var(--shadow-lg);
}
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid #1d1d28; overflow-x: auto; }
.code-tabs button { height: 32px; padding: 0 14px; border-radius: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); font-family: var(--font); white-space: nowrap; }
.code-tabs button.active { background: rgba(255, 255, 255, .08); color: #fff; }
.code-tabs .copy { margin-left: auto; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.code .k { color: #c4b5fd; } .code .s { color: #86efac; } .code .c { color: #6b6b80; } .code .n { color: #fcd34d; } .code .f { color: #7dd3fc; }
.code .hl { background: rgba(108, 92, 255, .18); display: inline-block; width: 100%; margin: 0 -22px; padding: 0 22px; box-sizing: content-box; }

/* ---------- Reviews ---------- */
.reviews-section { background: #fff; scroll-margin-top: 32px; padding: 72px 0 52px; overflow: hidden; border-block: 1px solid var(--line-2); }
.reviews-section .section-head { text-align: center; max-width: none; margin-bottom: 28px; }
.reviews-section .h2 { font-size: clamp(36px, 5.3vw, 68px); line-height: 1.08; }
.reviews-brand-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 11px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.reviews-brand-divider { width: 1px; height: 18px; background: var(--line); }
.hero-review-badge { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; width: fit-content; margin: 28px auto 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; background: #fff; transition: border-color .2s; }
.hero-review-badge { cursor: default; }
.hero-review-source { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; letter-spacing: -.03em; }
.hero-review-source svg { width: 20px; height: 20px; color: var(--tp); }
.hero-review-badge + .hero-trust { margin-top: 16px; margin-bottom: 48px; }
.reviews-summary { display: flex; align-items: flex-end; justify-content: center; gap: 20px; margin: 0 auto 42px; }
.reviews-score { font-family: var(--font-display); font-size: clamp(64px, 7vw, 90px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.reviews-score-detail { display: flex; flex-direction: column; gap: 3px; text-align: left; padding-bottom: 8px; font-size: 15px; }
.reviews-score-detail > span:last-child { font-size: 13px; color: var(--muted); }
.tp-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; letter-spacing: -.03em; color: #191919; }
.tp-mark svg { width: 22px; height: 22px; color: var(--tp); }
.review-stars { display: inline-flex; gap: 3px; flex: none; }
.review-stars > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 2px; background: var(--tp); color: #fff; }
.review-stars svg { width: 16px; height: 16px; }
.review-stars .unfilled { background: #dcdce6; }
.reviews-brand-badge .review-stars > span { width: 17px; height: 17px; }
.reviews-brand-badge .review-stars svg { width: 14px; height: 14px; }
.reviews-marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews-marquee:focus-within { -webkit-mask-image: none; mask-image: none; }
.reviews-grid { position: relative; display: flex; align-items: stretch; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 12px 20px 24px; }
.reviews-grid::-webkit-scrollbar { display: none; }
.reviews-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.reviews-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px auto 0; }
.reviews-navigation > span { color: var(--muted); font-size: 12px; }
.reviews-navigation > div { display: flex; align-items: center; gap: 8px; }
.reviews-navigation button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: background .2s, border-color .2s; }
.reviews-navigation [data-review-direction="-1"] svg { transform: rotate(180deg); }
.reviews-navigation button:hover { background: var(--bg-alt); border-color: #bdbdb7; }
.reviews-navigation button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reviews-position { font-family: var(--mono); color: var(--muted); font-size: 11px; margin-right: 8px; white-space: nowrap; }
.review-card { display: flex; flex-direction: column; flex: 0 0 380px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 4px 16px -10px rgba(17, 17, 17, .16); transition: box-shadow .2s ease; }
.review-card:hover { box-shadow: var(--shadow); }
.review-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.review-card time { color: var(--muted); font-size: 11px; }
.review-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; margin: 22px 0 14px; }
.review-body { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.review-author { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.review-author b { display: block; font-size: 13px; font-weight: 600; }
.review-author div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 600; }
.review-avatar.lavender { background: #eee9ff; color: #66529a; }
.review-avatar.peach { background: #ffeddf; color: #965d39; }
.review-avatar.mint { background: #e1f3e9; color: #39765b; }
.review-avatar.rose { background: #fbe6ed; color: #9b4e6d; }
.review-avatar.sand { background: #f4efdf; color: #7f6a33; }
.review-avatar.blue { background: #e6efff; color: #4c6b9d; }
@media (max-width: 600px) {
  .reviews-section { padding: 48px 0 32px; }
  .reviews-section .section-head { margin-bottom: 24px; }
  .reviews-brand-badge { margin-bottom: 24px; }
  .reviews-summary { gap: 16px; margin-bottom: 26px; }
  .reviews-score-detail { font-size: 13px; padding-bottom: 4px; }
  .reviews-score-detail > span:last-child { font-size: 11px; }
  .reviews-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
  .review-card { flex-basis: min(300px, 85vw); padding: 24px; }
  .review-card h3 { font-size: 18px; }
  .reviews-navigation > span { display: none; }
  .reviews-navigation { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .review-card { transition: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
table.t th, table.t td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tr.us td { background: linear-gradient(90deg, rgba(108, 92, 255, .07), rgba(25, 201, 182, .05)); font-weight: 500; }
table.t td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.yes { color: #16a34a; font-weight: 600; } .no { color: #c2410c; } .na { color: var(--muted-2); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; gap: 18px; }
.price-card .tier { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card .amount { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.price-card .amount small { font-size: 16px; color: var(--muted); font-family: var(--font); letter-spacing: 0; margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--live); }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.price-card.featured .tier, .price-card.featured .amount small { color: rgba(255, 255, 255, .55); }
.price-card.featured li svg { color: #5eead4; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-size: 17px; font-weight: 500; }
.faq-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; flex: none; transition: transform .25s ease, background .2s; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- Tabs (segmented) ---------- */
.seg { display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; gap: 4px; box-shadow: var(--shadow); }
.seg button { height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg button.active { background: var(--ink); color: #fff; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 40px; padding: 96px 32px; text-align: center; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(108, 92, 255, .55), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(25, 201, 182, .35), transparent 60%),
    #0b0b12;
}
.cta .lead { max-width: 620px; margin: 22px auto 0; }
.cta .hero-ctas { margin-top: 36px; }
@media (max-width: 720px) { .cta { padding: 64px 20px; border-radius: 28px; } }

/* ---------- Footer ---------- */
.footer { padding: 88px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 14.5px; max-width: 320px; margin: 16px 0 24px; }
.f-col h5 { font-size: 13.5px; font-weight: 600; margin: 4px 0 16px; }
.f-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.f-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; margin-top: 64px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted-2); }
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-word {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(120px, 24vw, 340px); text-align: center; margin-bottom: -.12em; user-select: none;
  background: linear-gradient(180deg, #ececea 0%, rgba(236, 236, 234, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.x-list li svg { color: var(--red); }
.ok-list li svg { color: var(--live); }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); font-family: var(--mono); font-size: .88em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; transition: all .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Request flow + uptime strip ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.flow span { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.flow .hot { background: rgba(108, 92, 255, .28); border-color: rgba(139, 125, 255, .5); color: #fff; }
.flow .gone { text-decoration: line-through; color: rgba(255, 255, 255, .45); }
.flow i { font-style: normal; color: rgba(255, 255, 255, .35); }
.uptime { min-width: 300px; }
.uptime-bars { display: flex; gap: 3px; height: 40px; }
.uptime-bars span { flex: 1; border-radius: 3px; background: var(--live); }
.uptime-bars span.warn { background: var(--warn); }
.uptime-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.on-dark .uptime-meta, .card-dark .uptime-meta { color: rgba(255, 255, 255, .5); }
.uptime-meta b { color: var(--ink); }
.card-dark .uptime-meta b { color: #fff; }
@media (max-width: 720px) { .uptime { min-width: 0; } .bento .card-dark.span-6 { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- Showcase on small screens ---------- */
.term-bar .t-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.term-bar .t-right { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .showcase { border-radius: 26px; margin-top: 48px; }
  .showcase-top, .showcase-body { padding-left: 14px; padding-right: 14px; }
  .term { min-height: 340px; border-radius: 18px; }
  .term-body { font-size: 11.5px; padding: 14px; }
  .term-out { max-height: 240px; }
  .meter-value { font-size: 48px; }
  .mini-stats .meter-value { font-size: 26px; }
}

/* Production access state; the test website keeps its original CTAs. */
.btn.whitelist-only { cursor: default; opacity: 1; pointer-events: none; }
.btn.whitelist-only:active { transform: none; }
.btn.whitelist-only .arrow { display: none; }
