/* ==========================================================================
   Pure Connect — "Deep Signal" Design System
   Atmospheric premium dark. Electric indigo + warm copper lux accents.
   Gradient-mesh + grain atmosphere, distinctive typography, orchestrated motion.
   Display: Unbounded · Body: Manrope · Data/mono: JetBrains Mono · CJK: system.
   Dark = Deep Signal (default). Light = refined warm "daylight" companion.
   No frameworks — pure CSS Grid/Flex.
   ========================================================================== */

/* ---------- Tokens: dark (Deep Signal, default) ---------- */
:root {
  /* surfaces — deep midnight with a faint warm undertone */
  --bg:        #070912;
  --bg-2:      #0a0d18;
  --bg-card:   rgba(19, 23, 38, 0.72);
  --bg-card-solid: #12162a;
  --bg-elev:   rgba(28, 33, 54, 0.9);

  /* lux accents — electric indigo (primary) + warm copper (signature) */
  --accent:    #7c83ff;   /* electric indigo-violet */
  --accent-2:  #e08850;   /* warm copper */
  --accent-3:  #4fd6a8;   /* mint — positive/success */
  --accent-ink:#0a0a14;   /* dark text on bright accent */
  --copper:    #e8a571;   /* lighter copper for text accents */
  --danger:    #f4607a;

  /* text */
  --txt:     #f4f3ff;
  --txt-sub: #c3c4dd;
  --txt-mut: #8388ad;

  /* lines & glow */
  --border:        rgba(148, 150, 200, 0.14);
  --border-strong: rgba(124, 131, 255, 0.40);
  --border-copper: rgba(224, 136, 80, 0.34);
  --glow:    rgba(124, 131, 255, 0.40);
  --glow-2:  rgba(224, 136, 80, 0.34);

  /* gradients */
  --grad-accent:      linear-gradient(120deg, #7c83ff 0%, #b06bff 52%, #e08850 120%);
  --grad-accent-soft: linear-gradient(135deg, rgba(124,131,255,.14) 0%, rgba(224,136,80,.12) 100%);
  /* button gradient — darker stops so WHITE text stays >=4.5:1 end-to-end (WCAG AA) */
  --grad-btn:         linear-gradient(120deg, #4b4fd6 0%, #7a3fc4 54%, #a85124 120%);
  --grad-title:       linear-gradient(102deg, #ffffff 0%, #d9d7ff 38%, #e8a571 100%);
  --grad-card:        linear-gradient(155deg, rgba(26,30,52,.78) 0%, rgba(13,16,30,.74) 100%);
  --grad-copper:      linear-gradient(120deg, #f3c08a 0%, #e89760 60%, #dd8048 100%);

  /* shadows */
  --shadow-sm:   0 6px 22px rgba(0, 0, 0, 0.40);
  --shadow:      0 22px 60px rgba(0, 0, 0, 0.52);
  --shadow-glow: 0 0 0 1px var(--border-strong), 0 26px 64px rgba(5, 6, 18, 0.66);
  --shadow-copper: 0 0 0 1px var(--border-copper), 0 26px 64px rgba(40, 14, 4, 0.4);

  /* type */
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* misc */
  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;
  --wrap:      1240px;
  --header-h:  74px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bg-opacity: 1;
}

/* CJK pages get native faces ahead of the Latin display/body */
html[lang="zh-CN"] {
  --font-display: 'Unbounded', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body: 'Manrope', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}

/* ---------- Tokens: light (warm daylight companion) ---------- */
html[data-theme="light"] {
  --bg:        #f3efe9;   /* warm paper */
  --bg-2:      #eee8df;
  --bg-card:   rgba(255, 255, 255, 0.78);
  --bg-card-solid: #ffffff;
  --bg-elev:   #ffffff;

  --accent:    #5b53e0;   /* deeper indigo for contrast on light */
  --accent-2:  #a8501f;   /* deep copper — darkened to clear 4.5:1 as text on paper */
  --accent-3:  #15916a;
  --accent-ink:#ffffff;
  --copper:    #9a4a1c;   /* copper text token — 5.4:1 on paper, AA pass */
  --danger:    #c5304f;

  --txt:     #1a1726;
  --txt-sub: #423d52;
  --txt-mut: #6c667e;

  --border:        rgba(40, 30, 60, 0.12);
  --border-strong: rgba(91, 83, 224, 0.40);
  --border-copper: rgba(194, 99, 46, 0.34);
  --glow:    rgba(91, 83, 224, 0.22);
  --glow-2:  rgba(194, 99, 46, 0.20);

  --grad-accent:      linear-gradient(120deg, #5b53e0 0%, #8a4fd6 52%, #c2632e 120%);
  --grad-accent-soft: linear-gradient(135deg, rgba(91,83,224,.10) 0%, rgba(194,99,46,.10) 100%);
  /* button gradient (light) — darker stops keep WHITE text >=4.5:1 */
  --grad-btn:         linear-gradient(120deg, #4b44c8 0%, #7a3fb8 54%, #9a451c 120%);
  --grad-title:       linear-gradient(102deg, #1a1726 0%, #5b53e0 46%, #c2632e 100%);
  --grad-card:        linear-gradient(155deg, #ffffff 0%, #f7f2ea 100%);
  /* btn-gold uses dark ink (#2a1405); keep light copper gradient bright enough end-to-end (>=4.5:1) */
  --grad-copper:      linear-gradient(120deg, #f0b277 0%, #e08e54 55%, #d27e44 100%);

  --shadow-sm:   0 6px 22px rgba(60, 40, 20, 0.10);
  --shadow:      0 22px 56px rgba(60, 40, 20, 0.16);
  --shadow-glow: 0 0 0 1px var(--border-strong), 0 24px 56px rgba(40, 30, 60, 0.14);
  --shadow-copper: 0 0 0 1px var(--border-copper), 0 24px 56px rgba(120, 60, 20, 0.16);
  --bg-opacity: 0.5;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 450;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmosphere layer 1: gradient mesh (fixed, behind everything) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1100px 720px at 8% -8%, rgba(124, 131, 255, 0.20), transparent 58%),
    radial-gradient(900px 680px at 102% 4%, rgba(224, 136, 80, 0.16), transparent 56%),
    radial-gradient(820px 820px at 50% 116%, rgba(79, 214, 168, 0.10), transparent 60%),
    radial-gradient(620px 520px at 78% 48%, rgba(176, 107, 255, 0.10), transparent 60%);
  opacity: var(--bg-opacity);
  pointer-events: none;
  transition: opacity .5s ease;
}
/* Atmosphere layer 2: fine grain texture overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
html[data-theme="light"] body::after { opacity: 0.05; mix-blend-mode: multiply; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--txt-sub); }
strong, b { font-weight: 700; }
::selection { background: rgba(124,131,255,.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* signal-field canvas (replaces circuit-bg) */
#circuit-bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1;
  opacity: 0.5; pointer-events: none; transition: opacity .5s ease;
}
html[data-theme="light"] #circuit-bg { opacity: 0.32; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(58px, 8vw, 116px) 0; position: relative; }
.section-sm { padding: clamp(42px, 5vw, 70px) 0; }
.center { text-align: center; }

/* eyebrow — monospace label, the "signal tag" motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--copper); opacity: .7;
}
.center .eyebrow::after {
  content: ""; width: 22px; height: 1px; background: var(--copper); opacity: .7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-lead { color: var(--txt-sub); max-width: 60ch; font-size: 1.08rem; line-height: 1.65; }
.center .section-lead { margin-inline: auto; }
.muted { color: var(--txt-mut); }
.accent-text { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(224,136,80,.5); }
.accent-text:hover { text-decoration-color: currentColor; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 13px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem; letter-spacing: -0.01em;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease, background .35s ease, border-color .35s ease, color .35s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 34px rgba(124, 131, 255, 0.32); }
.btn-primary:hover { box-shadow: 0 18px 46px rgba(124, 131, 255, 0.48); }
/* sheen sweep on primary */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-gold { background: var(--grad-copper); color: #2a1405; box-shadow: 0 12px 32px rgba(224, 136, 80, 0.34); }
.btn-gold:hover { box-shadow: 0 18px 44px rgba(224, 136, 80, 0.50); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035); border-color: var(--border-strong); color: var(--txt);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(124, 131, 255, 0.10); }
html[data-theme="light"] .btn-ghost { background: rgba(40,30,60,.03); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--grad-accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--copper);
  margin-bottom: 18px; font-size: 1.45rem;
}
.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.card p { margin-bottom: 0; font-size: .96rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.badge-pop { background: var(--grad-copper); color: #2a1405; box-shadow: 0 0 20px var(--glow-2); }
.badge-soon { background: var(--danger); color: #3a0a14; }
.badge-soft { background: var(--grad-accent-soft); border: 1px solid var(--border-strong); color: var(--copper); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500; color: var(--txt-sub);
}
html[data-theme="light"] .chip { background: rgba(40,30,60,.04); }
.chip svg, .chip .dot { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
html[data-theme="light"] .site-header.scrolled { box-shadow: 0 10px 36px rgba(60,40,20,.10); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand b { background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a, .nav-link {
  padding: 8px 13px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--txt-sub);
  position: relative; transition: color .25s ease, background .25s ease;
}
.nav a:hover, .nav a.active, .nav-link:hover, .nav-link.active { color: var(--txt); background: rgba(124, 131, 255, 0.10); }
.nav a.active::after, .nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--grad-copper); border-radius: 2px;
}
html[data-theme="light"] .nav a, html[data-theme="light"] .nav-link { color: #38324a; }
html[data-theme="light"] .nav a:hover, html[data-theme="light"] .nav a.active,
html[data-theme="light"] .nav-link:hover, html[data-theme="light"] .nav-link.active { color: var(--accent); background: rgba(91, 83, 224, 0.08); }
html[data-theme="light"] .site-header { background: rgba(243, 239, 233, 0.7); }
html[data-theme="light"] .site-header.scrolled { background: rgba(243, 239, 233, 0.92); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--txt-sub);
  transition: all .25s ease;
}
html[data-theme="light"] .icon-btn { background: rgba(40,30,60,.04); }
.icon-btn:hover { color: var(--copper); border-color: var(--border-copper); transform: translateY(-1px); }

.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px;
  border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--txt-sub); font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
}
html[data-theme="light"] .lang-switch__btn { background: rgba(40,30,60,.04); }
.lang-switch__btn:hover { color: var(--copper); border-color: var(--border-copper); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 142px;
  background: var(--bg-card-solid); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow); padding: 7px; display: none; flex-direction: column; gap: 2px; z-index: 50;
}
.lang-switch.open .lang-switch__menu { display: flex; }
.lang-switch__menu a {
  text-align: left; padding: 10px 13px; border-radius: 9px;
  color: var(--txt-sub); font-weight: 600; font-size: .9rem;
}
.lang-switch__menu a:hover, .lang-switch__menu a[aria-current="true"] { background: rgba(124,131,255,.12); color: var(--copper); }

.burger { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--txt);
  }
  html[data-theme="light"] .burger { background: rgba(40,30,60,.04); }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: var(--bg-card-solid); border-bottom: 1px solid var(--border-strong);
    padding: 16px 24px 24px; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open a { padding: 13px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(46px, 7vw, 96px)); padding-bottom: clamp(46px, 6vw, 84px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800;
}
.hero h1 .grad { display: inline-block; background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--txt-sub); max-width: 54ch; margin: 24px 0 30px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: stretch; }
.hero-trust .stat { display: flex; flex-direction: column; padding-left: 15px; border-left: 1px solid var(--border-copper); }
.hero-trust .stat b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--txt); letter-spacing: -0.03em; }
.hero-trust .stat span { font-family: var(--font-mono); font-size: .72rem; color: var(--txt-mut); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* hero data line (mono "credential" motif) */
.hero-dataline {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  max-width: 100%;
  font-family: var(--font-mono); font-size: clamp(.72rem, 2.6vw, .82rem); color: var(--txt-sub);
  padding: 9px 15px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
}
.hero-dataline > span:last-child { min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.hero-dataline > span:last-child::-webkit-scrollbar { display: none; }
html[data-theme="light"] .hero-dataline { background: rgba(40,30,60,.04); }
.hero-dataline .dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(118px, auto); gap: 16px; }
.bento-cell {
  background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden; backdrop-filter: blur(10px);
  min-width: 0; overflow-wrap: break-word; word-break: break-word;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.bento-cell:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.bento-cell h3, .bento-cell h4 { font-family: var(--font-display); font-size: 1.04rem; margin-bottom: 7px; letter-spacing: -0.02em; }
.bento-cell p { font-size: .88rem; margin: 0; color: var(--txt-mut); line-height: 1.55; }
.bento-cell .big { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 1.5vw, 1.5rem); font-weight: 800; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.05; letter-spacing: -0.06em; max-width: 100%; white-space: nowrap; }
/* dedicated stat cells: number sits at the top, full prominence, no clipping */
.bento-stat { display: flex; flex-direction: column; justify-content: center; }
.bento-stat .big { margin-bottom: 6px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }
.bento-glow::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-2), transparent 70%); top: -56px; right: -56px; opacity: .6; pointer-events: none;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-3, .col-4 { grid-column: span 2; }
  .row-2 { grid-row: auto; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4 { grid-column: span 1; }
}

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }          /* allow grid children to shrink; prevents long-content overflow */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .bento-cell, .price-card, .faq-item { overflow-wrap: break-word; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 470px; margin-inline: auto; } }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--border-copper); box-shadow: var(--shadow-copper); }
.price-card.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(224,136,80,.12), transparent 60%);
}
.price-card .plan-name { font-family: var(--font-mono); font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
.price-card .plan-price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.04em; }
.price-card .plan-price small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--txt-mut); }
.price-card .plan-alt { font-family: var(--font-mono); font-size: .8rem; color: var(--txt-mut); margin-bottom: 18px; }
ul.features { display: flex; flex-direction: column; gap: 11px; margin: 18px 0 24px; }
ul.features li { display: flex; gap: 10px; font-size: .93rem; color: var(--txt-sub); }
ul.features li::before { content: "→"; color: var(--copper); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* Pricing calculator */
.calc { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-controls > * + * { margin-top: 24px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 13px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); flex-wrap: wrap; }
html[data-theme="light"] .seg { background: rgba(40,30,60,.04); }
.seg button {
  padding: 10px 17px; border-radius: 9px; border: none; background: none; color: var(--txt-sub);
  font-family: var(--font-body); font-weight: 700; font-size: .9rem; transition: all .25s ease;
}
.seg button.active { background: var(--grad-btn); color: #fff; }
.slider-row label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: 10px; color: var(--txt-sub); }
.slider-row label b { font-family: var(--font-mono); color: var(--copper); }
.slider-row input[type="range"] { width: 100%; accent-color: var(--accent); height: 6px; }
.calc-total {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: var(--grad-accent-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 30px;
}
.calc-total .total-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; letter-spacing: -0.04em; }
.calc-total .total-sub { font-family: var(--font-mono); color: var(--txt-mut); font-size: .82rem; margin: 8px 0 20px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s ease; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 24px; background: none; border: none; color: var(--txt); font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; letter-spacing: -0.02em; }
.faq-q .ic { flex-shrink: 0; color: var(--copper); transition: transform .35s var(--ease-snap); font-size: 1.35rem; line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--txt-sub); }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-accent-soft); border: 1px solid var(--border-strong); color: var(--copper);
  font-family: var(--font-display); font-weight: 800;
}

/* ---------- Tier table (partners) ---------- */
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0 11px; }
.tier-table th { text-align: left; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mut); padding: 0 20px 6px; }
.tier-table td { background: var(--grad-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 20px; font-weight: 600; }
.tier-table td:first-child { border-left: 1px solid var(--border); border-radius: 13px 0 0 13px; font-family: var(--font-display); }
.tier-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 13px 13px 0; }
.tier-table tr.platinum td { border-color: var(--border-copper); box-shadow: inset 0 0 30px rgba(224,136,80,.10); }
.tier-table .pct { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--copper); }
.tier-table tr.platinum .pct { background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--txt-mut); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--txt);
  font-family: inherit; font-size: .96rem; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { background: rgba(40,30,60,.03); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(124,131,255,.16);
}
.field textarea { min-height: 124px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e08850' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px;
}
.field select option { background: var(--bg-card-solid); color: var(--txt); }
html[data-theme="light"] .field select option { background: #ffffff; color: #1a1726; }
.field input::placeholder, .field textarea::placeholder { color: var(--txt-mut); opacity: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-note { font-size: .82rem; color: var(--txt-mut); }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: rgba(79,214,168,.12); border: 1px solid rgba(79,214,168,.4); color: var(--accent-3); }
.form-msg.err { display: block; background: rgba(244,96,122,.12); border: 1px solid rgba(244,96,122,.4); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: clamp(52px, 6vw, 80px) 0 34px; margin-top: 48px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .92rem; color: var(--txt-mut); max-width: 34ch; }
.footer-col h3, .footer-col h5 { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--txt-mut); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: var(--txt-sub); transition: color .25s ease, transform .25s ease; }
.footer-col a:hover { color: var(--copper); transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: .86rem; color: var(--txt-mut); }
.crypto-badges { display: flex; gap: 10px; align-items: center; }
.crypto-badges .cb { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--txt-sub); }
html[data-theme="light"] .crypto-badges .cb { background: rgba(40,30,60,.04); }
.crypto-badges .cb b { color: var(--copper); }

/* ---------- Share buttons ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.share-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 13px; font-weight: 700; font-size: .92rem; background: var(--grad-card); border: 1px solid var(--border); color: var(--txt); transition: all .3s var(--ease); }
.share-btn:hover { transform: translateY(-2px); border-color: var(--border-copper); color: var(--copper); }

/* ---------- Misc utilities ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; border: none; }
.glass { background: var(--bg-card); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-accent-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 140% at 50% -20%, rgba(224,136,80,.16), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-family: var(--font-display); font-size: 1.7rem; margin-top: 1.7em; letter-spacing: -0.025em; }
.prose h3 { font-family: var(--font-display); font-size: 1.3rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--txt-sub); line-height: 1.75; }
.prose ul { list-style: none; padding-left: 0; margin-bottom: 1em; }
.prose ul li { margin-bottom: .6em; padding-left: 1.5em; position: relative; }
.prose ul li::before { content: "→"; position: absolute; left: 0; color: var(--copper); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: rgba(124,131,255,.12); padding: .1em .4em; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Motion: orchestrated reveal ----------
   Progressive enhancement — content visible by default; animation only when JS
   confirms running (html.js-reveal) AND element is off-screen. */
[data-reveal] { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-reveal [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js-reveal [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .hero-dataline .dot { animation: none !important; }
}
