/* ==========================================================================
   Eklentio — design system
   Dark-first, follows the system theme, manual override via [data-theme].
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-3: #1e1e23;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .2);
  --fg: #ededef;
  --fg-2: #a3a3ad;
  --fg-3: #6e6e78;
  --accent: #ff6a2b;
  --accent-2: #ff8a4c;
  --accent-ink: #ff8a4c;
  --accent-soft: rgba(255, 106, 43, .12);
  --accent-line: rgba(255, 106, 43, .35);
  --on-accent: #1a0700;
  --ok: #46d483;
  --ok-soft: rgba(70, 212, 131, .12);
  --btn-bg: #ededef;
  --btn-fg: #0a0a0b;
  --grid: rgba(255, 255, 255, .045);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glow: rgba(255, 106, 43, .22);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --w: 1200px;
  --gut: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --surface-3: #efeff1;
  --line: rgba(10, 10, 20, .08);
  --line-2: rgba(10, 10, 20, .13);
  --line-3: rgba(10, 10, 20, .22);
  --fg: #0a0a0b;
  --fg-2: #55555f;
  --fg-3: #84848e;
  --accent: #f0521a;
  --accent-2: #ff6a2b;
  --accent-ink: #c2410c;
  --accent-soft: rgba(240, 82, 26, .08);
  --accent-line: rgba(240, 82, 26, .3);
  --on-accent: #ffffff;
  --ok: #15a35a;
  --ok-soft: rgba(21, 163, 90, .1);
  --btn-bg: #0a0a0b;
  --btn-fg: #ffffff;
  --grid: rgba(10, 10, 20, .05);
  --shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 30px 70px -35px rgba(10, 10, 20, .28);
  --glow: rgba(255, 106, 43, .16);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff;
    --bg-2: #fafafa;
    --surface: #ffffff;
    --surface-2: #f6f6f7;
    --surface-3: #efeff1;
    --line: rgba(10, 10, 20, .08);
    --line-2: rgba(10, 10, 20, .13);
    --line-3: rgba(10, 10, 20, .22);
    --fg: #0a0a0b;
    --fg-2: #55555f;
    --fg-3: #84848e;
    --accent: #f0521a;
    --accent-2: #ff6a2b;
    --accent-ink: #c2410c;
    --accent-soft: rgba(240, 82, 26, .08);
    --accent-line: rgba(240, 82, 26, .3);
    --on-accent: #ffffff;
    --ok: #15a35a;
    --ok-soft: rgba(21, 163, 90, .1);
    --btn-bg: #0a0a0b;
    --btn-fg: #ffffff;
    --grid: rgba(10, 10, 20, .05);
    --shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 30px 70px -35px rgba(10, 10, 20, .28);
    --glow: rgba(255, 106, 43, .16);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, li a:hover, td a:hover, .link:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- layout: rails ---------- */
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.rails { position: relative; max-width: var(--w); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sec { position: relative; border-top: 1px solid var(--line); padding: 112px 0; }
.sec.tight { padding: 72px 0; }
.sec.flush { padding: 0; }
/* crosshair marks where section lines meet the rails */
.sec::before, .sec::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none;
  background:
    linear-gradient(var(--line-3), var(--line-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat;
}
.sec::before { left: -6px; }
.sec::after { right: -6px; }
.sec.no-cross::before, .sec.no-cross::after { display: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: skewX(-20deg); }
.h-xl { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.05em; line-height: 1; font-weight: 600; }
.h-lg { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
.h-md { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--fg-2); line-height: 1.6; max-width: 600px; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.grad-text { background: linear-gradient(180deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 45%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--accent-ink); }

.sec-head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
.sec-head p { color: var(--fg-2); font-size: 16px; }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 999px;
  font: 500 14px/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
  cursor: pointer; user-select: none;
}
.btn .ic { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { --h: 46px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--accent)); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 24px -8px var(--glow); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--surface-2); }
.btn-quiet { color: var(--fg-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--fg); background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--fg-3); background: var(--surface); }

/* ---------- chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px/1 var(--font); color: var(--fg-2); background: var(--surface); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.chip.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.chip.live .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.chip.soon .dot { background: var(--accent); }
.chip.pro { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.top.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.035em; }
.brand svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--fg); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--fg-2); border: 1px solid var(--line); transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn .ic { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }

/* mobile sheet */
.sheet { display: none; }
@media (max-width: 860px) {
  .nav, .top-actions .hide-m { display: none; }
  .menu-btn { display: inline-grid; }
  .top .wrap { justify-content: space-between; }
  .sheet { display: block; position: fixed; inset: 64px 0 0; z-index: 49; background: var(--bg); padding: 16px var(--gut) 32px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; overflow-y: auto; }
  .sheet.open { opacity: 1; transform: none; visibility: visible; }
  .sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 20px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
  .sheet .btn { width: 100%; margin-top: 24px; font-size: 15px; border-bottom: 0; justify-content: center; }
  body.locked { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; left: 50%; top: 52%; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(30px); pointer-events: none; }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero h1 { max-width: 920px; }
.hero .lead { margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--fg-3); font-size: 13px; margin-top: 4px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 14px; height: 14px; color: var(--ok); }

.announce { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 13px; color: var(--fg-2); transition: border-color .2s, color .2s; }
.announce:hover { border-color: var(--line-3); color: var(--fg); }
.announce b { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.announce .ic { width: 14px; height: 14px; color: var(--fg-3); }

/* browser frame showcase */
.stage { position: relative; margin-top: 72px; padding: 0 var(--gut); perspective: 1800px; }
.browser {
  position: relative; max-width: 1080px; margin: 0 auto; border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--line-2); border-bottom: 0; background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden;
}
.browser::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.b-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.b-dots { display: flex; gap: 7px; }
.b-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); }
.b-url { flex: 1; max-width: 420px; margin: 0 auto; height: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font: 12px var(--mono); color: var(--fg-3); }
.b-url .ic { width: 12px; height: 12px; }
.b-ext { position: relative; display: flex; align-items: center; gap: 6px; }
.b-ext img { width: 22px; height: 22px; border-radius: 6px; }
.b-ext .pulse { position: absolute; inset: -4px; border-radius: 9px; border: 1px solid var(--accent); opacity: .0; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.b-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* toast floating on the showcase */
.toast { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 13px; text-align: left; z-index: 2; }
.toast small { display: block; color: var(--fg-3); font-size: 12px; }
.toast .t-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.toast .t-ic.a { background: var(--accent-soft); color: var(--accent-ink); }
.toast.t1 { left: max(var(--gut), calc(50% - 620px)); top: 46%; animation: floaty 7s ease-in-out infinite; }
.toast.t2 { right: max(var(--gut), calc(50% - 620px)); top: 14%; animation: floaty 7s ease-in-out -3.5s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) { .toast { display: none; } }

/* ---------- marquee of host sites ---------- */
.hosts { display: grid; grid-template-columns: 220px 1fr; align-items: center; }
.hosts > p { padding: 28px var(--gut); font-size: 13px; color: var(--fg-3); border-right: 1px solid var(--line); line-height: 1.45; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; padding: 28px 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; margin-right: 56px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: var(--fg-2); white-space: nowrap; }
.marquee-track span .ic { width: 18px; height: 18px; color: var(--fg-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .hosts { grid-template-columns: 1fr; } .hosts > p { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px var(--gut); } }

/* ---------- extension cards (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.bento > * { background: var(--bg); }
.xc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; min-height: 260px; transition: background .25s; isolation: isolate; }
.xc:hover { background: var(--bg-2); }
.xc-head { display: flex; align-items: center; gap: 12px; }
.xc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg-2); flex: none; overflow: hidden; }
.xc-icon img { width: 100%; height: 100%; }
.xc-icon .ic { width: 18px; height: 18px; }
.xc h3 { font-size: 17px; letter-spacing: -.02em; }
.xc h3 small { display: block; font: 400 13px/1.4 var(--font); color: var(--fg-3); letter-spacing: 0; margin-top: 2px; }
.xc-head .chip { margin-left: auto; }
.xc p { color: var(--fg-2); font-size: 14px; }
.xc-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xc-foot .mono { color: var(--fg-3); }
.xc.feature { grid-column: span 2; grid-row: span 2; padding: 32px; overflow: hidden; min-height: 540px; }
.xc.feature h3 { font-size: 24px; letter-spacing: -.03em; }
.xc.feature p { font-size: 15px; max-width: 460px; }
.xc-shot { position: relative; margin: 12px -32px -32px 32px; border-top-left-radius: 12px; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease); flex: 1; min-height: 240px; }
.xc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.xc.feature:hover .xc-shot { transform: translate(-6px, -6px); }
.xc.feature .glow { position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 70%; height: 80%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px); }
.xc.more { justify-content: center; align-items: flex-start; }
.xc.more .xc-icon { border-style: dashed; }
.xc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.xc .btn { position: relative; z-index: 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .xc.feature { grid-column: span 2; grid-row: auto; min-height: 0; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .xc.feature { grid-column: auto; } .xc { min-height: 0; } .xc-shot { min-height: 200px; margin-left: 0; border-right: 1px solid var(--line-2); border-top-right-radius: 12px; margin-right: 0; } }

/* ---------- cell grid (principles / features) ---------- */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cells.c3 { grid-template-columns: repeat(3, 1fr); }
.cells.c2 { grid-template-columns: repeat(2, 1fr); }
.cell { position: relative; padding: 36px 28px 40px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.cell:last-child { border-right: 0; }
.cell .num { font: 12px var(--mono); color: var(--fg-3); margin-bottom: 20px; }
.cell .c-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); margin-bottom: 12px; }
.cell .c-ic .ic { width: 17px; height: 17px; }
.cell h3 { font-size: 16px; letter-spacing: -.015em; }
.cell p { color: var(--fg-2); font-size: 14px; }
.cell:hover .c-ic { color: var(--accent-ink); border-color: var(--accent-line); }
.cell .c-ic { transition: color .2s, border-color .2s; }
@media (max-width: 960px) { .cells, .cells.c3 { grid-template-columns: 1fr 1fr; } .cell:nth-child(2n) { border-right: 0; } .cell { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .cells, .cells.c3, .cells.c2 { grid-template-columns: 1fr; } .cell { border-right: 0; } }

/* ---------- data flow diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: stretch; gap: 0; }
.node { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.node-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 14px; font-weight: 500; }
.node-h .mono { margin-left: auto; color: var(--fg-3); }
.node-h .ic { color: var(--fg-2); }
.node ul { list-style: none; display: grid; }
.node li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; color: var(--fg-2); border-bottom: 1px dashed var(--line); }
.node li:last-child { border-bottom: 0; }
.node li .ic { width: 15px; height: 15px; color: var(--fg-3); }
.node li .tag { margin-left: auto; font: 11px var(--mono); color: var(--fg-3); }
.node.local { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.node.local .node-h { background: var(--ok-soft); }
.node.local .node-h .ic { color: var(--ok); }
.wire { position: relative; display: grid; place-items: center; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 12px); }
.wire .packet { position: absolute; top: calc(50% - 3px); left: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: packet 3.2s linear infinite; }
@keyframes packet { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }
.wire .label { position: relative; z-index: 1; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); font: 11px/1.4 var(--mono); color: var(--fg-2); text-align: center; }
.blocked { position: relative; display: grid; gap: 4px; margin-top: 14px; font: 11px var(--mono); color: var(--fg-3); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .wire { height: 90px; }
  .wire::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-3) 0 6px, transparent 6px 12px); }
  .wire .packet { left: calc(50% - 3px); animation-name: packet-v; }
  @keyframes packet-v { from { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { top: calc(100% - 6px); opacity: 0; } }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.step { position: relative; padding: 40px 28px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step:last-child { border-right: 0; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 12px var(--mono); color: var(--accent-ink); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { color: var(--fg-2); font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-wrap .sec-head { margin: 0; position: sticky; top: 96px; align-self: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; color: var(--fg-3); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 1px; transition: transform .25s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details p { padding: 0 40px 22px 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } .faq-wrap .sec-head { position: static; } }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); padding: 72px 56px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; isolation: isolate; }
.cta-card .mark-bg { position: absolute; z-index: -1; right: -60px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%) rotate(-6deg); opacity: .9; filter: drop-shadow(0 40px 80px var(--glow)); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 35%, color-mix(in srgb, var(--surface) 30%, transparent)); }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { color: var(--fg-2); font-size: 16px; max-width: 460px; }
.cta-card .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; padding: 48px 28px; } .cta-card .mark-bg { width: 300px; height: 300px; right: -90px; opacity: .35; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 64px 0 48px; }
.foot-grid h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid ul a { font-size: 14px; color: var(--fg-2); transition: color .15s; }
.foot-grid ul a:hover { color: var(--fg); }
.foot-brand p { color: var(--fg-3); font-size: 14px; margin-top: 14px; max-width: 280px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--fg-2); padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.foot-word { overflow: hidden; border-top: 1px solid var(--line); }
.foot-word svg { width: 100%; height: auto; margin-bottom: -2.2%; color: var(--surface-2); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.phero .hero-grid { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 30% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 30% 0%, #000 20%, transparent 70%); }
.phero-inner { position: relative; display: grid; gap: 18px; max-width: 760px; }
.phero.center .phero-inner { margin: 0 auto; text-align: center; justify-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 12px var(--mono); color: var(--fg-3); }
.crumbs a:hover { color: var(--fg); }
.crumbs span { opacity: .5; }

/* ---------- product page ---------- */
.p-hero { position: relative; padding: 80px 0 0; overflow: hidden; }
.p-hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 820px; }
.p-id { display: flex; align-items: center; gap: 12px; }
.p-id img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 24px -8px rgba(30, 200, 150, .45); }
.p-id b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.p-id small { font-size: 13px; color: var(--fg-3); }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; color: var(--fg-2); font-size: 14px; }
.checks-inline li { display: inline-flex; gap: 8px; align-items: center; }
.checks-inline .ic { color: var(--ok); width: 15px; height: 15px; }
.p-hero .stage { padding: 0; margin-top: 64px; }
.p-hero .browser { max-width: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--fg-3); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* tabs showcase */
.tabs { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.tab-list { display: grid; align-content: start; border-right: 1px solid var(--line); }
.tab { position: relative; text-align: left; display: grid; gap: 6px; padding: 22px 24px; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: background .2s, color .2s; }
.tab:last-child { border-bottom: 0; }
.tab b { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -.015em; }
.tab b .ic { color: var(--fg-3); transition: color .2s; }
.tab span { font-size: 13.5px; line-height: 1.55; display: none; }
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--bg-2); }
.tab[aria-selected="true"] span { display: block; }
.tab[aria-selected="true"] b .ic { color: var(--accent-ink); }
.tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.tab[aria-selected="true"]::before { transform: scaleY(var(--p, 1)); }
.tab-panels { position: relative; padding: 32px 0 0 32px; background: radial-gradient(ellipse 80% 70% at 100% 100%, var(--glow), transparent 70%), var(--bg-2); overflow: hidden; min-height: 460px; }
.tab-panel { position: absolute; inset: 32px 0 0 32px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.tab-panel.on { opacity: 1; transform: none; pointer-events: auto; position: relative; inset: auto; }
.tab-panel .frame { border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; border-top-left-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tab-panel .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.tab-detail { display: grid; gap: 10px; margin: 24px 32px 28px 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
.tab-detail li { font-size: 13px; color: var(--fg-2); padding-left: 14px; border-left: 1px solid var(--line-2); }
.tab-detail li b { display: block; color: var(--fg); font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
@media (max-width: 960px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { border-bottom: 0; border-right: 1px solid var(--line); padding: 14px 18px; }
  .tab[aria-selected="true"] span { display: none; }
  .tab::before { top: auto; left: 0; right: 0; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .tab[aria-selected="true"]::before { transform: scaleX(var(--p, 1)); }
  .tab-panels { padding: 20px 0 0 20px; min-height: 0; }
  .tab-panel { inset: 20px 0 0 20px; }
  .tab-detail { grid-template-columns: 1fr; margin-right: 20px; }
  .tab-mobile-desc { display: block !important; }
}
.tab-mobile-desc { display: none; font-size: 14px; color: var(--fg-2); margin: 0 20px 16px 0; }

/* panels (safeguards) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); padding: 32px; }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 22px; }
.panel h3 .c-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); }
.list { list-style: none; display: grid; gap: 0; }
.list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--fg-2); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li .ic { margin-top: 3px; color: var(--ok); }
.list li b { color: var(--fg); font-weight: 500; }
.note { margin-top: 20px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--fg-2); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* prose */
.prose { max-width: 720px; display: grid; gap: 14px; }
.prose h3 { font-size: 19px; margin-top: 22px; }
.prose p { color: var(--fg-2); font-size: 15.5px; line-height: 1.75; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.cols > div { display: grid; gap: 10px; align-content: start; padding: 24px 0; border-top: 1px solid var(--line); }
.cols h3 { font-size: 16px; }
.cols p { color: var(--fg-2); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); gap: 2px; }
.billing button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.billing button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.billing .save { font: 500 11px var(--mono); color: var(--accent-ink); }
.billing button[aria-pressed="true"] .save { color: var(--accent); }
:root[data-theme="light"] .billing button[aria-pressed="true"] .save { color: #ffb07a; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); }
.plan.pro { border-color: var(--accent-line); background: radial-gradient(ellipse 90% 60% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); box-shadow: 0 30px 80px -40px var(--glow); }
.plan-h { display: flex; align-items: center; justify-content: space-between; }
.plan-h h3 { font-size: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 48px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--fg-3); font-size: 14px; }
.plan .sub { color: var(--fg-2); font-size: 14px; min-height: 22px; }
.plan .list li { padding: 11px 0; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-ext { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-ext img { width: 36px; height: 36px; border-radius: 10px; }
.plan-ext b { font-size: 16px; }
.plan-ext small { color: var(--fg-3); font-size: 13px; display: block; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.table-wrap { border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow-x: auto; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.table th, .table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 500 12px var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--fg-2); }
.table td:first-child { color: var(--fg); }
.table .xn { display: flex; align-items: center; gap: 12px; font-weight: 500; text-decoration: none; }
.table .xn img { width: 30px; height: 30px; border-radius: 8px; }
.table .xn small { display: block; font-weight: 400; font-size: 12px; color: var(--fg-3); }
.table .num { font-variant-numeric: tabular-nums; color: var(--fg); }

.fine { margin-top: 32px; font-size: 13px; color: var(--fg-3); max-width: 760px; }

/* ---------- extensions page ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.search input { width: 100%; height: 42px; padding: 0 60px 0 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font: 14px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--fg-3); }
.search input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.filters { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.filters button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--fg-2); transition: background .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--surface-3); color: var(--fg); }
.count { margin-left: auto; font: 12px var(--mono); color: var(--fg-3); }
.empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-xl); display: grid; justify-items: center; gap: 10px; }
.empty p { color: var(--fg-2); }
.empty .btn { margin-top: 10px; }
.bento.flat .xc.feature { grid-row: auto; min-height: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s; }
.ccard:hover { border-color: var(--line-3); }
.ccard .c-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); margin-bottom: 8px; }
.ccard h2 { font-size: 18px; }
.ccard p { color: var(--fg-2); font-size: 14px; }
.ccard .mail { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); }
.ccard .mail a { font: 13px var(--mono); color: var(--fg); }
.ccard .mail a:hover { color: var(--accent-ink); }
.copy { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--fg-3); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.copy:hover { color: var(--fg); border-color: var(--line-2); }
.copy .i-ok { display: none; color: var(--ok); }
.copy.done .i-copy { display: none; }
.copy.done .i-ok { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- legal docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 64px 0 112px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc b { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 10px; }
.toc a { font-size: 13.5px; color: var(--fg-3); padding: 5px 0 5px 12px; border-left: 1px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-left-color: var(--accent); }
.doc { max-width: 720px; }
.doc h2 { font-size: 21px; letter-spacing: -.025em; margin: 48px 0 14px; padding-top: 4px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--fg-2); font-size: 15px; line-height: 1.75; }
.doc p + p { margin-top: 12px; }
.doc b { color: var(--fg); font-weight: 500; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.doc li::marker { color: var(--fg-3); }
.doc .callout { margin: 0 0 32px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.doc .callout p { color: var(--fg); }
.doc .tbl { margin: 16px 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
.doc th { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); background: var(--surface-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--fg); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; } .toc { position: static; display: none; } }

/* ---------- pay page ---------- */
.pay-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.pay-page .hero-grid { -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 60%); mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 60%); }
.pay { position: relative; width: 100%; max-width: 420px; padding: 40px 32px 28px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: 10px; }
.pay svg.mark { width: 48px; height: 48px; margin-bottom: 14px; }
.pay h1 { font-size: 22px; letter-spacing: -.03em; }
.pay p { color: var(--fg-2); font-size: 14px; }
.pay .btn { margin-top: 14px; }
.pay small { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; font-size: 12px; color: var(--fg-3); }
.pay .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.pay.ok .spinner, .pay.idle .spinner { display: none; }
.pay.ok h1 { color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive base ---------- */
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .sec { padding: 80px 0; }
  .sec.tight { padding: 56px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head.split { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .stage { margin-top: 48px; }
  .rails { border-left: 0; border-right: 0; }
  .sec::before, .sec::after { display: none; }
  .xc, .cell, .step, .stat { padding-left: 20px; padding-right: 20px; }
  .panel, .plan { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* separated card grid (extensions page, related) */
.bento.cards { background: none; border: 0; border-radius: 0; overflow: visible; gap: 16px; }
.bento.cards > * { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); }
.bento.cards > *:hover { background: var(--surface-2); border-color: var(--line-3); }
.bento.cards .xc { min-height: 240px; }
.foot-grid ul a, .toc a, .sheet a, .ccard .mail a, .table .xn { text-decoration: none; }
.cta-card .mark-bg { width: 300px; height: 300px; right: 72px; transform: translateY(-50%); opacity: 1; filter: drop-shadow(0 30px 60px var(--glow)); }
.cta-card::after { background: radial-gradient(ellipse 50% 80% at 80% 50%, transparent, var(--surface) 75%); }
@media (max-width: 860px) { .cta-card .mark-bg { width: 220px; height: 220px; right: -60px; opacity: .25; } }

/* ==========================================================================
   v2 — brand-level catalog
   ========================================================================== */
/* catalog cards: artwork on top, body below */
.bento.cards .xc { padding: 0; gap: 0; min-height: 0; overflow: hidden; }
.xc-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; flex: 1; }
.xc-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.xc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.xc:hover .xc-art img { transform: scale(1.03); }
.xc-art.soon { display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, var(--accent-soft), transparent 70%),
    repeating-linear-gradient(-60deg, transparent 0 14px, var(--grid) 14px 15px), var(--bg-2); }
.xc-host { position: absolute; left: 14px; top: 12px; color: var(--fg-3); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.xc-glyph { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg-2); box-shadow: var(--shadow); transition: transform .5s var(--ease), color .3s; }
.xc-glyph .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.xc:hover .xc-glyph { transform: translateY(-4px) rotate(-4deg); color: var(--accent-ink); }
.xc-lines { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.xc-lines i { height: 6px; border-radius: 3px; background: var(--line); }
.xc-lines i:nth-child(1) { width: 55%; }
.xc-lines i:nth-child(2) { width: 80%; }
.xc-lines i:nth-child(3) { width: 35%; }
.xc-head .chip { margin-left: auto; }
.xc-foot { justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); }
.xc.more .xc-body { justify-content: center; }
.xc.more .xc-foot { justify-content: flex-start; border-top: 0; padding-top: 4px; }
.bento.cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .bento.cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento.cards { grid-template-columns: 1fr; } }

/* home showcase: one browser, a tab per extension */
.sc { max-width: 1080px; margin: 0 auto; }
.sc .b-bar { height: auto; padding: 0 14px; gap: 12px; align-items: flex-end; }
.sc .b-dots { align-self: center; padding-top: 8px; }
.sc-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-top: 8px; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px 9px 0 0; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; transition: background .2s, color .2s; overflow: hidden; }
.sc-tab img { width: 16px; height: 16px; border-radius: 4px; }
.sc-tab .sc-ti { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-3); }
.sc-tab .sc-ti .ic { width: 11px; height: 11px; }
.sc-tab:hover { color: var(--fg-2); }
.sc-tab[aria-selected="true"] { background: var(--surface); color: var(--fg); }
.sc-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.sc-tab[aria-selected="true"] .sc-bar { transform: scaleX(1); }
.sc-tab.run .sc-bar { animation: scbar 4.2s linear forwards; }
@keyframes scbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-addr { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sc-url { flex: 1; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font: 12px var(--mono); color: var(--fg-3); }
.sc-url .ic { width: 12px; height: 12px; }
.sc-tools { display: flex; align-items: center; gap: 6px; }
.sc-tools .t { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--fg-3); }
.sc-tools .t.on { background: var(--accent-soft); }
.sc-tools .t svg { width: 17px; height: 17px; }
.sc-view { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); }
.sc-pane { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.sc-pane.on { opacity: 1; }
.sc-pane img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sc-soon { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse 50% 60% at 50% 50%, var(--accent-soft), transparent 70%), var(--bg-2); }
.sc-skel { position: absolute; inset: 0; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: repeat(3, 1fr); gap: 14px; padding: 18px; opacity: .6; }
.sc-skel i { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sc-skel i:nth-child(1) { grid-row: span 3; }
.sc-skel i:nth-child(n+5) { display: none; }
.sc-card { position: relative; width: min(420px, 86%); display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 28px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.sc-big { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent-ink); margin-bottom: 8px; }
.sc-big .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.sc-card b { font-size: 20px; letter-spacing: -.03em; }
.sc-card small { color: var(--fg-3); font-size: 13px; }
.sc-card p { color: var(--fg-2); font-size: 14px; margin: 6px 0 10px; }
@media (max-width: 620px) { .sc-skel { grid-template-columns: 1fr; } .sc-skel i:nth-child(1) { display: none; } .sc-card { padding: 22px 16px; } .sc-card p { display: none; } }

/* home: separate plans */
.plans-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.plans-split .sec-head { margin: 0; }
.pl-box { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.pl { list-style: none; }
.pl li { display: grid; grid-template-columns: 36px 1fr auto 84px; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pl li:last-child { border-bottom: 0; }
.pl .xc-icon { width: 36px; height: 36px; border-radius: 10px; }
.pl-n b { display: block; font-size: 14.5px; font-weight: 500; }
.pl-n small { color: var(--fg-3); font-size: 12.5px; }
.pl-f { font-size: 13px; color: var(--fg-2); }
.pl-p { text-align: right; color: var(--fg); }
.pl-head { display: grid; grid-template-columns: 1fr auto 84px; gap: 14px; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.pl-head span:last-child { text-align: right; }
.pl-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); background: var(--bg-2); }
@media (max-width: 860px) { .plans-split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .pl li { grid-template-columns: 36px 1fr auto; } .pl-f, .pl-head span:nth-child(2) { display: none; } .pl-head { grid-template-columns: 1fr auto; } }

/* pricing page: card per extension */
.pcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pc { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); }
.pc:not(.soon) { border-color: var(--accent-line); background: radial-gradient(ellipse 90% 60% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pc-head small { color: var(--fg-3); font-size: 12.5px; }
.pc-head .chip { margin-left: auto; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.pc-price b { font-size: 38px; font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-price b.tbd { font-size: 26px; color: var(--fg-2); }
.pc-price span { color: var(--fg-3); font-size: 14px; }
.pc-note { color: var(--fg-2); font-size: 13.5px; min-height: 21px; }
.pc-rows { list-style: none; display: grid; border-top: 1px dashed var(--line); }
.pc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--fg-2); }
.pc-rows li b { color: var(--fg); font-weight: 500; text-align: right; }
.pc .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .pcs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pcs { grid-template-columns: 1fr; } }

/* extensions page: category chips */
.toolbar-2 { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.toolbar-2 button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); transition: border-color .2s, color .2s, background .2s; }
.toolbar-2 button:hover { border-color: var(--line-2); color: var(--fg); }
.toolbar-2 button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }

/* language switch */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { min-width: 32px; height: 26px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--fg-3); text-decoration: none; transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="true"] { background: var(--surface-3); color: var(--fg); }
.sheet-lang { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.sheet-lang > span { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.sheet-lang > span .ic { width: 20px; height: 20px; color: var(--fg-3); }
.sheet .sheet-lang .lang-switch a { display: inline-grid; padding: 0 10px; font-size: 13px; border-bottom: 0; height: 32px; min-width: 44px; }
.foot-bottom { align-items: center; }

.sc-tab { flex: none; }
@media (max-width: 520px) { .announce { font-size: 12px; height: auto; min-height: 32px; padding: 4px 8px 4px 4px; text-align: left; } }
