/* =============================================================
   Paul Laurent Trading — shared design system
   Dark · premium · financial · blueprint/measurement motif
   ============================================================= */

/* ---------- Self-hosted fonts (no external CDN dependency) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (exact brand navy = #1b212f) */
  --navy-900: #14181f;
  --navy-850: #171c27;
  --navy-800: #1b212f;
  --surface:  #212838;
  --surface-2:#273043;
  --line:     #2c3547;
  --line-strong: #3b4762;

  /* Accents (exact from wordmark underlines) */
  --blue: #6ab7ff;
  --blue-strong: #3f9bff;
  --gold: #f5b700;
  --gold-strong: #ffce3a;

  /* Text */
  --ink:   #f4f6fb;
  --ink-2: #c5cbd8;
  --muted: #9aa0ab;
  --muted-2: #757d8c;

  /* Metallic mark gradient */
  --metal-hi: #ffffff;
  --metal-mid: #d7dbe2;
  --metal-lo: #9ea6b4;

  /* Accent as the "active product" — overridden by .theme-admin */
  --accent: var(--blue);
  --accent-strong: var(--blue-strong);
  --accent-glow: rgba(106, 183, 255, 0.30);

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing / layout */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur: 0.6s;

  /* Live market ticker bar height */
  --ticker-h: 46px;

  /* Z-index scale (semantic, never arbitrary) */
  --z-base: 1;
  --z-decor: 0;
  --z-sticky: 100;
  --z-ticker: 120;
  --z-drawer-backdrop: 200;
  --z-drawer: 210;
  --z-toast: 300;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
p { text-wrap: pretty; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.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;
}
.theme-admin {
  --accent: var(--gold);
  --accent-strong: var(--gold-strong);
  --accent-glow: rgba(245, 183, 0, 0.28);
}

/* Uppercase tracked label — deliberate brand system (wordmark subtitle echo) */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .dot { color: var(--accent); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em; padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo),
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  color: #0c1017; background: var(--accent);
  box-shadow: 0 6px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px -14px var(--accent-glow); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Blueprint decoration ---------- */
.blueprint { position: absolute; inset: 0; pointer-events: none; z-index: var(--z-decor); overflow: hidden; }
.blueprint .frame {
  position: absolute; inset: clamp(0.9rem, 3vw, 2.4rem);
  border: 1px dashed var(--line-strong); border-radius: 4px; opacity: .5;
}
.blueprint .tick {
  position: absolute; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; color: var(--muted-2); opacity: .55;
}
.blueprint .corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent); opacity: .55; }
.blueprint .corner.tl { top: clamp(.9rem,3vw,2.4rem); left: clamp(.9rem,3vw,2.4rem); border-right: 0; border-bottom: 0; }
.blueprint .corner.tr { top: clamp(.9rem,3vw,2.4rem); right: clamp(.9rem,3vw,2.4rem); border-left: 0; border-bottom: 0; }
.blueprint .corner.bl { bottom: clamp(.9rem,3vw,2.4rem); left: clamp(.9rem,3vw,2.4rem); border-right: 0; border-top: 0; }
.blueprint .corner.br { bottom: clamp(.9rem,3vw,2.4rem); right: clamp(.9rem,3vw,2.4rem); border-left: 0; border-top: 0; }

/* ---------- Live market ticker bar (site-wide, top of every page) ---------- */
.tv-ticker {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ticker-h); z-index: var(--z-ticker);
  background: var(--navy-900); border-bottom: 1px solid var(--line); overflow: hidden;
}
.tv-ticker .tradingview-widget-container,
.tv-ticker .tradingview-widget-container__widget { height: 100%; }
.tv-ticker .widget-loading { height: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: var(--z-sticky);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--navy-850) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { color: var(--ink-2); font-size: 0.94rem; font-weight: 500; position: relative; transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--accent); transition: right .3s var(--ease-out-expo);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-login { color: var(--ink-2); font-size: 0.94rem; font-weight: 500; transition: color .2s ease; }
.nav-login:hover { color: #fff; }
.nav-mobile-cta { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out-expo), opacity .2s ease;
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--ticker-h) + clamp(7rem, 14vh, 10rem)); padding-bottom: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero::before { /* ambient blue glow */
  content: ""; position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  top: -18%; right: -12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(106,183,255,.16), transparent 62%);
  filter: blur(8px); pointer-events: none;
}
.hero::after { /* faint grid texture */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero-copy { max-width: 640px; }
/* PL mark: floats in the upper-right of the hero, slightly offset, text breathes below */
.hero-mark { position: relative; width: min(230px, 90%); aspect-ratio: 576 / 382; justify-self: end; align-self: start; margin-top: clamp(0.5rem, 3vw, 1.6rem); transform: translateY(-6%); }
.hero-mark::before { /* soft metallic glow behind the mark */
  content: ""; position: absolute; inset: -24% -16%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(106,183,255,.16), transparent 66%);
  filter: blur(6px);
}
.hero-mark img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; margin-block: 1.1rem 0.4rem;
}
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.hero .lede-sub { margin-top: 0.9rem; font-size: clamp(0.96rem, 1.4vw, 1.08rem); color: var(--muted); }
.hero-tagline { margin-top: 1.35rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }
.hero-tagline b { color: var(--blue); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-readout {
  display: flex; gap: 1.8rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); flex-wrap: wrap;
}
.hero-readout div { display: flex; flex-direction: column; gap: 2px; }
.hero-readout .val { color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-readout .key { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
.section-head p { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Products (deliberate pair, not a card grid) ---------- */
.products { position: relative; background: var(--navy-850); border-block: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.product {
  --accent: var(--blue); --accent-strong: var(--blue-strong); --accent-glow: rgba(106,183,255,.28);
  position: relative; display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--navy-900)));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease-out-expo), border-color .35s ease, box-shadow .5s var(--ease-out-expo);
}
.product.is-admin { --accent: var(--gold); --accent-strong: var(--gold-strong); --accent-glow: rgba(245,183,0,.24); }
.product::before { /* top-edge accent glow */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8;
}
.product::after { /* corner radial glow */
  content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%); opacity: .0; transition: opacity .5s ease; pointer-events: none;
}
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.product:hover::after { opacity: 1; }
.product-mark { width: 68px; height: 68px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--navy-900); object-fit: cover; }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: var(--ink); margin-top: 1.3rem; }
.product .label { margin-top: 0.45rem; }
.product .label .dot, .product-title + .label { color: var(--muted); }
.product-desc { margin-top: 1rem; color: var(--ink-2); }
.feature-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); font-size: 0.97rem; }
.feature-list li::before {
  content: "//"; font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; font-weight: 700; line-height: 1.7;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: auto; padding-top: 1.8rem; }

/* "Coming soon" caption next to the Install Free Bot button */
.free-bot-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--muted-2); line-height: 1.5; }

/* ---------- Pricing page ---------- */
.pricing-intro { background: var(--navy-850); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem); }
.pricing-intro .section-head { max-width: 64ch; margin-bottom: 0; }
.pricing-band { position: relative; }
.pricing-band.alt { background: var(--navy-850); border-block: 1px solid var(--line); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch; }
.tiers.single { grid-template-columns: minmax(0, 780px); justify-content: center; }

.tier {
  --accent: var(--blue); --accent-glow: rgba(106,183,255,.28);
  position: relative; display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--navy-900)));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease-out-expo), border-color .35s ease, box-shadow .5s var(--ease-out-expo);
}
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8; }
.tier::after { content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 62%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.tier:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.tier:hover::after { opacity: 1; }
.tier.is-featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 24px 50px -34px rgba(0,0,0,.7); }

.tier-badge { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); padding: .3rem .6rem; border-radius: 999px; }

.tier-head { padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tier-price { margin-top: .55rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.tier-price .price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.tier-price .per { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.tier-sub { margin-top: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.tier-desc { margin-top: 1.2rem; color: var(--ink-2); }

.tier .feature-list { margin-top: 1.3rem; }
.feature-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.7rem; }
.feature-list.is-soon li { color: var(--muted); }
.soon-tag { font-family: var(--font-mono); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .12rem .45rem; margin-left: auto; align-self: center; white-space: nowrap; }

.tier-cta { display: flex; flex-direction: column; gap: .7rem; margin-top: auto; padding-top: 1.8rem; }
.tier-note { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.tier-note a { color: var(--accent); font-weight: 600; }
.tier-serverlink { display: inline-block; margin-top: 1rem; font-size: .82rem; font-weight: 600; color: var(--accent); }
.tier-serverlink:hover { color: #fff; }

@media (max-width: 760px) {
  .tiers, .feature-list.two-col { grid-template-columns: 1fr; }
}

/* ---------- Discord band ---------- */
.discord { position: relative; overflow: hidden; }
.discord .container { position: relative; z-index: 1; }
.discord-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: linear-gradient(140deg, var(--surface), var(--navy-850));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3.4rem); position: relative; overflow: hidden;
}
.discord-card::after { content: ""; position: absolute; bottom: -50%; left: 30%; width: 60%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(106,183,255,.16), transparent 60%); pointer-events: none; }
.discord-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.discord-card p { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }
.discord-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.4rem; margin-top: 1.6rem; }
.discord-perks li { display: flex; gap: 0.55rem; align-items: center; font-size: 0.95rem; color: var(--ink-2); }
.discord-perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
/* Custom Discord invite card */
.invite-card {
  position: relative; z-index: 1; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), var(--navy-900)); padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.8);
}
.invite-card::before { /* top-edge blue glow, echoing the product cards */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .85;
}
.invite-head { display: flex; align-items: center; gap: 0.9rem; }
.invite-logo { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line-strong); flex: none; }
.invite-id { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.invite-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.2; }
.invite-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.invite-stats .stat { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.invite-stats .dot-online { width: 8px; height: 8px; border-radius: 50%; background: #43b581; box-shadow: 0 0 9px rgba(67,181,129,.7); }
.invite-stats .dot-idle { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.invite-est { display: inline-block; margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.invite-desc { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }
.invite-card .btn { margin-top: 1.4rem; }

/* ---------- Content / YouTube ---------- */
.content-band { background: var(--navy-850); border-block: 1px solid var(--line); }

/* Social section: card-sized YouTube banner + follow links */
.social-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.social-side { display: flex; flex-direction: column; align-items: flex-start; }
.social-side-lead { color: var(--ink-2); font-size: 1.06rem; max-width: 32ch; }
.social-side .social-row { margin-top: 1.2rem; }
@media (max-width: 860px) { .social-layout { grid-template-columns: 1fr; } }

/* YouTube banner — card sized, shown in full (never cropped) */
.yt-banner {
  position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--navy-900);
}
.yt-banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease-out-expo); }
.yt-banner:hover img { transform: scale(1.02); }
/* Authentic YouTube play badge — red rounded-rectangle + white triangle (visual only) */
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(96px, 12vw, 140px); height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45)); transition: transform .35s var(--ease-out-expo);
}
.yt-banner:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-play svg { width: 100%; height: auto; display: block; }

/* Two equal-height live widgets (Top Stories + heatmap), below the calendar */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(1.2rem, 3vw, 2rem); }
.feed-card { height: 480px; }
.feed-card .tradingview-widget-container { height: 100%; }
@media (max-width: 860px) { .feed-grid { grid-template-columns: 1fr; } .feed-card { height: 440px; } }
.social-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.social-chip {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1.05rem; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: border-color .25s ease, color .25s ease, transform .3s var(--ease-out-expo);
}
.social-chip:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.social-chip svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3rem); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--ink-2); font-size: 0.94rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
.footer-bottom .powered { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: border-color .25s ease, color .25s ease, transform .3s var(--ease-out-expo); }
.footer-social a:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Reveal motion ----------
   Hidden state applies ONLY when JS is active (html.js). No JS / headless /
   crawler => content is visible by default and never ships blank. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out-quart), transform .7s var(--ease-out-expo); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; align-self: auto; margin: 0 0 clamp(1rem, 3vw, 1.6rem); transform: none; width: min(180px, 44%); }
  .discord-card, .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-desktop { display: none; }
  .nav-toggle { display: inline-flex; position: relative; }
  .product-grid { grid-template-columns: 1fr; }
  .discord-perks { grid-template-columns: 1fr; }

  /* Mobile drawer */
  .nav-links.open {
    display: flex; position: fixed; top: calc(var(--ticker-h) + 72px); left: 0; right: 0; z-index: var(--z-drawer);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 1.6rem;
    background: var(--navy-850); border-bottom: 1px solid var(--line);
  }
  .nav-links.open li { border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-mobile-cta { display: block; }
  .nav-links.open .nav-mobile-cta:last-child a { color: var(--blue); font-weight: 600; }
  .nav-links.open a { display: block; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav-links.open a::after { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.active span { background: transparent; }
  .nav-toggle.active span::before { transform: rotate(45deg); }
  .nav-toggle.active span::after { transform: rotate(-45deg); }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-readout { gap: 1.2rem; }
}

/* ---------- Market data widgets (TradingView / Stocktwits) ---------- */
.market { background: var(--navy-850); border-block: 1px solid var(--line); }
.widget-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--navy-900); overflow: hidden;
}
.widget-card .tradingview-widget-container,
.widget-card iframe { position: relative; z-index: 1; }
.widget-card iframe { display: block; width: 100%; border: 0; }
/* Graceful placeholder shown behind every embed until it paints (or if offline) */
.widget-loading {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-align: center; padding: 1rem;
}
.widget-loading::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.econ-cal { min-height: 560px; }

/* ---------- Legal / long-form document pages ---------- */
.legal { padding-top: calc(var(--ticker-h) + 72px + clamp(2.4rem, 5vw, 4rem)); padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; }
.legal .blueprint .frame { opacity: .25; }
.legal-inner { position: relative; z-index: 1; max-width: 860px; }
.legal-head { padding-bottom: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: clamp(1.8rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 0.7rem; }
.legal-updated { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2.6rem; color: var(--muted); font-size: 0.9rem; transition: color .2s ease; }
.legal-back:hover { color: var(--blue); }

.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; color: var(--ink);
  margin-top: 2.8rem; margin-bottom: 0.85rem; letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--ticker-h) + 84px);
}
.prose h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-top: 1.7rem; margin-bottom: 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--blue-strong); }
.prose ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.55rem; }
.prose li { position: relative; padding-left: 1.4rem; }
.prose li::before { content: ""; position: absolute; left: 0.15rem; top: 0.66em; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); }

/* ---------- Product doc subpage (sticky side-nav layout) ---------- */
.doc { padding-top: calc(var(--ticker-h) + 72px + clamp(1.4rem, 3vw, 2.4rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.doc-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }

.doc-nav { position: sticky; top: calc(var(--ticker-h) + 72px + 1rem); align-self: start; max-height: calc(100vh - var(--ticker-h) - 84px); overflow-y: auto; }
.doc-nav-toggle { display: none; }
.doc-nav ul { list-style: none; display: grid; gap: 0.12rem; margin: 0; padding: 0; }
.doc-nav .nav-group { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin: 1.25rem 0 0.5rem; padding-left: 0.9rem; }
.doc-nav .nav-group:first-child { margin-top: 0; }
.doc-nav a { display: block; padding: 0.38rem 0.9rem; border-left: 2px solid transparent; color: var(--ink-2); font-size: 0.9rem; border-radius: 0 6px 6px 0; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.doc-nav a.sub { padding-left: 1.6rem; font-size: 0.85rem; color: var(--muted); }
.doc-nav a:hover { color: #fff; background: rgba(255,255,255,.035); }
.doc-nav a.active { color: var(--blue); border-left-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.doc-main { min-width: 0; }

/* Overview hero */
.tb-hero { position: relative; padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.tb-hero-top { display: flex; align-items: center; gap: 1rem; }
.tb-mark { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--navy-900); flex: none; }
.tb-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 1.2rem; }
.tb-hero .lead { margin-top: 1rem; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 60ch; }
.tb-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.tb-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.tb-stats b { color: var(--ink); font-weight: 600; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 1.8rem; }
.feat-chip { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; font-size: 0.88rem; color: var(--ink-2); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.feat-chip span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 0.2rem; }

/* Getting-started / config callout */
.tb-callout {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--blue) 6%, var(--navy-850));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; justify-content: space-between;
}
.tb-callout p { color: var(--ink-2); font-size: 0.98rem; margin: 0; max-width: 64ch; }
.tb-callout p strong { color: var(--ink); }
.tb-callout-link { color: var(--blue); font-weight: 600; font-size: 0.94rem; white-space: nowrap; }
.tb-callout-link:hover { color: var(--blue-strong); }

/* Section + feature blocks */
.doc-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: calc(var(--ticker-h) + 72px + 1.4rem); margin-top: clamp(2.6rem, 5vw, 4rem); }
.doc-h2:first-child { margin-top: 0; }
.doc-lead { margin-top: 0.8rem; color: var(--ink-2); max-width: 66ch; }
.feat {
  scroll-margin-top: calc(var(--ticker-h) + 72px + 1.4rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--navy-900)));
  padding: clamp(1.3rem, 2.8vw, 1.9rem); margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.feat:hover { border-color: color-mix(in srgb, var(--blue) 32%, var(--line)); box-shadow: 0 18px 40px -28px rgba(0,0,0,.7); }
.feat-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.feat-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.feat p { margin-top: 0.7rem; color: var(--ink-2); max-width: 70ch; font-size: 0.98rem; }
.feat .seen { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.feat .seen b { color: var(--ink-2); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line)); border-radius: 999px; padding: 0.25rem 0.7rem; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--accent-glow); }
/* Daily / weekly / scheduled feeds — gold */
.pill.is-daily { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.pill.is-daily::before { background: var(--gold); box-shadow: 0 0 8px rgba(245,183,0,.4); }
/* Paid features — solid blue accent */
.pill.is-paid { color: #0c1017; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.pill.is-paid::before { background: #0c1017; box-shadow: none; }

/* Screenshot placeholder */
.shot { margin-top: 1.1rem; aspect-ratio: 16 / 6.5; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px), var(--navy-900); color: var(--muted-2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 1rem; }

/* Feed tables */
.feed-table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.92rem; }
.feed-table th, .feed-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.feed-table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.feed-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.feed-table td:last-child { color: var(--ink-2); }
.feed-table tbody tr:nth-child(2n) td { background: rgba(255,255,255,.022); }
.feed-table tbody tr:hover td { background: rgba(106,183,255,.06); }
.feed-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Pricing tiers */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); margin-top: 1.4rem; }
.tier { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); background: linear-gradient(180deg, var(--surface), var(--navy-900)); }
.tier.featured { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.tier.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.tier .tier-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tier .price { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-top: 0.5rem; }
.tier .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier .save { display: inline-block; margin-top: 0.4rem; font-size: 0.78rem; color: var(--blue); }
.tier .btn { margin-top: 1.3rem; width: 100%; justify-content: center; }
.tier ul { list-style: none; margin-top: 1.3rem; display: grid; gap: 0.55rem; }
.tier li { display: flex; gap: 0.6rem; color: var(--ink-2); font-size: 0.92rem; }
.tier li::before { content: "//"; font-family: var(--font-mono); color: var(--blue); font-weight: 700; font-size: 0.8rem; }

/* Discord CTA block on subpage */
.tb-discord { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.6rem); background: linear-gradient(140deg, var(--surface), var(--navy-850)); position: relative; overflow: hidden; }
.tb-discord::after { content: ""; position: absolute; bottom: -50%; left: 30%; width: 60%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(106,183,255,.14), transparent 60%); pointer-events: none; }
.tb-discord-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.4rem; margin-top: 1.3rem; }
.tb-discord-perks li { display: flex; gap: 0.55rem; align-items: center; color: var(--ink-2); font-size: 0.94rem; position: relative; z-index: 1; }
.tb-discord-perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--accent-glow); flex: none; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: sticky; top: calc(var(--ticker-h) + 72px); max-height: none; overflow: visible; z-index: 40; background: var(--navy-850); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1.6rem; }
  .doc-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.85rem 1.1rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
  .doc-nav-toggle .chev { transition: transform .3s var(--ease-out-expo); color: var(--muted); }
  .doc-nav.open .doc-nav-toggle .chev { transform: rotate(180deg); }
  .doc-nav .doc-nav-inner { display: none; padding: 0.4rem 0.6rem 0.8rem; border-top: 1px solid var(--line); }
  .doc-nav.open .doc-nav-inner { display: block; }
  .tb-discord-perks { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .product:hover, .social-chip:hover, .footer-social a:hover { transform: none; }
}
