/* ==========================================================================
   ScalableTrade — design system
   Deep navy, one blue accent, hairline structure, tabular numbers.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #050a14;
  --bg-2: #08101f;
  --surface: #0b1426;
  --surface-2: #0f1a30;
  --surface-3: #14213b;
  --line: rgba(150, 180, 230, 0.09);
  --line-2: rgba(150, 180, 230, 0.16);
  --line-3: rgba(150, 180, 230, 0.26);

  --text: #e9eef8;
  --text-2: #a3b0c6;
  --text-3: #6c7a93;

  --blue: #3b7bff;
  --blue-hover: #5a90ff;
  --blue-press: #2f6ae6;
  --blue-soft: rgba(59, 123, 255, 0.12);
  --blue-line: rgba(59, 123, 255, 0.38);
  --blue-text: #8fb3ff;

  --pos: #34c48b;
  --pos-soft: rgba(52, 196, 139, 0.12);
  --neg: #ef5f6c;
  --neg-soft: rgba(239, 95, 108, 0.12);
  --warn: #e6b04f;
  --warn-soft: rgba(230, 176, 79, 0.12);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 64px;

  --z-header: 20;
  --z-menu: 30;
  --z-toast: 40;
  --z-grain: 50;

  --shadow-lg: 0 30px 80px -30px rgba(1, 6, 20, 0.9), 0 12px 32px -18px rgba(3, 14, 40, 0.8);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Decorative glows are wider than a phone; clip them without creating a scroll container (keeps the sticky header). */
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(59, 123, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: var(--z-toast);
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container-narrow { width: min(760px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 144px) clamp(88px, 12vw, 156px); position: relative; }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.center { text-align: center; }
.hide { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text);
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: currentColor; opacity: 0.7; }
.display {
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 600;
}
.display .soft { color: var(--text-3); }
.h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 58ch; line-height: 1.6; }
.body-sm { font-size: 14px; color: var(--text-2); }
.caption { font-size: 12px; color: var(--text-3); }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-top: 18px; }
.section-head p { color: var(--text-2); max-width: 46ch; justify-self: end; }
.section-head.solo { grid-template-columns: minmax(0, 1fr); }
.section-head.solo p { justify-self: start; margin-top: 16px; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(59, 123, 255, 0.7); }
.btn-primary:hover { --btn-bg: var(--blue-hover); }
.btn-primary:active { --btn-bg: var(--blue-press); }
.btn-secondary { --btn-bg: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-secondary:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }
.btn-ghost { --btn-bg: transparent; color: var(--text-2); padding: 0 12px; }
.btn-ghost:hover { color: var(--text); --btn-bg: rgba(255, 255, 255, 0.04); }
.btn-danger { --btn-bg: var(--neg-soft); --btn-fg: #ffb3ba; border-color: rgba(239, 95, 108, 0.3); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 8px 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-lg:not(:has(.btn-icon)) { padding: 0 24px; }

.btn-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); transition: transform 0.35s var(--ease);
}
.btn-secondary .btn-icon { background: rgba(255, 255, 255, 0.06); }
.btn:hover .btn-icon { transform: translateX(2px); }
.btn-icon svg, .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.link { color: var(--blue-text); font-weight: 500; transition: color 0.2s; }
.link:hover { color: #b7cdff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: var(--z-header); padding-top: 12px; }
.site-header-bar {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h); padding: 0 10px 0 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(8, 14, 28, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--inset), 0 16px 40px -24px rgba(0, 0, 0, 0.8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px -8px rgba(59, 123, 255, 0.8);
}
.brand-name { font-weight: 700; letter-spacing: -0.035em; color: #fff; }
.brand-name span { font-weight: 400; color: var(--blue-text); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-switch { font-size: 13px; font-weight: 500; color: var(--text-3); padding: 8px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.lang-switch:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease-soft), top 0.45s var(--ease-soft), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(5, 10, 20, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: 104px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  font-size: 30px; font-weight: 500; letter-spacing: -0.03em; padding: 8px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.12s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.16s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.2s; }
.menu-open .mobile-menu nav a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu .menu-actions { display: grid; gap: 10px; margin-top: auto; }
.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }

/* ---------- Surfaces ---------- */

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--inset);
}
.card-pad { padding: clamp(24px, 3vw, 36px); }

/* Machined double bezel: an outer tray holding an inner plate. */
.bezel {
  padding: 6px; border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.bezel > .bezel-core {
  border-radius: calc(var(--r-xl) - 6px);
  background: linear-gradient(180deg, #0f1b33, #0a1325);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.05); color: var(--text-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill-blue { background: var(--blue-soft); color: var(--blue-text); border-color: rgba(59, 123, 255, 0.25); }
.pill-pos { background: var(--pos-soft); color: #7fe0b6; border-color: rgba(52, 196, 139, 0.25); }
.pill-neg { background: var(--neg-soft); color: #ff9aa4; border-color: rgba(239, 95, 108, 0.25); }
.pill-warn { background: var(--warn-soft); color: #f2cd88; border-color: rgba(230, 176, 79, 0.25); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }

.pos { color: var(--pos); }
.neg { color: var(--neg); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(150, 180, 230, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 180, 230, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(1100px, 120vw); height: 620px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 123, 255, 0.16), transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero .display { margin-top: 22px; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: 13px; color: var(--text-3); }
.hero-facts dd { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }

/* Account terminal (hero visual) */
.terminal { font-size: 14px; }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.terminal-title { display: flex; flex-direction: column; gap: 2px; }
.terminal-title strong { font-weight: 600; letter-spacing: -0.01em; }
.terminal-title span { font-size: 12px; color: var(--text-3); }
.terminal-balance { padding: 22px 22px 6px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.terminal-balance .num { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.terminal-chart { height: 132px; padding: 0 10px; }
.terminal-chart svg { width: 100%; height: 100%; overflow: visible; }
.terminal-objectives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.objective { padding: 16px 22px; display: grid; gap: 8px; }
.objective:nth-child(odd) { border-right: 1px solid var(--line); }
.objective:nth-child(n + 3) { border-top: 1px solid var(--line); }
.objective-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.objective-row .num { color: var(--text); }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--blue); transform-origin: left; transition: width 1.2s var(--ease); }
.meter.pos > span { background: var(--pos); }
.meter.warn > span { background: var(--warn); }
.meter.neg > span { background: var(--neg); }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#areaFill); }
.chart-guide { stroke: rgba(150, 180, 230, 0.25); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-guide.target { stroke: rgba(52, 196, 139, 0.55); }
.chart-guide.floor { stroke: rgba(239, 95, 108, 0.5); }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 2.2s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Marquee strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip-track { display: flex; gap: 56px; padding: 18px 0; width: max-content; animation: marquee 40s linear infinite; }
.strip-item { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.strip-item .icon { color: var(--blue-text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pricing ---------- */

.segmented {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  position: relative; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  white-space: nowrap; transition: color 0.2s, background-color 0.3s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'], .segmented button[aria-selected='true'] { background: var(--surface-3); color: var(--text); box-shadow: var(--inset), 0 0 0 1px var(--line-2); }
.segmented .tag { margin-left: 6px; font-size: 11px; color: var(--blue-text); }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.pricing-controls .label { font-size: 13px; color: var(--text-3); margin-right: 12px; }
.pricing-card { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.pricing-table { padding: 8px 0; overflow-x: auto; }
.pricing-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 15px 28px; font-size: 15px; border-bottom: 1px solid var(--line); }
.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 22px; }
.pricing-table tbody th { font-weight: 400; color: var(--text-2); white-space: nowrap; }
.pricing-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pricing-table td.text { font-family: var(--font); }
.pricing-aside { border-left: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 20px; background: rgba(255, 255, 255, 0.015); }
.pricing-aside .price { font-size: 56px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.pricing-aside .price small { font-size: 16px; color: var(--text-3); letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.pricing-aside ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.pricing-aside li { display: flex; gap: 10px; align-items: flex-start; }
.pricing-aside li .icon { color: var(--pos); margin-top: 3px; flex: none; }
.pricing-aside .btn { margin-top: auto; }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 4; }
.bento .span-7 { grid-column: span 7; }
.bento .span-5 { grid-column: span 5; }
.bento .span-8 { grid-column: span 8; }
.bento .span-6 { grid-column: span 6; }
.tile { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; position: relative; overflow: hidden; }
.tile h3 { font-size: 20px; letter-spacing: -0.02em; }
.tile p { color: var(--text-2); font-size: 15px; max-width: 44ch; }
.tile .tile-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.2); margin-bottom: auto; }
.tile .tile-icon .icon { width: 20px; height: 20px; }
.tile .big { font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-bottom: auto; }
.tile .big small { font-size: 0.4em; color: var(--text-3); letter-spacing: -0.01em; }
.tile-spacer { flex: 1; }

.scaling-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 8px; }
.scaling-bars div { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(59, 123, 255, 0.55), rgba(59, 123, 255, 0.12)); border: 1px solid rgba(59, 123, 255, 0.35); height: var(--h); position: relative; }
.scaling-bars span { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 0 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .step-num { font-family: var(--mono); font-size: 13px; color: var(--blue-text); }
.step h3 { margin-top: 40px; font-size: 22px; }
.step p { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.step ul { list-style: none; margin-top: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.step li { display: flex; gap: 8px; }
.step li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); margin-top: 9px; flex: none; }

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.checklist li strong { color: var(--text); font-weight: 500; display: block; }
.checklist .icon { color: var(--blue-text); margin-top: 4px; width: 18px; height: 18px; }

/* Mini dashboard preview */
.preview { font-size: 13px; }
.preview-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview-top .dots { display: flex; gap: 6px; }
.preview-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.preview-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.preview-stat { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-stat:nth-child(3n) { border-right: 0; }
.preview-stat span { color: var(--text-3); font-size: 12px; }
.preview-stat strong { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.preview-table { width: 100%; border-collapse: collapse; }
.preview-table td { padding: 10px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.preview-table tr:last-child td { border-bottom: 0; }
.preview-table td:last-child { text-align: right; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.4s var(--ease), background-color 0.2s; }
.faq-item summary:hover .plus { background: rgba(255, 255, 255, 0.05); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 48px 24px 0; color: var(--text-2); max-width: 68ch; }
.faq-item .answer p + p { margin-top: 10px; }

.faq-search { position: relative; }
.faq-search input { width: 100%; height: 52px; padding: 0 20px 0 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 16px; }
.faq-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; }
.faq-cats { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.faq-cats button { text-align: left; padding: 10px 14px; border-radius: var(--r-sm); color: var(--text-2); font-size: 15px; transition: background-color 0.2s, color 0.2s; }
.faq-cats button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.faq-cats button[aria-pressed='true'] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.faq-empty { padding: 40px 0; color: var(--text-2); }

/* ---------- CTA ---------- */

.cta-band { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 90% at 100% 100%, rgba(59, 123, 255, 0.22), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .h1 { max-width: 16ch; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); position: relative; isolation: isolate; }
.page-hero::after { content: ''; position: absolute; z-index: -1; width: 900px; height: 480px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(59, 123, 255, 0.12), transparent); pointer-events: none; }
.page-hero .h1 { margin-top: 20px; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.breadcrumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.015); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.table td.num, .table th.num { text-align: right; }
.table .highlight { background: var(--blue-soft); }

/* ---------- Rules page ---------- */

.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-card { padding: 32px; }
.rule-card h3 { font-size: 20px; }
.rule-card p { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.rule-card .example { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.rule-card .example strong { color: var(--text); font-weight: 500; }
.allow-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.allow-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.allow-list .icon { flex: none; margin-top: 4px; }
.allow-list.yes .icon { color: var(--pos); }
.allow-list.no .icon { color: var(--neg); }

/* ---------- Forms ---------- */

.field { display: grid; gap: 8px; }
.field > span, .field-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 12px;
  background: rgba(3, 8, 18, 0.6); border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c7a93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 123, 255, 0.16); background: rgba(3, 8, 18, 0.8); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--neg); box-shadow: 0 0 0 4px rgba(239, 95, 108, 0.12); }
.field-error { font-size: 13px; color: #ff9aa4; min-height: 0; }
.field-hint { font-size: 12.5px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-3); background: rgba(3, 8, 18, 0.6); display: grid; place-items: center; margin-top: 1px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--blue-text); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 76px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-3); padding: 6px 10px; border-radius: 8px; }
.password-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.3s; }
.strength[data-score='1'] i:nth-child(-n + 1) { background: var(--neg); }
.strength[data-score='2'] i:nth-child(-n + 2) { background: var(--warn); }
.strength[data-score='3'] i:nth-child(-n + 3) { background: var(--blue); }
.strength[data-score='4'] i { background: var(--pos); }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { flex: none; margin-top: 2px; }
.alert-error { background: var(--neg-soft); border-color: rgba(239, 95, 108, 0.3); color: #ffc1c7; }
.alert-success { background: var(--pos-soft); border-color: rgba(52, 196, 139, 0.3); color: #a6ecd0; }
.alert-info { background: var(--blue-soft); border-color: rgba(59, 123, 255, 0.3); color: #c3d6ff; }
.alert-warn { background: var(--warn-soft); border-color: rgba(230, 176, 79, 0.3); color: #f4d7a0; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; }
.btn.loading .btn-label { opacity: 0.7; }

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Auth ---------- */

.auth { min-height: calc(100dvh - 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 48px 72px; }
.auth-panel { width: 100%; max-width: 460px; justify-self: center; }
.auth-panel .bezel-core { padding: clamp(28px, 4vw, 40px); }
.auth-panel h1 { font-size: 30px; letter-spacing: -0.03em; }
.auth-panel .sub { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.auth-panel form { display: grid; gap: 18px; margin-top: 28px; }
.auth-foot { margin-top: 24px; font-size: 14px; color: var(--text-2); text-align: center; }
.auth-aside { max-width: 480px; }
.auth-aside .h1 { font-size: clamp(34px, 4vw, 52px); }
.auth-aside .lead { margin-top: 20px; }
.auth-aside ul { list-style: none; margin-top: 36px; display: grid; gap: 18px; }
.auth-aside li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--text-2); font-size: 15px; }
.auth-aside li strong { display: block; color: var(--text); font-weight: 500; }
.auth-aside .tile-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.2); }
.code-input { font-family: var(--mono); font-size: 24px; letter-spacing: 0.4em; text-align: center; height: 60px; }

/* ---------- Checkout ---------- */

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 96px; }
.checkout-step { padding: clamp(24px, 3vw, 32px); }
.checkout-step + .checkout-step { margin-top: 16px; }
.checkout-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.checkout-step-head .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-family: var(--mono); background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.3); }
.checkout-step-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.checkout-step-head .aside { margin-left: auto; font-size: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.option {
  position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(3, 8, 18, 0.4); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.option:hover { border-color: var(--line-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(59, 123, 255, 0.12); }
.option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.option strong { font-size: 15px; font-weight: 600; }
.option span { font-size: 13px; color: var(--text-2); }
.option .num { font-size: 13px; color: var(--text-2); }
.option .corner { position: absolute; top: 12px; right: 12px; }
.addon { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; align-items: start; }
.addon + .addon { margin-top: 10px; }
.addon:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.addon input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-3); display: grid; place-items: center; margin-top: 1px; }
.addon input:checked { background: var(--blue); border-color: var(--blue); }
.addon input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.addon strong { font-weight: 500; display: block; }
.addon span { font-size: 13px; color: var(--text-2); }
.addon .num { font-size: 14px; color: var(--text); white-space: nowrap; }
.summary { position: sticky; top: 96px; }
.summary .bezel-core { padding: 28px; }
.summary-rows { display: grid; gap: 12px; margin-top: 20px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.summary-row .num { color: var(--text); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.summary-total .num { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; }
.coupon { display: flex; gap: 8px; margin-top: 20px; }
.coupon .input { height: 42px; font-size: 14px; text-transform: uppercase; }
.summary .assurance { list-style: none; display: grid; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.summary .assurance li { display: flex; gap: 8px; }
.summary .assurance .icon { color: var(--text-3); width: 14px; height: 14px; margin-top: 3px; flex: none; }
.auth-inline-tabs { margin-bottom: 20px; }
.signed-in-as { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); font-weight: 600; font-size: 13px; border: 1px solid rgba(59, 123, 255, 0.25); flex: none; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-top p { color: var(--text-3); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.65; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Legal docs ---------- */

.doc { padding-bottom: 120px; }
.doc h2 { font-size: 22px; margin-top: 44px; }
.doc h3 { font-size: 17px; margin-top: 28px; }
.doc p, .doc li { color: var(--text-2); margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .alert { margin-top: 24px; }

/* ---------- Misc ---------- */

.toast-region { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in 0.4s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.error { border-color: rgba(239, 95, 108, 0.4); }
.toast.success { border-color: rgba(52, 196, 139, 0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.empty .tile-icon { margin: 0 auto 20px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.2); }
.empty h3 { font-size: 20px; }
.empty p { color: var(--text-2); margin: 10px auto 24px; max-width: 42ch; }

.not-found { min-height: 70dvh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--mono); color: var(--blue-text); font-size: 14px; }

.dev-outbox { padding: 48px 0; }
.dev-outbox article { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dev-outbox header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface-2); font-size: 14px; }
.dev-outbox header span { color: var(--text-3); }
.dev-outbox pre { padding: 16px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.dev-outbox a { color: var(--blue-text); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .hide-mobile { display: none; }
  .hero-grid, .split, .split.reverse, .faq-grid, .auth { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .pricing-card { grid-template-columns: minmax(0, 1fr); }
  .pricing-aside { border-left: 0; border-top: 1px solid var(--line); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .auth-aside { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; --header-h: 56px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { justify-self: start; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento .span-7, .bento .span-5, .bento .span-8, .bento .span-6 { grid-column: auto; }
  .tile { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step h3 { margin-top: 16px; }
  .rule-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .terminal-objectives { grid-template-columns: minmax(0, 1fr); }
  .objective:nth-child(odd) { border-right: 0; }
  .objective:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .preview-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .preview-stat:nth-child(2n) { border-right: 0; }
  .pricing-table th, .pricing-table td { padding: 13px 18px; }
  .pricing-aside { padding: 24px; }
  .faq-item .answer { padding-right: 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header-bar { padding-left: 14px; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.bento .span-12 { grid-column: 1 / -1; }
@media (max-width: 768px) { .bento .span-12 { grid-column: auto; } }
.pricing-table .skeleton { display: block; height: 14px; width: 60%; }

/* ---------- AI assistant ---------- */

.assistant { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); }
.assistant-launcher {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: var(--blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 40px -12px rgba(59, 123, 255, 0.65), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.assistant-launcher:hover { background: var(--blue-hover); transform: translateY(-2px); }
.assistant-launcher:active { transform: scale(0.96); }
.assistant-launcher .icon { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity 0.25s, transform 0.4s var(--ease); }
.assistant-launcher .icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.assistant.open .assistant-launcher .icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.assistant.open .assistant-launcher .icon-close { opacity: 1; transform: none; }

.assistant-panel {
  position: absolute; right: 0; bottom: 72px; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: rgba(9, 15, 30, 0.96); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--inset);
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.assistant.open .assistant-panel { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); }
.assistant-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 18px; }
.assistant-title { display: grid; line-height: 1.3; margin-right: auto; min-width: 0; }
.assistant-title strong { font-size: 15px; font-weight: 600; }
.assistant-title span { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-title .dot-live { color: var(--pos); flex: none; }
.assistant-icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: background-color 0.2s, color 0.2s; }
.assistant-icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.assistant-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; animation: msg-in 0.35s var(--ease); }
.msg p + p, .msg ul { margin-top: 8px; }
.msg ul { padding-left: 18px; }
.msg a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; color: var(--text); }
.msg-user { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-note { align-self: stretch; max-width: none; background: var(--warn-soft); border: 1px solid rgba(230, 176, 79, 0.25); color: #f4d7a0; font-size: 13.5px; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.assistant-suggestions button { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color 0.2s, color 0.2s, background-color 0.2s; text-align: left; }
.assistant-suggestions button:hover { border-color: var(--blue-line); color: var(--text); background: var(--blue-soft); }
.assistant-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.assistant-form textarea {
  flex: 1; resize: none; max-height: 120px; min-height: 44px; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45;
  background: rgba(3, 8, 18, 0.7); border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s;
}
.assistant-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 123, 255, 0.16); }
.assistant-send { width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: background-color 0.2s, opacity 0.2s; }
.assistant-send:hover { background: var(--blue-hover); }
.assistant-send:disabled { opacity: 0.4; cursor: default; }
.assistant-send .icon { transform: rotate(-90deg); }
.assistant-disclaimer { font-size: 11px; color: var(--text-3); text-align: center; padding: 0 16px 10px; }

@media (max-width: 768px) {
  .assistant { right: 14px; bottom: 14px; }
  .assistant-launcher { width: 52px; height: 52px; border-radius: 16px; }
  .assistant.open { inset: 0; right: 0; bottom: 0; }
  .assistant.open .assistant-launcher { position: absolute; right: 14px; bottom: 14px; display: none; }
  .assistant-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; bottom: 0; }
}
.objective-row > span { white-space: nowrap; }
.objective-row { flex-wrap: wrap; }

/* ---------- Inner-page components ---------- */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 64px 180px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline-marker span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.28); font-size: 13px; }
.timeline-tag { font-size: 13px; color: var(--text-3); padding-top: 10px; letter-spacing: 0.02em; }
.timeline-body p { color: var(--text-2); margin-top: 10px; max-width: 62ch; }
.tile-icon-lg { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.22); }
.tile-icon-lg .icon { width: 24px; height: 24px; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-4 .step h3 { margin-top: 0; font-size: 18px; }
.platform-card { height: 100%; }
.platform-card-head { display: flex; justify-content: space-between; align-items: center; }
.numbered { list-style: none; counter-reset: n; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--text-2); font-size: 17px; }
.numbered li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--blue-text); }
.pricing-skeleton { display: block; height: 14px; width: 40%; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; align-items: start; }
.channel { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.channel:last-child { border-bottom: 0; }
.channel p { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.channel .tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); border: 1px solid rgba(59, 123, 255, 0.2); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .timeline-tag { grid-column: 2; padding-top: 0; }
  .timeline-body { grid-column: 2; }
  .steps-4 { grid-template-columns: minmax(0, 1fr); }
}
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-single { grid-template-columns: minmax(0, 1fr); }
.page-hero-compact { padding: 40px 0 0; }
.page-hero-compact::after { display: none; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; margin: 0 auto; border-color: rgba(59, 123, 255, 0.25); border-top-color: var(--blue); }
.success-icon { margin: 0 auto; background: var(--pos-soft); color: var(--pos); border-color: rgba(52, 196, 139, 0.3); }
.danger-icon { margin: 0 auto; background: var(--neg-soft); color: var(--neg); border-color: rgba(239, 95, 108, 0.3); }
.center-block { margin-inline: auto; }
.center-actions { justify-content: center; }
.center .sub { margin-inline: auto; max-width: 36ch; }

/* ---------- App (dashboard / admin) ---------- */
.app .site-header { background: linear-gradient(var(--bg) 60%, transparent); padding-bottom: 8px; }
.app-tabs { display: none; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.app-tabs a[aria-current='page'] { background: var(--surface-3); color: var(--text); }
.app-main { padding: 32px 0 120px; min-height: 70dvh; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head .h2 .soft { color: var(--text-3); }
.app-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.app-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.account-switch .select { height: 38px; font-size: 14px; min-width: 260px; }
.app-loading { display: grid; gap: 16px; }
.sk-title { height: 36px; width: 280px; }
.sk-block { height: 180px; }
.mb-16 { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { padding: 20px 22px; display: grid; gap: 4px; }
.kpi > span { font-size: 13px; color: var(--text-3); }
.kpi strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.kpi small { font-size: 13px; font-family: var(--mono); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.chart-wrap { height: 260px; }
.equity-chart { width: 100%; height: 100%; overflow: visible; }
.chart-label { font-family: var(--mono); font-size: 11px; fill: var(--text-3); }
.chart-label.target { fill: #7fe0b6; }
.chart-label.floor { fill: #ff9aa4; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.objectives { display: grid; gap: 20px; }
.objective-line { display: grid; gap: 8px; }
.obj-icon { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; display: inline-block; }
.obj-icon.passed { color: var(--pos); }
.obj-icon.failed { color: var(--neg); }
.payout-mini { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.payout-mini span { color: var(--text-3); font-size: 13px; }
.payout-mini strong { font-size: 20px; font-weight: 500; margin-right: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats-grid.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.stat span { font-size: 12.5px; color: var(--text-3); }
.stat strong { font-size: 18px; font-weight: 500; }
.side { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.side.buy { color: var(--pos); }
.side.sell { color: var(--neg); }
.sim-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-top: 16px; border-style: dashed; flex-wrap: wrap; }
.sim-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.account-card { padding: 22px; display: grid; gap: 4px; transition: border-color 0.2s, transform 0.3s var(--ease); }
.account-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.account-card-balance { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 10px; }
.account-card-balance .num { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.payout-card .stats-grid { margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.settings-wide { grid-column: 1 / -1; }
.session { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
.session .icon { width: 20px; height: 20px; color: var(--text-3); margin-top: 2px; }
.secret { padding: 12px 14px; border-radius: 10px; background: rgba(3, 8, 18, 0.6); border: 1px solid var(--line-2); font-size: 15px; letter-spacing: 0.08em; word-break: break-all; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.modal { margin: auto; border: 0; background: transparent; color: var(--text); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; }
.modal::backdrop { background: rgba(2, 5, 12, 0.7); backdrop-filter: blur(6px); }
.modal[open] { animation: toast-in 0.35s var(--ease); }
.modal-body { padding: 28px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.creds { display: grid; gap: 8px; }
.cred-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.cred-row span { font-size: 13px; color: var(--text-3); }
.cred-row code { font-size: 15px; overflow-wrap: anywhere; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 1080px) {
  .app-nav { display: none; }
  .app-tabs { display: flex; }
  .dash-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .stats-grid.stats-3 { grid-template-columns: minmax(0, 1fr); }
  .cred-row { grid-template-columns: 1fr auto; }
  .cred-row span { grid-column: 1 / -1; }
  .account-switch .select { min-width: 0; width: 100%; }
  .app-head-actions { width: 100%; }
  .chart-wrap { height: 200px; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 96px; }
.post-card { transition: border-color 0.2s, transform 0.35s var(--ease); }
.post-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.post-card-link { display: flex; flex-direction: column; gap: 12px; padding: 28px; height: 100%; }
.post-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding-bottom: 24px; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); }
.post-toc { position: sticky; top: 104px; align-self: start; }
.post-toc nav { display: grid; gap: 2px; margin-top: 12px; border-left: 1px solid var(--line); }
.post-toc a { font-size: 14px; color: var(--text-2); padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.post-toc a:hover { color: var(--text); border-color: var(--blue); }
.prose { font-size: 17.5px; line-height: 1.75; color: #cdd6e6; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 28px; margin-top: 52px; color: var(--text); scroll-margin-top: 100px; }
.prose h3 { font-size: 21px; margin-top: 36px; color: var(--text); scroll-margin-top: 100px; }
.prose h4 { font-size: 18px; margin-top: 28px; color: var(--text); }
.prose a { color: var(--blue-text); text-decoration: underline; text-decoration-color: rgba(143, 179, 255, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--blue-text); }
.prose blockquote { border-left: 2px solid var(--blue); padding: 4px 0 4px 20px; color: var(--text); font-size: 19px; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 14px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.prose .table-wrap { font-size: 15px; }
.cta-compact { padding: 36px; }
@media (max-width: 1080px) { .post-layout { grid-template-columns: minmax(0, 720px); } .post-toc { display: none; } }
@media (max-width: 768px) { .prose { font-size: 16.5px; } .post-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Admin ---------- */
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis-6 .kpi strong { font-size: 22px; }
.kpis-6 small { font-family: var(--font); font-size: 12px; }
.ticket-body { white-space: pre-wrap; color: var(--text-2); }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.input-title { height: 56px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.textarea-sm { min-height: 84px; }
.editor-body { min-height: 560px; font-size: 14px; line-height: 1.65; }
.select-sm { height: 36px; font-size: 14px; width: auto; }
.md-toolbar { display: flex; gap: 2px; flex-wrap: wrap; }
.md-toolbar button { font-size: 12.5px; padding: 5px 9px; border-radius: 8px; color: var(--text-2); border: 1px solid transparent; }
.md-toolbar button:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text); }
.serp { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.serp-url { font-size: 12.5px; color: #4d5156; font-family: Arial, sans-serif; }
.serp-title { font-size: 18px; color: #1a0dab; font-family: Arial, sans-serif; line-height: 1.3; }
.serp-desc { font-size: 13.5px; color: #4d5156; font-family: Arial, sans-serif; line-height: 1.5; }
.prose-preview { font-size: 15px; max-height: 520px; overflow-y: auto; }
.prose-preview h2 { font-size: 22px; margin-top: 28px; }
.modal-wide { width: min(880px, calc(100vw - 32px)); }
@media (max-width: 1080px) { .kpis-6 { grid-template-columns: repeat(3, 1fr); } .editor-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) { .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-size-options], [data-platform-options] { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
[data-platform-options] { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.option:has(.corner) strong { padding-right: 52px; }
.kpi, .stat, .card { min-width: 0; }
@media (max-width: 768px) {
  .kpi { padding: 16px; }
  .kpi strong { font-size: 19px; }
  .kpi small { font-size: 11.5px; }
  .stat strong { font-size: 16px; }
}

/* ---------- Certificates & proof ---------- */
.cert {
  position: relative; aspect-ratio: 1.414 / 1; border-radius: 18px; padding: 10px; overflow: hidden;
  background: linear-gradient(145deg, #0d1c38, #08122a 55%, #0b1a35);
  box-shadow: 0 40px 90px -40px rgba(10, 40, 120, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef3ff; container-type: inline-size;
}
.cert::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    repeating-radial-gradient(circle at 85% 15%, rgba(120, 160, 255, 0.07) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(59, 123, 255, 0.25), transparent 70%);
}
.cert-inner {
  position: relative; height: 100%; border: 1px solid rgba(143, 179, 255, 0.28); border-radius: 12px;
  padding: 5.5cqw 6cqw; display: flex; flex-direction: column;
}
.cert-top { display: flex; justify-content: space-between; align-items: center; }
.cert-brand { display: inline-flex; align-items: center; gap: 1.6cqw; font-weight: 600; font-size: 2.6cqw; letter-spacing: -0.02em; }
.cert-brand .brand-mark { width: 4.6cqw; height: 4.6cqw; border-radius: 1.3cqw; font-size: 2.8cqw; }
.cert-code { font-size: 1.8cqw; color: rgba(200, 215, 245, 0.6); letter-spacing: 0.08em; }
.cert-kind { margin-top: auto; font-size: 1.8cqw; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-text); }
.cert-presented { margin-top: 2cqw; font-size: 2cqw; color: rgba(200, 215, 245, 0.7); }
.cert-name { font-size: 7cqw; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-top: 0.8cqw; }
.cert-amount { font-size: 6cqw; font-weight: 500; letter-spacing: -0.04em; margin-top: 1cqw; background: linear-gradient(90deg, #ffffff, #9fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-desc { font-size: 2cqw; color: rgba(200, 215, 245, 0.75); margin-top: 1.5cqw; max-width: 75%; }
.cert-desc strong { color: #fff; font-weight: 600; }
.cert-foot { margin-top: auto; padding-top: 3cqw; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(143, 179, 255, 0.16); }
.cert-foot span { display: block; font-size: 1.5cqw; color: rgba(200, 215, 245, 0.55); letter-spacing: 0.1em; text-transform: uppercase; }
.cert-foot strong { font-size: 2cqw; font-weight: 500; }
.cert-foot .right { text-align: right; }
.cert-seal { width: 9cqw; height: 9cqw; fill: none; stroke: var(--blue-text); stroke-width: 1.4; opacity: 0.9; }
.cert-seal circle:first-child { stroke-dasharray: 2 3; }
.cert-ribbon { position: absolute; top: 4.5cqw; right: -9cqw; transform: rotate(35deg); background: var(--warn); color: #1a1205; font-weight: 700; font-size: 1.7cqw; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.8cqw 12cqw; }
.cert-link { display: block; transition: transform 0.4s var(--ease); }
.cert-link:hover { transform: translateY(-4px); }
.cert-stack { display: grid; gap: 16px; }
.cert-page { max-width: 920px; padding: 48px 0 120px; }
.cert-verified { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.proof-stats { display: flex; gap: 48px; margin-bottom: 40px; }
.proof-stats dt { font-size: 13px; color: var(--text-3); }
.proof-stats dd { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -0.04em; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }
.proof-reviews { columns: 1; display: grid; gap: 12px; }
.review { padding: 24px; }
.review-stars { color: #f2c14e; letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin-top: 12px; color: var(--text); font-size: 15.5px; line-height: 1.6; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.review figcaption strong { color: var(--text); font-weight: 500; }
.proof-empty .tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }

.dash-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input label { cursor: pointer; font-size: 26px; color: var(--text-3); transition: color 0.15s; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label:has(input:checked), .stars-input label:has(input:checked) ~ label,
.stars-input label:hover, .stars-input label:hover ~ label { color: #f2c14e; }
.stars-input label:has(input:focus-visible) { outline: 2px solid var(--blue); border-radius: 4px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 1080px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } }

@media print {
  body * { visibility: hidden; }
  .cert-page .cert, .cert-page .cert * { visibility: visible; }
  .cert-page .cert { position: fixed; inset: 0; margin: auto; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grain, .assistant { display: none !important; }
  @page { size: A4 landscape; margin: 0; }
}

/* ---------- Phone polish ---------- */
.phase-tabs { display: none; }
@media (max-width: 768px) {
  .phase-tabs { display: flex; margin: 16px 16px 4px; }
  .phase-tabs button { flex: 1; }
  .pricing-table table { min-width: 0; }
  .pricing-table thead { display: none; }
  .pricing-table td[data-col] { display: none; }
  .pricing-table[data-col='0'] td[data-col='0'], .pricing-table[data-col='1'] td[data-col='1'], .pricing-table[data-col='2'] td[data-col='2'] { display: table-cell; }
  .pricing-table th, .pricing-table td { padding: 14px 16px; font-size: 14.5px; }
  .pricing-table tbody th { white-space: normal; }
  .pricing-table td { text-align: right; }
  .pricing-table td .faint { display: block; font-size: 12.5px; }
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .pricing-controls .segmented { width: 100%; }
  .pricing-controls .segmented button { flex: 1 0 auto; }
  .pricing-aside .price { font-size: 46px; }
}

/* ---------- Hero visual: app on a phone ---------- */
.hero-visual { position: relative; display: grid; place-items: center; padding: 8px 0 28px; min-height: 640px; }
.hero-glow { position: absolute; inset: 6% 10%; border-radius: 50%; background:
  radial-gradient(closest-side, rgba(59, 123, 255, 0.45), rgba(59, 123, 255, 0.12) 55%, transparent 75%); filter: blur(30px); }
.hero-glow::after { content: ''; position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(143, 179, 255, 0.12);
  box-shadow: 0 0 0 60px rgba(143, 179, 255, 0.025), 0 0 0 130px rgba(143, 179, 255, 0.018); }
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2a3550, #0c1324 40%, #1a2440);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(10, 40, 140, 0.85), 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: rotate(-4deg); animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
.phone-screen { height: 100%; border-radius: 39px; overflow: hidden; background: linear-gradient(180deg, #0b1630, #060c1a 60%); display: flex; flex-direction: column; padding: 12px 16px 10px; }
.phone-status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px 10px; }
.phone-island { width: 84px; height: 24px; border-radius: 14px; background: #000; }
.phone-icons { display: flex; gap: 3px; align-items: flex-end; }
.phone-icons i { width: 4px; border-radius: 1px; background: #fff; }
.phone-icons i:nth-child(1) { height: 5px; } .phone-icons i:nth-child(2) { height: 7px; } .phone-icons i:nth-child(3) { height: 9px; }
.app-bar { display: flex; align-items: center; gap: 10px; }
.app-bar .brand-mark { width: 30px; height: 30px; font-size: 16px; }
.app-bar div { display: grid; line-height: 1.25; margin-right: auto; }
.app-bar strong { font-size: 13px; white-space: nowrap; }
.app-bar small { font-size: 10.5px; color: var(--text-3); }
.app-bar .pill { height: 22px; font-size: 10.5px; padding: 0 8px; }
.app-balance { display: grid; margin-top: 20px; }
.app-balance span { font-size: 11px; color: var(--text-3); }
.app-balance strong { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.app-balance strong small { font-size: 20px; color: var(--text-3); }
.app-balance em { font-style: normal; font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.app-chart { position: relative; margin: 14px -4px 0; height: 132px; }
.candles { width: 100%; height: 100%; overflow: visible; }
.candle line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.candle.up line { stroke: #34c48b; } .candle.up rect { fill: #34c48b; }
.candle.dn line { stroke: #ef5f6c; } .candle.dn rect { fill: #ef5f6c; }
.candle { transform-box: fill-box; transform-origin: bottom; animation: candle-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 0.4s); }
@keyframes candle-in { from { opacity: 0; transform: scaleY(0.2); } }
.candles .ma { fill: none; stroke: rgba(143, 179, 255, 0.8); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) 1.2s forwards; }
.app-chart-target { position: absolute; left: 0; right: 0; top: 4px; border-top: 1px dashed rgba(52, 196, 139, 0.55); }
.app-chart-target span { position: absolute; right: 0; top: -9px; font-size: 9.5px; font-family: var(--mono); color: #7fe0b6; background: #0a1530; padding: 1px 6px; border-radius: 6px; }
.app-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding: 12px 0; }
.ring { display: grid; justify-items: center; gap: 2px; position: relative; padding: 10px 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 4; }
.ring .ring-value { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 - var(--ring, 0) * 1.005); transition: stroke-dashoffset 1.6s var(--ease) 0.6s; }
.ring .ring-value.pos { stroke: var(--pos); }
.ring b { position: absolute; top: 24px; font-size: 11px; font-family: var(--mono); font-weight: 500; }
.ring span { font-size: 10px; color: var(--text-3); text-align: center; line-height: 1.2; }
.app-tabbar { display: flex; justify-content: space-around; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
.app-tabbar i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.app-tabbar i.on { background: var(--blue); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: rgba(13, 24, 46, 0.82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8), var(--inset); animation: card-float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 11px; color: var(--text-3); }
.float-card strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.float-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.float-icon.pos { background: var(--pos-soft); color: var(--pos); }
.float-payout { top: 30%; left: -6%; }
.float-funded { top: 6%; right: -10%; animation-delay: -2s; }
.float-risk { bottom: 16%; right: -8%; display: block; width: 200px; animation-delay: -4s; }
.float-risk .meter { margin-top: 8px; }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-visual-note { position: absolute; bottom: 0; font-size: 11px; color: var(--text-3); }

@media (max-width: 1080px) {
  .hero-visual { min-height: 0; padding: 40px 0 36px; margin-top: 12px; }
  .float-payout { left: 0; } .float-funded { right: 0; } .float-risk { right: 0; }
}
@media (max-width: 480px) {
  .phone { width: 248px; border-radius: 42px; }
  .phone-screen { border-radius: 33px; padding: 10px 12px 8px; }
  .app-balance strong { font-size: 27px; }
  .app-chart { height: 104px; }
  .float-card { padding: 10px 12px; border-radius: 14px; gap: 9px; }
  .float-card strong { font-size: 13px; }
  .float-icon { width: 28px; height: 28px; }
  .float-payout { top: auto; bottom: 9%; left: -2px; }
  .float-funded { top: 2%; right: -2px; }
  .float-risk { display: none; }
  .app-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .app-bar small { display: none; }
  .app-bar .pill { width: 22px; padding: 0; justify-content: center; font-size: 0; }
  .app-bar .pill .dot-live { margin: 0; }
  .app-bar div { min-width: 0; }
  .ring span { font-size: 9px; }
  .ring svg { width: 40px; height: 40px; }
  .ring b { top: 21px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .phone, .float-card { animation: none; } }
.pricing-table .sep { font-style: normal; }
@media (max-width: 768px) { .pricing-table .sep { display: none; } .pricing-table td.text { white-space: nowrap; } }
.offline-mark { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; margin: 0 auto; }

/* ---------- App shell on phones: bottom tab bar ---------- */
.app-tabs .icon { display: none; }
@media (max-width: 768px) {
  .app .site-header { background: linear-gradient(var(--bg) 70%, transparent); }
  .app-tabs {
    position: fixed; z-index: var(--z-header); left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px;
    border-radius: 22px; border: 1px solid var(--line-2); background: rgba(9, 15, 30, 0.86);
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), var(--inset);
  }
  .app-tabs a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 16px; font-size: 10.5px; font-weight: 500; transition: color 0.2s, background-color 0.2s; -webkit-tap-highlight-color: transparent; }
  .app-tabs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .app-tabs .icon { display: block; width: 21px; height: 21px; }
  .app-tabs a[aria-current='page'] { color: #fff; background: var(--blue-soft); }
  .app-tabs a[aria-current='page'] .icon { color: var(--blue-text); }
  .app-tabs .tab-desktop-only { display: none; }
  .app .app-main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .app .assistant { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .app .site-footer { display: none; }
}
/* Installed app: respect the notch / home indicator. */
.standalone .site-header { padding-top: max(12px, env(safe-area-inset-top)); }

/* Pre-launch notice on checkout (PAYMENTS_PROVIDER=none) */
.prelaunch { display: grid; gap: 20px; border-color: rgba(59, 123, 255, 0.35); }
.prelaunch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.prelaunch-row .field-error { grid-column: 1 / -1; }
@media (min-width: 900px) { .prelaunch { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } .prelaunch .alert { grid-column: 1 / -1; } }
@media (max-width: 480px) { .prelaunch-row { grid-template-columns: 1fr; } }
