/* ================================================================
   TRADEVIZION — Design System v3.0
   Inspiré de : Linear.app · Vercel.com · ElevenLabs.io
   Stack : HTML/CSS/JS vanilla + GSAP
   ================================================================ */

/* --- Reset & Base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

:root {
  /* Backgrounds */
  --bg-0:   #06060e;
  --bg-1:   #0b0b18;
  --bg-2:   #0f0f1e;
  --bg-3:   #141424;

  /* Borders */
  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.13);

  /* Text */
  --text:   #eeeef5;
  --text-2: rgba(238,238,245,0.52);
  --text-3: rgba(238,238,245,0.27);

  /* Accents */
  --blue:       #3b7eff;
  --blue-glow:  rgba(59,126,255,0.16);
  --blue-2:     #5a96ff;
  --green:      #00c896;
  --green-dim:  rgba(0,200,150,0.14);
  --red:        #ff4d6d;
  --red-dim:    rgba(255,77,109,0.14);
  --gold:       #c9a86c;
  --gold-dim:   rgba(201,168,108,0.14);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --section-pad: 120px;
  --radius:    6px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

.container      { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* --- Type helpers ----------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-3);
}
.accent-blue  { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-red   { color: var(--red); }
.accent-gold  { color: var(--gold); }

/* --- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-lg   { padding: 14px 28px; font-size: 15px; }
.btn-xl   { padding: 17px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59,126,255,0.28), 0 4px 14px rgba(59,126,255,0.28);
}
.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(59,126,255,0.38), 0 8px 28px rgba(59,126,255,0.32);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.btn-outline:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

/* ================================================================
   BANNIÈRE MACOS
   ================================================================ */
.macos-banner {
  background: linear-gradient(90deg, rgba(201,168,108,0.12) 0%, rgba(201,168,108,0.06) 100%);
  border-bottom: 1px solid rgba(201,168,108,0.25);
  padding: 10px 0;
  position: relative;
  z-index: 101;
}
.macos-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.macos-banner-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.macos-banner-inner strong { color: var(--gold); }
.macos-banner-sub { color: var(--text-3); }
.macos-banner-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  padding: 4px 12px;
  border: 1px solid rgba(201,168,108,0.35);
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.macos-banner-cta:hover { background: rgba(201,168,108,0.12); color: var(--text); }
.macos-banner-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.macos-banner-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

@media (max-width: 768px) {
  .macos-banner-sub { display: none; }
  .macos-banner-cta { margin-left: 0; }
}

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
#navbar.scrolled {
  background: rgba(6,6,14,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-right: 40px;
  flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-right: auto;
}
.nav-links a {
  display: block;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.nav-link-text:hover { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span { display: block; height: 1.5px; background: var(--text-2); border-radius: 2px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-mobile a:hover { background: var(--bg-2); color: var(--text); }
.nav-mobile .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ================================================================
   TICKER
   ================================================================ */
.ticker-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  margin-top: 60px;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-1), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-1), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.ticker-item::after {
  content: '';
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  margin-left: 16px;
}
.ticker-item:last-child::after { display: none; }
.ticker-item .t-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.6;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black 30%, transparent);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at top, rgba(59,126,255,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--border-2);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 36px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%      { opacity: 0.5; box-shadow: 0 0 4px var(--green); }
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 .line-accent { color: var(--blue); }
.hero h1 .line-dim    { color: var(--text-2); }

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-cta-note { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.hero-stats {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  width: fit-content;
  overflow: hidden;
}
.hero-stat {
  padding: 22px 32px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}
.hero-stat-num .suf { font-size: 18px; color: var(--text-2); font-weight: 600; }
.hero-stat-label { font-size: 12px; color: var(--text-3); }

/* ================================================================
   COMPARED TO
   ================================================================ */
.compared {
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
}
.compared-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.compared-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}
.compared-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.compared-pill {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
  transition: color 0.15s, border-color 0.15s;
}
.compared-pill:hover { color: var(--text-2); border-color: var(--border-2); }

/* ================================================================
   SECTION — PROBLEM
   ================================================================ */
.problem { padding: var(--section-pad) 0; }

.problem-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.problem-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.problem-header p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.behavior-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-1);
  transition: background 0.2s;
}
.behavior-cell:last-child { border-right: none; }
.behavior-cell:hover { background: var(--bg-2); }

.behavior-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(255,77,109,0.22);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.behavior-cell h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.behavior-cell p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.problem-verdict {
  margin-top: 32px;
  padding: 20px 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.problem-verdict strong { color: var(--text); }

/* ================================================================
   SECTION — VIZI
   ================================================================ */
.vizi-section {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.vizi-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,126,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.vizi-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.vizi-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--blue-glow);
  border: 1px solid rgba(59,126,255,0.24);
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}
.vizi-badge .vdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: dot-pulse 2s ease-in-out infinite;
}

.vizi-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.vizi-header p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Vizi insight feed */
.vizi-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 52px;
  position: relative;
}
.vizi-feed-row {
  display: contents;
}
.vizi-card {
  background: var(--bg-0);
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.vizi-card:hover { background: var(--bg-2); }
.vizi-card:nth-child(3n) { border-right: none; }
.vizi-card:nth-child(n+4) { border-bottom: none; }

.vizi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.vizi-card-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.vizi-severity {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}
.sev-crit  { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(255,77,109,0.2); }
.sev-ok    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,200,150,0.2); }
.sev-info  { background: var(--blue-glow); color: var(--blue);  border: 1px solid rgba(59,126,255,0.2); }
.sev-warn  { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(201,168,108,0.2); }

.vizi-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.vizi-card p strong { color: var(--text); font-weight: 600; }

.vizi-card-metric {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Vizi capabilities */
.vizi-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.vizi-cap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-0);
  transition: border-color 0.2s, background 0.2s;
}
.vizi-cap:hover { border-color: var(--border-2); background: var(--bg-1); }

.vizi-cap-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--blue-glow);
  border: 1px solid rgba(59,126,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vizi-cap-icon svg { width: 15px; height: 15px; color: var(--blue); }
.vizi-cap h4 { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.vizi-cap p  { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* ================================================================
   SECTION — FEATURES (MODULES)
   ================================================================ */
.features { padding: var(--section-pad) 0; }

.features-header { margin-bottom: 72px; }
.features-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.features-header p { font-size: 16px; color: var(--text-2); max-width: 480px; }

.feature-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.feature-module:last-child { border-bottom: 1px solid var(--border); }

.feature-module.reverse .feature-info   { order: 2; }
.feature-module.reverse .feature-visual { order: 1; }

.feature-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.feature-info h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.feature-info > p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Feature visual mockup */
.feature-visual {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.fv-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.fv-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.fv-dot-red  { background: #ff5f56; }
.fv-dot-yel  { background: #ffbd2e; }
.fv-dot-grn  { background: #27c93f; }
.fv-title {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.fv-body { padding: 20px; }

/* Metric rows */
.fv-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fv-metric:last-child { border-bottom: none; }
.fv-metric-label { color: var(--text-2); }
.fv-metric-val   { font-weight: 700; font-variant-numeric: tabular-nums; }
.fv-metric-val.pos  { color: var(--green); }
.fv-metric-val.neg  { color: var(--red); }
.fv-metric-val.neu  { color: var(--text); }
.fv-metric-val.blue { color: var(--blue); }

/* Score ring mockup */
.fv-score {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.fv-ring {
  position: relative;
  flex-shrink: 0;
}
.fv-ring svg { transform: rotate(-90deg); }
.fv-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.fv-ring-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fv-ring-sub { font-size: 9px; color: var(--text-3); }

/* Trade cards mockup */
.fv-trade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-2);
  font-size: 12px;
}
.fv-trade:last-child { margin-bottom: 0; }
.fv-trade-sym { font-weight: 700; font-size: 13px; }
.fv-trade-dir {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.dir-long  { background: var(--green-dim); color: var(--green); }
.dir-short { background: var(--red-dim);   color: var(--red); }
.fv-trade-pnl { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Account card mockup */
.fv-account {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-2);
  margin-bottom: 10px;
  font-size: 12px;
}
.fv-account:last-child { margin-bottom: 0; }
.fv-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fv-account-name { font-size: 13px; font-weight: 700; }
.fv-account-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--blue-glow);
  color: var(--blue);
}
.fv-dd-bar {
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin: 6px 0;
}
.fv-dd-fill { height: 100%; border-radius: 2px; }
.fv-dd-label { color: var(--text-3); font-size: 11px; }

/* Platform list mockup */
.fv-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.fv-platform:last-child { border-bottom: none; }
.fv-platform-name { font-weight: 600; }
.fv-platform-type { color: var(--text-3); font-size: 11px; }
.fv-platform-check { color: var(--green); font-size: 11px; font-weight: 700; }

/* Ghost trade card */
.fv-ghost {
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--red-dim);
  margin-bottom: 8px;
  font-size: 12px;
}
.fv-ghost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.fv-ghost-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.fv-ghost p { color: var(--text-2); line-height: 1.55; }

/* ================================================================
   SECTION — STATS
   ================================================================ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-label { text-align: center; margin-bottom: 48px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-block {
  background: var(--bg-0);
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--bg-2); }

.stat-block-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat-block-label { font-size: 13px; color: var(--text-2); }
.stat-block-sub   { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ================================================================
   SECTION — WHY TRADEVIZION (4 pillars)
   ================================================================ */
.why-section { padding: var(--section-pad) 0; }

.why-header { margin-bottom: 56px; }
.why-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.why-header p { font-size: 16px; color: var(--text-2); max-width: 480px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-item {
  background: var(--bg-0);
  padding: 36px 32px;
  transition: background 0.2s;
}
.why-item:hover { background: var(--bg-1); }

.why-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 16px;
}
.why-item h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.why-item p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.why-item .why-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 14px;
}

/* ================================================================
   SECTION — COMPARISON TABLE
   ================================================================ */
.comparison { padding: var(--section-pad) 0; }
.comparison-header { margin-bottom: 40px; }
.comparison-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.comparison-header p { font-size: 15px; color: var(--text-2); max-width: 500px; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table th:first-child { color: var(--text); }
.comparison-table th.th-tv { color: var(--blue); background: var(--blue-glow); }

.comparison-table td {
  padding: 13px 18px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table td.td-tv { background: var(--blue-glow); color: var(--text); font-weight: 500; }
.comparison-table td:first-child { font-weight: 500; color: var(--text-2); }

.ico-yes  { color: var(--green); font-weight: 700; }
.ico-part { color: var(--gold);  font-size: 12px; }
.ico-no   { color: var(--text-3); }

.comparison-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
}
.comparison-note strong { color: var(--text); }

/* ================================================================
   SECTION — PRICING
   ================================================================ */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.pricing-header { text-align: center; margin-bottom: 52px; }
.pricing-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.pricing-header p { font-size: 16px; color: var(--text-2); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured {
  border-color: rgba(59,126,255,0.4);
  background: linear-gradient(160deg, rgba(59,126,255,0.07) 0%, var(--bg-0) 60%);
}

.pricing-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(59,126,255,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pricing-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }

.pricing-amount {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 2px;
}
.pricing-amount .cur { font-size: 26px; font-weight: 600; color: var(--text-2); vertical-align: super; }

.pricing-period { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }

.pricing-sep { height: 1px; background: var(--border); margin: 20px 0; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.pricing-features li.on  { color: var(--text); }
.pricing-features li.off { color: var(--text-3); }

.pf-check { flex-shrink: 0; font-size: 14px; margin-top: 0; line-height: 1.4; }
.pf-check.on  { color: var(--green); }
.pf-check.off { color: var(--text-3); }

.pricing-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.reassure-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
}

/* ================================================================
   SECTION — FAQ
   ================================================================ */
.faq { padding: var(--section-pad) 0; }
.faq-header { margin-bottom: 40px; }
.faq-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  align-items: start;
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  user-select: none;
  transition: background 0.15s;
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.22s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-q { background: rgba(255,255,255,0.03); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-aside {
  position: sticky;
  top: 80px;
}
.faq-aside-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.faq-aside-box h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.faq-aside-box p  { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }

/* ================================================================
   SECTION — FINAL CTA
   ================================================================ */
.final-cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at top, rgba(59,126,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent);
  pointer-events: none;
  z-index: 0;
}

.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.final-cta p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.final-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.final-cta-note { font-size: 12px; color: var(--text-3); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.footer-logo em { font-style: normal; color: var(--blue); }
.footer-brand p { font-size: 13px; color: var(--text-3); line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 12px;
  transition: all 0.15s;
}
.footer-social a:hover { color: var(--text); border-color: var(--border-2); }

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-3); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--text-2); }

/* ================================================================
   SCROLL REVEAL (initial state)
   ================================================================ */
.reveal      { opacity: 0; transform: translateY(20px); }
.reveal-left { opacity: 0; transform: translateX(-20px); }
.reveal-right{ opacity: 0; transform: translateX(20px); }

/* Hero elements — masqués avant animation GSAP on-load */
.hero-el { opacity: 0; will-change: opacity; }

/* Hero position context pour orbs/beam */
.hero { position: relative; overflow: hidden; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .feature-module { grid-template-columns: 1fr; gap: 40px; }
  .feature-module.reverse .feature-info   { order: 1; }
  .feature-module.reverse .feature-visual { order: 2; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }
  .container, .container-wide, .container-narrow { padding: 0 20px; }

  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 56px 0 80px; }
  .hero-stats { flex-direction: column; width: 100%; }
  .hero-stat  { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }

  .problem-header { grid-template-columns: 1fr; gap: 20px; }
  .behavior-grid  { grid-template-columns: 1fr 1fr; }
  .behavior-cell  { border-bottom: 1px solid var(--border); }
  .behavior-cell:nth-child(2n) { border-right: none; }

  .vizi-feed  { grid-template-columns: 1fr; }
  .vizi-card  { border-right: 1px solid var(--border) !important; }
  .vizi-card:nth-child(3n) { border-right: 1px solid var(--border) !important; }
  .vizi-card:last-child    { border-bottom: none; }
  .vizi-caps  { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-block { border-bottom: 1px solid var(--border); }
  .stat-block:nth-child(2n) { border-right: none; }

  .why-grid { grid-template-columns: 1fr; }

  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3),
  .comparison-table th:nth-child(4),
  .comparison-table td:nth-child(4) { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .behavior-grid { grid-template-columns: 1fr; }
  .behavior-cell { border-right: 1px solid var(--border) !important; }
  .vizi-caps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block { border-right: 1px solid var(--border) !important; }
}

/* ================================================================
   SCREENSHOTS — Vrais visuels app
   ================================================================ */
.screenshot-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
  background: var(--bg-1);
  line-height: 0;
  position: relative;
}
.screenshot-wrap img {
  width: 100%;
  display: block;
}

/* ================================================================
   HERO SCREENSHOT — Product preview (Linear.app style)
   ================================================================ */
.hero-screenshot {
  position: relative;
  margin-top: 72px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.hero-screenshot-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(59,126,255,0.28) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.hero-screenshot-frame {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform-style: preserve-3d;
}
.hero-screenshot-frame img {
  width: 100%;
  display: block;
}

/* ================================================================
   HERO ORBS & BEAM — Ambiance visuelle (Linear.app inspired)
   ================================================================ */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(59,126,255,0.09), transparent 70%);
  filter: blur(80px);
  will-change: transform;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  bottom: 0; left: -150px;
  background: radial-gradient(circle, rgba(0,200,150,0.06), transparent 70%);
  filter: blur(80px);
  will-change: transform;
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -40px, 0) scale(1.08); }
}

/* Sweep beam — désactivé (réduire la pression GPU au chargement) */
.hero-beam { display: none; }

/* ================================================================
   VIZI PUNCHLINE & SCREENSHOT
   ================================================================ */
.vizi-punchline {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 22px 28px;
  border-left: 2px solid var(--blue);
  background: rgba(59,126,255,0.04);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}
.vizi-punchline em { color: var(--text); font-style: normal; font-weight: 600; }

.vizi-screenshot-wrap {
  margin: 52px auto 0;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(59,126,255,0.18);
  box-shadow: 0 32px 72px rgba(0,0,0,0.5), 0 0 60px rgba(59,126,255,0.08);
  line-height: 0;
}
.vizi-screenshot-wrap img { width: 100%; display: block; }

/* ================================================================
   PRICING CALLOUT
   ================================================================ */
.pricing-callout {
  text-align: center;
  margin-bottom: 32px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.3;
}
.pricing-callout span { color: var(--green); }
.pricing-callout small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
  margin-top: 4px;
}

/* ================================================================
   COMPARISON AGGRESSIVE TAGS
   ================================================================ */
.comparison-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.comparison-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-1);
}
.comparison-tag.green { color: var(--green); border-color: rgba(0,200,150,0.25); background: var(--green-dim); }
.comparison-tag.blue  { color: var(--blue); border-color: rgba(59,126,255,0.25); background: var(--blue-glow); }

/* ================================================================
   BENTO GRID — Features section (bentogrids.com style)
   ================================================================ */
.bento-section { padding: var(--section-pad) 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.bento-card {
  background: rgba(11, 11, 24, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.035) 0%, transparent 55%);
  pointer-events: none;
}
.bento-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(16, 16, 34, 0.88);
  transform: translateY(-3px);
}

/* Featured card spans 2 columns with side-by-side layout */
.bento-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  flex-direction: unset;
}
.bento-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tags */
.bento-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.bento-tag-blue  { color: var(--blue-2); }
.bento-tag-green { color: var(--green); }
.bento-tag-red   { color: var(--red); }

/* Typography */
.bento-title {
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.13;
  color: var(--text);
}
.bento-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}
.bento-desc strong { color: var(--text); }

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}
.bento-list li {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.bento-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* Mockup area (right side of featured) */
.bento-mockup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

/* Score ring */
.bm-score-ring {
  position: relative;
  width: 90px; height: 90px;
  flex-shrink: 0;
}
.bm-score-ring svg { transform: rotate(-90deg); }
.bm-score-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bm-score-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}
.bm-score-sub { font-size: 9px; color: var(--text-3); }

/* Metric rows */
.bm-metrics { display: flex; flex-direction: column; gap: 5px; }
.bm-metric {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.bm-metric span:first-child { color: var(--text-3); }
.bm-metric .pos  { color: var(--green); font-weight: 700; }
.bm-metric .blue { color: var(--blue); font-weight: 700; }

/* Vizi card insight */
.bm-vizi-insight {
  background: rgba(255,77,109,0.06);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: 10px;
  padding: 14px;
  margin-top: auto;
}
.bm-vizi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bm-vizi-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Journal trades */
.bm-trades { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.bm-trade {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.bm-sym { font-size: 12px; font-weight: 700; margin-right: auto; }

/* Psycho bars */
.bm-bars { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.bm-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
}
.bm-bar-row span:first-child { width: 68px; flex-shrink: 0; }
.bm-bar-row span:last-child  { width: 32px; text-align: right; color: var(--text-2); }
.bm-bar-track {
  flex: 1;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.bm-bar-fill { height: 100%; border-radius: 2px; }

/* Prop Firm account */
.bm-account {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-top: auto;
}
.bm-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}
.bm-acc-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--blue-glow);
  color: var(--blue);
}
.bm-dd-bar {
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bm-dd-fill { height: 100%; border-radius: 2px; }

/* Import platform pills */
.bm-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.bm-platform {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}
.bm-platform-ai {
  color: var(--blue);
  border-color: rgba(59,126,255,0.28);
  background: var(--blue-glow);
}

/* Ghost trades alert */
.bm-ghost-alert {
  background: rgba(255,77,109,0.06);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: 10px;
  padding: 14px;
  margin-top: auto;
}

/* Local data badges */
.bm-local-badges {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}
.bm-local-badge {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  padding: 8px 12px;
  background: rgba(0,200,150,0.06);
  border: 1px solid rgba(0,200,150,0.18);
  border-radius: 8px;
}

/* Per-card accent glows */
.bento-dashboard::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(59,126,255,0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bento-vizi::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,77,109,0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bento-local::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,200,150,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Responsive bento */
@media (max-width: 1024px) {
  .bento-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
    display: flex;
  }
  .bento-mockup { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-featured { grid-column: span 2; }
  .bento-card { padding: 20px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-featured { grid-column: span 1; grid-template-columns: 1fr; display: flex; }
}
