/* ============================================================
   Trading Bebas Finansial — Design System
   Light is the default theme; dark is opt-in via [data-theme="dark"].
   Fonts: Outfit (display) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces */
  --c-bg: #ffffff;
  --c-bg-2: #f7f9fc;
  --c-surface: #ffffff;
  --c-surface-2: #f2f6fb;
  --c-surface-3: #e7edf6;
  --c-line: #e3e9f1;
  --c-line-2: #cdd8e6;

  /* Ink */
  --c-ink: #0a1120;
  --c-body: #3d4b60;
  --c-mute: #697a92;
  --c-mute-2: #93a3b8;

  /* Accent */
  --c-accent: #2563eb;
  --c-accent-hover: #1d4ed8;
  --c-accent-soft: rgba(37, 99, 235, 0.08);
  --c-accent-glow: rgba(37, 99, 235, 0.26);
  --c-on-accent: #ffffff;

  /* Semantic */
  --c-success: #059669;
  --c-danger: #dc2626;
  --c-warn: #d97706;

  /* Chrome */
  --c-header: rgba(255, 255, 255, 0.84);
  --c-header-solid: #ffffff;
  --c-hero-veil: linear-gradient(102deg, rgba(5, 11, 22, 0.94) 0%, rgba(5, 11, 22, 0.8) 46%, rgba(5, 11, 22, 0.5) 100%);
  --c-grid-line: rgba(15, 23, 42, 0.05);
  --c-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 44px -30px rgba(15, 23, 42, 0.5);
  --c-shadow-float: 0 34px 70px -34px rgba(15, 23, 42, 0.42);
  --c-grain: 0.028;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 3rem;
  --s-12: 4rem; --s-16: 6rem; --s-20: 8rem;

  /* Type */
  --font-display: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --container: 1240px;
  --header-h: 76px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --c-bg: #070b14;
  --c-bg-2: #0b1120;
  --c-surface: #0f172a;
  --c-surface-2: #111c33;
  --c-surface-3: #1a2540;
  --c-line: #1c2740;
  --c-line-2: #2a3a5e;

  --c-ink: #f1f5f9;
  --c-body: #c2cede;
  --c-mute: #8494ad;
  --c-mute-2: #5f6d87;

  --c-accent: #3b82f6;
  --c-accent-hover: #60a5fa;
  --c-accent-soft: rgba(59, 130, 246, 0.14);
  --c-accent-glow: rgba(59, 130, 246, 0.4);
  --c-on-accent: #ffffff;

  --c-success: #10b981;
  --c-danger: #ef4444;
  --c-warn: #f59e0b;

  --c-header: rgba(7, 11, 20, 0.78);
  --c-header-solid: #0b1120;
  --c-hero-veil: linear-gradient(102deg, rgba(4, 8, 17, 0.94) 0%, rgba(4, 8, 17, 0.82) 46%, rgba(4, 8, 17, 0.55) 100%);
  --c-grid-line: rgba(255, 255, 255, 0.045);
  --c-shadow-card: 0 1px 0 rgba(59, 130, 246, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --c-shadow-float: 0 34px 80px -30px rgba(0, 0, 0, 0.8);
  --c-grain: 0.04;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--c-ink); font-family: var(--font-display); letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
::selection { background: var(--c-accent); color: #fff; }

/* Fine grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--c-grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--c-header);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.4); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; padding-top: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 36px; width: auto; object-fit: contain;
  display: block;
}
.brand-name { font-weight: 700; font-size: 17px; color: var(--c-ink); letter-spacing: -0.015em; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 14px; color: var(--c-mute); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-menu a:hover { color: var(--c-ink); }
.nav-menu a.active { color: var(--c-accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-pill); overflow: hidden;
}
.lang-toggle .lang-opt { padding: 7px 12px; color: var(--c-mute); transition: background 0.2s, color 0.2s; }
.lang-toggle .lang-opt.active { background: var(--c-accent); color: #fff; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-mute);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--c-accent); border-color: var(--c-accent); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.005em;
  padding: 12px 22px; border-radius: var(--r-pill);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-accent { background: var(--c-accent); color: #fff; box-shadow: 0 10px 26px -12px var(--c-accent-glow); }
.btn-accent:hover { background: var(--c-accent-hover); box-shadow: 0 16px 34px -12px var(--c-accent-glow); transform: translateY(-1px); }
.nav-menu a.btn-accent, .nav-menu a.btn { color: #fff; }
.nav-menu a.btn-accent:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line-2); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.26); }
.btn-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ===== Hero (PTGBI-style slideshow) ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(620px, 88vh, 820px);
  display: flex; align-items: center;
  background: #050b16;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.9s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--c-hero-veil);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 22% 42%, rgba(37, 99, 235, 0.22), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 28% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 60% at 28% 45%, #000 20%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.72fr);
  align-items: center; gap: 56px;
  padding: 120px 0 90px;
}
.hero-copy { max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #bfdbfe; background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34); border-radius: var(--r-pill);
  padding: 7px 15px; margin-bottom: 26px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 10px #60a5fa; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 22px;
}
.hero h1 .accent { color: #7dd3fc; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
  color: rgba(226, 232, 240, 0.82); max-width: 54ch; margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 10px; margin-top: 40px; align-items: center; }
.hero-dot {
  width: 34px; height: 4px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.24); padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.5); }
.hero-dot.active { background: #60a5fa; width: 52px; }
.hero-counter {
  margin-left: 14px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; color: rgba(226, 232, 240, 0.55);
}

/* Floating terminal card */
.hero-visual { position: relative; }
.trade-card {
  background: rgba(9, 15, 27, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--c-shadow-float);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.trade-card .tc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(226, 232, 240, 0.6); }
.trade-card .tc-live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.trade-card .tc-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.trade-card .tc-ticker { font-size: 17px; font-weight: 700; color: #fff; font-family: var(--font-display); }
.trade-card .tc-price { font-size: 30px; font-weight: 800; color: #fff; margin: 2px 0; font-family: var(--font-display); letter-spacing: -0.03em; }
.trade-card .tc-change { color: #34d399; font-weight: 600; font-size: 13px; font-family: var(--font-mono); }
.trade-card .tc-chart { height: 88px; margin: 14px 0; background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), transparent); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.trade-card .tc-chart svg { width: 100%; height: 100%; }
.trade-card .tc-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(226, 232, 240, 0.6); padding: 7px 0; border-top: 1px solid rgba(148, 163, 184, 0.16); }
.trade-card .tc-row .v { color: #fff; font-weight: 600; font-family: var(--font-mono); }
.trade-card .tc-tag {
  margin-top: 16px; font-size: 11px; line-height: 1.5; color: rgba(226, 232, 240, 0.55);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ===== Trust strip ===== */
.trust { background: var(--c-bg-2); border-bottom: 1px solid var(--c-line); }
.trust-inner { display: flex; align-items: center; gap: 40px; padding: 22px 0; flex-wrap: wrap; }
.trust .lead-txt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute-2); white-space: nowrap; }
.trust .logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.trust .lgo { font-weight: 600; font-size: 15px; color: var(--c-mute); display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.trust .lgo b { color: var(--c-ink); font-weight: 700; }
.trust .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--c-accent); }

/* ===== Section primitives ===== */
.section { padding: clamp(76px, 10vw, 128px) 0; }
.section-alt { background: var(--c-bg-2); }
.section-head { max-width: 780px; margin: 0 auto clamp(44px, 5.5vw, 68px); }
.section-head.center { text-align: center; }
.section-head .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-accent); display: inline-block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(29px, 4.2vw, 50px); line-height: 1.06; margin-bottom: 16px; }
.section-head p { font-size: 16.5px; color: var(--c-mute); max-width: 62ch; line-height: 1.65; }
.section-head.center p { margin: 0 auto; }

/* ===== Bento (The Edge) ===== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-item {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 32px; position: relative; overflow: hidden;
  box-shadow: var(--c-shadow-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.bento-item:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: 0 26px 50px -30px var(--c-accent-glow); }
.bento-item .bento-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--c-accent-soft); color: var(--c-accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.bento-item h3 { font-size: 20px; margin-bottom: 10px; }
.bento-item p { font-size: 14.5px; color: var(--c-mute); line-height: 1.62; }
.bento-item .bento-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute-2); margin-bottom: 14px; display: block; }
.bento-item.large { grid-column: span 6; grid-row: span 2; padding: 40px; }
.bento-item.wide { grid-column: span 6; }
.bento-item.sm { grid-column: span 3; }
.bento-item.full { grid-column: span 12; }
.bento-item.large h3 { font-size: 28px; }
.bento-item.large p { font-size: 15.5px; max-width: 46ch; }
.bento-item.accent { background: linear-gradient(160deg, var(--c-accent), var(--c-accent-hover)); border-color: transparent; color: rgba(255, 255, 255, 0.9); }
.bento-item.accent h3 { color: #fff; }
.bento-item.accent p { color: rgba(255, 255, 255, 0.82); }
.bento-item.accent .bento-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.bento-item.accent .bento-kicker { color: rgba(255, 255, 255, 0.7); }
.bento-item.accent:hover { box-shadow: 0 30px 60px -28px var(--c-accent-glow); }
@media (max-width: 900px) {
  .bento-item.large, .bento-item.wide, .bento-item.sm, .bento-item.full { grid-column: span 12; grid-row: auto; }
}

/* ===== Timeline (Learning Path) ===== */
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 26px; bottom: 26px; width: 1px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-line) 70%, transparent);
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 26px; align-items: start; }
.tl-node {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-bg); border: 1px solid var(--c-line);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--c-mute);
  position: relative; z-index: 1;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tl-item:hover .tl-node { border-color: var(--c-accent); color: var(--c-accent); box-shadow: 0 0 0 5px var(--c-accent-soft); }
.tl-body {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 28px 30px; box-shadow: var(--c-shadow-card);
  transition: border-color 0.3s, transform 0.3s;
}
.tl-item:hover .tl-body { border-color: var(--c-accent); transform: translateX(4px); }
.tl-body .step { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); display: block; margin-bottom: 10px; }
.tl-body h4 { font-size: 22px; margin-bottom: 14px; }
.tl-body p { font-size: 14.5px; color: var(--c-mute); margin-bottom: 18px; max-width: 62ch; }
.tl-body ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-bottom: 22px; }
.tl-body ul li { font-size: 14px; color: var(--c-body); display: flex; align-items: center; gap: 10px; }
.tl-body ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; }
.tl-body .btn { margin-top: 0; }
@media (max-width: 640px) {
  .tl-body ul { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .tl-node { width: 40px; height: 40px; font-size: 11px; }
  .timeline::before { left: 19px; }
}

/* ===== Mentor ===== */
.mentor { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 68px; align-items: center; }
.mentor-visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4/5; background: var(--c-surface-2); border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-float);
}
.mentor-visual img { width: 100%; height: 100%; object-fit: cover; }
.mentor-visual .mentor-badge {
  position: absolute; bottom: 22px; left: 22px;
  background: var(--c-accent); color: #fff; padding: 12px 18px;
  border-radius: var(--r-md); font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  box-shadow: 0 16px 30px -14px var(--c-accent-glow);
}
.mentor-visual .mentor-ribbon {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(5, 11, 22, 0.62); border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 13px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.mentor h2 { font-size: clamp(29px, 3.6vw, 44px); line-height: 1.08; margin-bottom: 18px; }
.mentor p { font-size: 15.5px; color: var(--c-mute); line-height: 1.72; margin-bottom: 16px; }
.mentor p em { color: var(--c-body); font-style: italic; }
.mentor-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 28px 0 30px; }
.mentor-stats .stat { background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px; }
.mentor-stats .stat .n { font-size: 26px; font-weight: 800; color: var(--c-accent); font-family: var(--font-display); letter-spacing: -0.03em; }
.mentor-stats .stat .l { font-size: 11.5px; color: var(--c-mute); margin-top: 4px; line-height: 1.4; }
@media (max-width: 900px) {
  .mentor { grid-template-columns: 1fr; gap: 36px; }
  .mentor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Social proof (editorial list) ===== */
.proof-list { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.proof-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 210px; gap: 32px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--c-line);
  transition: background 0.25s ease, padding 0.25s ease;
}
.proof-row:hover { background: var(--c-surface); padding-left: 18px; padding-right: 18px; }
.proof-row .idx { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--c-line-2); letter-spacing: -0.04em; }
.proof-row:hover .idx { color: var(--c-accent); }
.proof-row .quote { font-size: 16.5px; line-height: 1.6; color: var(--c-body); font-style: italic; }
.proof-row .byline { text-align: right; }
.proof-row .byline .name { font-weight: 700; color: var(--c-ink); font-size: 14.5px; }
.proof-row .byline .role { font-size: 12.5px; color: var(--c-mute-2); font-family: var(--font-mono); letter-spacing: 0.06em; }
@media (max-width: 820px) {
  .proof-row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .proof-row .byline { grid-column: 2; text-align: left; }
  .proof-row .idx { font-size: 22px; }
}

/* ===== Gallery (community) ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 16px; grid-auto-flow: dense;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 32px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 22, 0.85));
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item.g-1 { grid-column: span 7; aspect-ratio: 16/9; }
.gallery-item.g-2 { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-item.g-3 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-item.g-4 { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item.g-5 { grid-column: span 4; aspect-ratio: 1/1; }
.gallery-item.g-6 { grid-column: span 5; aspect-ratio: 4/3; }
.gallery-item.g-7 { grid-column: span 3; aspect-ratio: 3/4; }
.gallery-item.g-8 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-item.g-9 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item.g-10 { grid-column: span 4; aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .gallery-item { grid-column: span 6 !important; aspect-ratio: 4/3 !important; }
}
@media (max-width: 560px) {
  .gallery-item { grid-column: span 12 !important; }
}

/* ===== Legal band ===== */
.legal-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--c-shadow-card);
}
.legal-band h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.legal-band p { color: var(--c-mute); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.legal-band .legal-meta { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--c-mute-2); }
.legal-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); }
.legal-frame img { width: 100%; }
@media (max-width: 820px) { .legal-band { grid-template-columns: 1fr; gap: 28px; } }

/* ===== CTA ===== */
.cta-section { padding: clamp(76px, 10vw, 128px) 0; }
.cta-box {
  background: url('../img/tbf/cta-bg.jpg') center/cover no-repeat;
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 64px);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -40px var(--c-accent-glow);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(7, 11, 20, 0.82), rgba(30, 58, 138, 0.72));
}
.cta-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.12), transparent 52%);
}
.cta-box h2 { font-size: clamp(28px, 4.4vw, 50px); color: #fff; margin-bottom: 16px; position: relative; }
.cta-box p { font-size: 16.5px; color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin: 0 auto 30px; position: relative; }
.cta-box .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-box .btn-solid { background: #fff; color: #1e3a8a; }
.cta-box .btn-solid:hover { background: #f1f5f9; }
.cta-box .btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.cta-box .btn-light:hover { background: rgba(255, 255, 255, 0.18); }

/* ===== Countdown ===== */
.countdown { display: flex; gap: 12px; justify-content: center; margin: 26px 0 32px; flex-wrap: wrap; position: relative; }
.cd-unit { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-md); padding: 13px 18px; min-width: 78px; text-align: center; }
.cta-box .cd-unit .n,
.cta-box .cd-unit .l,
.cd-unit .n,
.cd-unit .l { color: #fff; }
.cd-unit .n { font-family: var(--font-mono); font-size: 26px; font-weight: 700; display: block; line-height: 1; }
.cd-unit .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 7px; display: block; }
.cd-done { color: #fff; font-weight: 700; font-size: 18px; }

/* ===== Tools ===== */
.tools-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--c-shadow-card); }
.calc-card h3 { font-size: 20px; margin-bottom: 22px; }
.calc-field { margin-bottom: 16px; }
.calc-field label { display: block; font-size: 11.5px; color: var(--c-mute); margin-bottom: 7px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.calc-field input {
  width: 100%; padding: 12px 14px;
  background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: var(--r-sm);
  color: var(--c-ink); font-family: var(--font-mono); font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.calc-field input:focus { outline: none; border-color: var(--c-accent); background: var(--c-surface); }
.calc-result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.calc-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.calc-line .v { font-family: var(--font-mono); font-weight: 700; }
.calc-line .v.pos { color: var(--c-success); }
.calc-line .v.neg { color: var(--c-danger); }
.rules { display: grid; gap: 16px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

/* Spotlight border effect */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--c-accent-soft), transparent 62%);
  transition: opacity 0.3s;
}
.spotlight:hover::before { opacity: 1; }

/* ===== Footer ===== */
.footer { background: var(--c-bg-2); border-top: 1px solid var(--c-line); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h5 { color: var(--c-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-mono); }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: var(--c-mute); transition: color 0.2s; }
.footer ul li a:hover { color: var(--c-accent); }
.footer p { font-size: 14px; color: var(--c-mute); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--c-line); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--c-mute-2); font-family: var(--font-mono);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Mobile nav ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 100px 0 72px; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--c-header-solid); border-bottom: 1px solid var(--c-line); padding: 12px 0;
    box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.4);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 24px; width: 100%; }
  .nav-menu a.btn { margin: 8px 24px 4px; width: auto; text-align: center; }
  .nav-toggle { display: block; width: 40px; height: 40px; padding: 8px; position: relative; }
  .ham-bar { display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; position: absolute; left: 9px; transition: transform 0.3s, opacity 0.2s; }
  .ham-bar:nth-child(1) { top: 13px; }
  .ham-bar:nth-child(2) { top: 19px; }
  .ham-bar:nth-child(3) { top: 25px; }
  .nav-toggle.active .ham-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.active .ham-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.active .ham-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero h1 { font-size: 34px; }
  .hero-meta, .hero-dots { gap: 18px; }
}
.nav-toggle { display: none; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .trade-card { animation: none; }
  .hero-badge .dot { animation: none; }
  .hero-slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Company / about ===== */
.co-hero-visual { margin-top: 28px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); max-height: 420px; }
.co-hero-visual img { width: 100%; height: 420px; object-fit: cover; display: block; }
.co-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.co-split.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.co-copy p { color: var(--c-mute); font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.co-copy h2 { font-size: clamp(26px, 3vw, 40px); margin: 12px 0 18px; }
.co-figure { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface); }
.co-figure img { width: 100%; height: 420px; object-fit: cover; display: block; }
.co-figure figcaption { padding: 14px 18px; font-size: 13px; color: var(--c-mute); font-family: var(--font-mono); letter-spacing: .04em; }
.co-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.co-fact { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px 18px; }
.co-fact strong { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -.03em; color: var(--c-accent); line-height: 1; margin-bottom: 8px; }
.co-fact span { color: var(--c-mute); font-size: 13.5px; line-height: 1.45; }
.co-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.co-pillar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.co-pillar img { width: 100%; height: 190px; object-fit: cover; display: block; }
.co-pillar div { padding: 18px 18px 20px; }
.co-pillar h3 { font-size: 18px; margin-bottom: 8px; }
.co-pillar p { margin: 0; color: var(--c-mute); font-size: 14.5px; line-height: 1.65; }
.co-legal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.co-cert { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); background: #fff; }
.co-cert img { width: 100%; display: block; }
@media (max-width: 900px) {
  .co-split, .co-split.reverse, .co-legal, .co-facts, .co-pillars { grid-template-columns: 1fr; }
  .co-hero-visual img, .co-figure img { height: 260px; }
}

/* ===== Video page ===== */
.video-player { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; margin-bottom: 32px; background: #0f172a; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video-card { display: block; width: 100%; padding: 0; text-align: left; overflow: hidden; cursor: pointer; color: inherit; font: inherit; border: 1px solid var(--c-line); background: var(--c-surface); }
button.video-card { appearance: none; }
.video-card.is-active { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); }
.video-thumb { position: relative; display: block; }
.video-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .28); color: #fff; font-size: 18px; transition: background .2s ease; }
.video-play i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 42, .72); }
.video-card:hover .video-play { background: rgba(15, 23, 42, .45); }
.video-meta { display: block; padding: 12px; }
.video-meta .mono { font-size: 12px; color: var(--c-mute); }
.video-meta strong { display: block; font-size: 14px; margin-top: 8px; line-height: 1.45; }

/* ===== Newsletter band (above footer) ===== */
.nl-band {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: clamp(36px, 5vw, 56px) 0;
}
.nl-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nl-band h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 6px;
}
.nl-band p { margin: 0; color: var(--c-mute); font-size: 15px; max-width: 46ch; }
.nl-form { display: flex; gap: 8px; margin: 0; flex: 0 1 420px; }
.nl-form input[type="email"] {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font-size: 14px;
}
.nl-form input[type="email"]:focus { outline: none; border-color: var(--c-accent); }
.nl-form button {
  padding: 13px 18px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 600;
  background: var(--c-accent); color: #fff; white-space: nowrap; transition: background .2s ease;
}
.nl-form button:hover { background: var(--c-accent-dark, #1d4ed8); }
.nl-flash { color: var(--c-accent); font-weight: 600; }
@media (max-width: 760px) {
  .nl-band-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .nl-form { flex: none; width: 100%; }
}
@media (max-width: 480px) { .nl-form { flex-direction: column; } }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.wa-float svg { width: 28px; height: 28px; display: block; }
.wa-float:hover { background: #1fbb5a; transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(37, 211, 102, 0.75); }
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}
.wa-float:hover .wa-float-label { max-width: 160px; opacity: 1; padding-right: 6px; }
.wa-float:focus-visible .wa-float-label { max-width: 160px; opacity: 1; padding-right: 6px; }
@keyframes waPulse {
  0% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float { animation: waPulse 2.8s ease-out infinite; }
.wa-float:hover { animation: none; }
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; padding: 12px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.text-accent { color: var(--c-accent); }
.text-success { color: var(--c-success); }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
