/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: 'Outfit', sans-serif; background: #0C0C0C; color: #e0e0e0; font-size: 16px; overflow-x: hidden; }
button { font-family: 'Outfit', sans-serif; cursor: pointer; }
ul { list-style: none; }
a { text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --bg:        #0C0C0C;
  --surface:   #111111;
  --surface2:  #161616;
  --surface3:  #1E1E1E;
  --border:    #222222;
  --border2:   #2A2A2A;
  --blue:      #4F6EF7;
  --blue-dim:  rgba(79,110,247,0.12);
  --blue-glow: rgba(79,110,247,0.05);
  --green:     #22C55E;
  --white:     #FFFFFF;
  --gray:      #AAAAAA;
  --gray2:     #888888;
  --gray3:     #666666;
  --pad-x:     60px;
  --max-w:     1060px;
  --nav-h:     64px;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  background: rgba(13,13,13,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  gap: 40px;
}
.nav-logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { font-size: 22px; font-weight: 500; color: var(--white); letter-spacing: -0.5px; }
.nav-logo .br { color: var(--white); }
.nav-logo .vl { color: var(--blue); }
.nav-sep { color: var(--border2); font-size: 18px; }
.nav-sub { font-size: 13px; color: var(--gray2); font-weight: 300; }

.nav-links { display: flex; gap: 6px; justify-content: center; align-items: center; }
.nav-links a {
  color: var(--gray);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--blue); background: var(--blue-dim); }

.nav-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* ─── LANGUAGE SWITCHER ─── */
.lang-wrap { position: relative; padding-bottom: 8px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: transparent; border: 1px solid var(--border2); border-radius: 6px;
  color: var(--gray); font-size: 13px; transition: border-color .15s, color .15s;
}
.lang-btn:hover { border-color: #444; color: #ccc; }
.lang-btn .globe { font-size: 14px; }
.lang-btn .chev  { font-size: 9px; color: var(--gray2); margin-left: 1px; }

.lang-dd {
  position: absolute; top: 100%; right: 0;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  display: none; z-index: 200;
}
.lang-dd.open { display: block; }
.lang-dd-sec { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray3); padding: 6px 10px 4px; }
.lang-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.lang-item:hover { background: var(--surface3); }
.lang-item.on { background: rgba(79,110,247,.1); }
.lang-item .fl { font-size: 14px; width: 20px; text-align: center; }
.lang-item .ln { font-size: 13px; color: #ccc; }
.lang-item .lc { font-size: 10px; color: var(--gray2); margin-left: auto; }
.lang-item.on .ln { color: var(--blue); }
.lang-sep { height: 1px; background: var(--border); margin: 4px 0; }

.btn-nav-cta {
  height: 36px; padding: 0 20px;
  background: var(--blue); border: none; border-radius: 6px;
  color: #fff; font-size: 13px; font-weight: 500;
  transition: opacity .15s;
}
.btn-nav-cta:hover { opacity: .88; }

/* ─── QUICK CONTACT POPUP ─── */
.qc-wrap { position: relative; }
.qc-drop {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px; background: #1a1a1a; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 1000;
}
.qc-drop.open { display: block; }
.qc-title { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.qc-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.qc-tab {
  flex: 1; height: 30px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--gray); font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.qc-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.qc-input {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--white); font-size: 13px; margin-bottom: 10px; outline: none;
  font-family: inherit;
}
.qc-input:focus { border-color: var(--blue); }
.qc-submit {
  width: 100%; height: 38px; background: var(--blue); border: none; border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .15s;
  font-family: inherit;
}
.qc-submit:hover { opacity: .88; }
.qc-note { font-size: 11px; color: var(--gray2); text-align: center; margin-top: 8px; }
.qc-success {
  display: none; text-align: center; color: var(--green);
  font-size: 13px; font-weight: 500; padding: 8px 0;
}

/* ─── HAMBURGER ─── */
.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; padding: 5px;
}
.nav-burger span { display: block; height: 2px; background: var(--gray); border-radius: 2px; transition: all .2s; }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(12,12,12,.98); z-index: 98;
  flex-direction: column; padding: 28px 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 15px 0; font-size: 20px; font-weight: 300; color: var(--white); border-bottom: 1px solid var(--border); }
.mobile-cta-btn { margin-top: 24px; padding: 14px; background: var(--blue); border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 500; width: 100%; }
.mobile-langs { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.mobile-langs span { font-size: 13px; color: var(--gray2); cursor: pointer; }
.mobile-langs span.on { color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════ */
.breadcrumb {
  padding: 14px var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--gray3);
}
.breadcrumb a { color: var(--gray3); transition: color .15s; }
.breadcrumb a:hover { color: var(--gray); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .cur { color: var(--gray2); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  padding: 72px var(--pad-x);
  background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(79,110,247,.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-dim); border: 1px solid rgba(79,110,247,.3);
  color: var(--blue); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 3.8vw, 50px); font-weight: 300;
  color: var(--white); line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-size: 16px; color: var(--gray); font-weight: 300;
  line-height: 1.7; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hp { padding: 13px 30px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: opacity .15s; }
.btn-hp.blue { background: var(--blue); border: none; color: #fff; }
.btn-hp.blue:hover { opacity: .88; }
.btn-hp.green { background: var(--green); border: none; color: #000; }
.btn-hp.green:hover { opacity: .88; }
.btn-hp.ghost { background: transparent; border: 1px solid var(--border2); color: var(--gray); transition: border-color .15s, color .15s; }
.btn-hp.ghost:hover { border-color: #444; color: #ccc; }

.hero-media {
  border-radius: 16px; overflow: hidden; background: var(--surface3);
  box-shadow: 0 24px 64px rgba(0,0,0,.5); line-height: 0;
}
.hero-media img { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════
   METRICS
═══════════════════════════════════════════════════════ */
.metrics {
  padding: 48px var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.metrics-inner { max-width: var(--max-w); margin: 0 auto; display: grid; gap: 0; }
.mi { text-align: center; padding: 0 20px; }
.mi:not(:last-child) { border-right: 1px solid var(--border); }
.mi .num {
  font-size: clamp(28px, 4vw, 40px); font-weight: 600;
  color: var(--white); letter-spacing: -1.5px; line-height: 1;
}
.mi .num span { color: var(--blue); font-size: 70%; }
.mi .lbl {
  font-size: 11px; color: var(--gray2); text-transform: uppercase;
  letter-spacing: 1.2px; margin-top: 6px; line-height: 1.4;
}
.mi .sub { font-size: 11px; color: var(--gray3); margin-top: 3px; font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════ */
.prod-section { padding: 80px var(--pad-x); border-bottom: 1px solid var(--border); }
.prod-section.alt { background: var(--surface); }
.prod-section.dark { background: #0a0a0a; }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.sec-eyebrow.green { color: var(--green); }
.sec-h2 {
  font-size: clamp(20px, 2.8vw, 32px); font-weight: 300;
  color: var(--white); letter-spacing: -.5px;
  margin-bottom: 14px; line-height: 1.2;
}
.sec-p {
  font-size: 14px; color: var(--gray2); line-height: 1.75;
  font-weight: 300; margin-bottom: 24px;
}

.section-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.section-inner.flip { direction: rtl; }
.section-inner.flip > * { direction: ltr; }
.section-inner.wide { grid-template-columns: 1fr; max-width: 800px; }
.section-inner.center { grid-template-columns: 1fr; text-align: center; max-width: 760px; }

.sec-media {
  border-radius: 14px; overflow: hidden; background: var(--surface3);
  line-height: 0; box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.sec-media img { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════
   STEPS
═══════════════════════════════════════════════════════ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-dim); border: 1px solid rgba(79,110,247,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.step-title { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--gray2); line-height: 1.6; font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════════════════════ */
.feat-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 18px;
}
.feat-card .fc-icon { font-size: 20px; margin-bottom: 10px; }
.feat-card .fc-title { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.feat-card .fc-desc { font-size: 12px; color: var(--gray2); line-height: 1.6; font-weight: 300; }

/* ─── SPECS TABLE (Kit-specific) ─── */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 12px 0; font-size: 13px; vertical-align: top; }
.specs-table td:first-child { color: var(--gray3); width: 45%; font-weight: 400; }
.specs-table td:last-child { color: var(--gray); font-weight: 300; }

/* ─── FEAT-GRID 2-COL (Kit-specific) ─── */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ─── FEAT-GRID 6 (Workspace-specific) ─── */
.feat-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: var(--max-w); margin: 0 auto; }
.wc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px; transition: border-color .2s;
}
.wc:hover { border-color: rgba(79,110,247,.4); }
.wc .ic { font-size: 24px; margin-bottom: 12px; }
.wc .rl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 7px; }
.wc .wt { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.wc .dc { font-size: 13px; color: var(--gray2); line-height: 1.6; font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   OS-SPECIFIC: PILLARS
═══════════════════════════════════════════════════════ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max-w); margin: 0 auto; }
.pillar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 0;
}
.pillar-icon { font-size: 28px; margin-bottom: 16px; }
.pillar-title { font-size: 17px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.pillar-list { display: flex; flex-direction: column; gap: 10px; }
.pillar-item { display: flex; gap: 10px; align-items: flex-start; }
.pillar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 7px; }
.pillar-text { font-size: 13px; color: var(--gray2); line-height: 1.55; font-weight: 300; }

/* ─── KPI GRID (OS-specific) ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 20px 18px; }
.kpi .kv { font-size: 32px; font-weight: 600; color: var(--white); letter-spacing: -1px; line-height: 1; }
.kpi .kv span { color: var(--blue); font-size: 20px; }
.kpi .kt { font-size: 12px; color: var(--gray2); margin-top: 6px; font-weight: 300; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   WORKSPACE-SPECIFIC: AUDIENCE SPLIT
═══════════════════════════════════════════════════════ */
.aud-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--max-w); margin: 0 auto; }
.aud-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; }
.aud-card.aud-blue { border-color: rgba(79,110,247,.25); background: linear-gradient(135deg, #111 0%, #131a33 100%); }
.aud-card.aud-green { border-color: rgba(34,197,94,.2); background: linear-gradient(135deg, #111 0%, #0f1f14 100%); }
.aud-icon { font-size: 28px; margin-bottom: 16px; }
.aud-title { font-size: 17px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.aud-subtitle { font-size: 12px; color: var(--gray3); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; font-weight: 600; }
.aud-features { display: flex; flex-direction: column; gap: 10px; }
.aud-feat { display: flex; gap: 10px; align-items: flex-start; }
.aud-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
.aud-card.aud-blue .aud-dot { background: var(--blue); }
.aud-card.aud-green .aud-dot { background: var(--green); }
.aud-text { font-size: 13px; color: var(--gray2); line-height: 1.55; font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD-SPECIFIC
═══════════════════════════════════════════════════════ */
/* ─── DASHBOARD MOCKUP ─── */
.dash-mock {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.dash-topbar {
  padding: 12px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-topbar .dt-title { font-size: 13px; font-weight: 500; color: var(--white); }
.dash-topbar .dt-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); }
.dt-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.dash-body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-stat {
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
}
.ds-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray3); margin-bottom: 6px; font-weight: 600; }
.ds-value { font-size: 24px; font-weight: 600; color: var(--white); letter-spacing: -0.5px; line-height: 1; }
.ds-value.green { color: var(--green); }
.ds-sub { font-size: 10px; color: var(--gray3); margin-top: 4px; }
.dash-content { margin: 0 16px 16px; background: var(--surface3); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.dc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dc-row:last-child { margin-bottom: 0; }
.dc-label { font-size: 11px; color: var(--gray2); }
.dc-value { font-size: 11px; color: var(--gray); }
.dc-badge { padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.dc-badge.on { background: rgba(34,197,94,.15); color: var(--green); }

/* ─── PERSPECTIVE TOGGLE ─── */
.persp-wrap { max-width: var(--max-w); margin: 0 auto; }
.persp-tabs { display: flex; gap: 4px; margin-bottom: 32px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; width: fit-content; }
.persp-tab {
  padding: 8px 20px; border-radius: 7px; font-size: 13px; font-weight: 500;
  background: transparent; border: none; color: var(--gray2); cursor: pointer; transition: all .2s;
}
.persp-tab.active { background: var(--surface); color: var(--white); }
.persp-panel { display: none; }
.persp-panel.active { display: block; }
.persp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; }
.pg-icon { font-size: 22px; margin-bottom: 12px; }
.pg-title { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.pg-desc { font-size: 13px; color: var(--gray2); line-height: 1.6; font-weight: 300; }

/* ─── CHURN BLOCK ─── */
.churn-block {
  max-width: var(--max-w); margin: 0 auto;
  background: linear-gradient(135deg, rgba(34,197,94,.05) 0%, rgba(79,110,247,.05) 100%);
  border: 1px solid rgba(34,197,94,.2); border-radius: 16px; padding: 48px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.cb-left .cb-h { font-size: clamp(20px, 2.5vw, 28px); font-weight: 300; color: var(--white); letter-spacing: -.3px; margin-bottom: 14px; }
.cb-left .cb-p { font-size: 14px; color: var(--gray2); line-height: 1.75; font-weight: 300; }
.cb-stats { display: flex; flex-direction: column; gap: 16px; }
.cb-stat { display: flex; align-items: center; gap: 16px; }
.cb-num { font-size: 36px; font-weight: 700; color: var(--green); letter-spacing: -1px; line-height: 1; flex-shrink: 0; }
.cb-text { font-size: 13px; color: var(--gray2); line-height: 1.5; font-weight: 300; }

/* ═══════════════════════════════════════════════════════
   AD PLATFORM-SPECIFIC
═══════════════════════════════════════════════════════ */
/* ─── WHY GRID ─── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max-w); margin: 0 auto; }
.why-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px; }
.wc-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray3); margin-bottom: 16px; }
.wc-stat { font-size: 36px; font-weight: 600; color: var(--white); letter-spacing: -1px; line-height: 1; margin-bottom: 8px; }
.wc-stat span { color: var(--blue); font-size: 24px; }
.wc-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.wc-desc { font-size: 13px; color: var(--gray2); line-height: 1.6; font-weight: 300; }

/* ─── CHANNELS ─── */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--max-w); margin: 0 auto; }
.ch-card { border-radius: 16px; padding: 36px 32px; }
.ch-card.self { background: var(--surface); border: 1px solid var(--border); }
.ch-card.direct { background: linear-gradient(135deg, #0f1330 0%, #111 100%); border: 1px solid rgba(79,110,247,.3); }
.ch-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 20px; }
.ch-card.self .ch-badge { background: rgba(255,255,255,.06); color: var(--gray2); }
.ch-card.direct .ch-badge { background: var(--blue-dim); color: var(--blue); }
.ch-icon { font-size: 32px; margin-bottom: 16px; }
.ch-title { font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.ch-desc { font-size: 14px; color: var(--gray2); line-height: 1.7; font-weight: 300; margin-bottom: 28px; }
.ch-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ch-feat { display: flex; gap: 10px; align-items: flex-start; }
.ch-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 7px; }
.ch-text { font-size: 13px; color: var(--gray2); font-weight: 300; line-height: 1.5; }
.ch-cta { padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; display: inline-block; }
.ch-card.self .ch-cta { background: transparent; border: 1px solid var(--border2); color: var(--gray); transition: border-color .15s, color .15s; }
.ch-card.self .ch-cta:hover { border-color: #444; color: #ccc; }
.ch-card.direct .ch-cta { background: var(--blue); border: none; color: #fff; transition: opacity .15s; }
.ch-card.direct .ch-cta:hover { opacity: .88; }

/* ─── FORMATS GRID ─── */
.formats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: var(--max-w); margin: 0 auto; }
.fmt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; text-align: center; }
.fmt-icon { font-size: 24px; margin-bottom: 12px; }
.fmt-name { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.fmt-spec { font-size: 11px; color: var(--gray3); margin-bottom: 8px; font-family: monospace; }
.fmt-desc { font-size: 12px; color: var(--gray2); line-height: 1.5; font-weight: 300; }

/* ─── AUDIENCE BAR ─── */
.aud-bar { max-width: var(--max-w); margin: 0 auto; }
.ab-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.ab-stat { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.ab-stat .abv { font-size: 36px; font-weight: 700; color: var(--white); letter-spacing: -1px; line-height: 1; }
.ab-stat .abv span { color: var(--green); }
.ab-stat .abl { font-size: 12px; color: var(--gray2); margin-top: 6px; font-weight: 300; line-height: 1.5; }

/* ─── RING BACK ─── */
.ring-back { padding: 52px var(--pad-x); background: var(--surface2); border-bottom: 1px solid var(--border); text-align: center; }
.rb-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray3); margin-bottom: 12px; }
.rb-text { font-size: 14px; color: var(--gray2); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════
   NEXT STACK
═══════════════════════════════════════════════════════ */
.next-stack {
  padding: 52px var(--pad-x);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ns-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray3); margin-bottom: 16px; }
.ns-card {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 28px; transition: border-color .2s;
  text-decoration: none;
}
.ns-card:hover { border-color: rgba(79,110,247,.5); }
.ns-icon { font-size: 24px; }
.ns-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 4px; }
.ns-name { font-size: 16px; font-weight: 500; color: var(--white); }
.ns-arr { font-size: 20px; color: var(--blue); margin-left: 8px; }

/* ═══════════════════════════════════════════════════════
   FOOTER CTA
═══════════════════════════════════════════════════════ */
.fcta-section {
  padding: 80px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.fcta-section h2 {
  font-size: clamp(22px, 3vw, 36px); font-weight: 300;
  color: var(--white); letter-spacing: -.5px; margin-bottom: 10px;
}
.fcta-section p { color: var(--gray2); font-size: 14px; margin-bottom: 36px; }
.fcta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-fc { padding: 13px 28px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.btn-fc.blue { background: var(--blue); border: none; color: #fff; transition: opacity .15s; }
.btn-fc.blue:hover { opacity: .88; }
.btn-fc.ghost { background: transparent; border: 1px solid var(--border2); color: var(--gray); transition: border-color .15s, color .15s; }
.btn-fc.ghost:hover { border-color: #444; color: #ccc; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer { padding: 52px var(--pad-x) 28px; background: #080808; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 220px auto auto; gap: 60px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.fb .nav-logo  { font-size: 18px; margin-bottom: 12px; display: block; }
.fb p { font-size: 12px; color: var(--gray3); line-height: 1.7; }
.fc h4 { font-size: 10px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.fc li { font-size: 13px; color: var(--gray3); margin-bottom: 10px; transition: color .15s; }
.fc li a { color: var(--gray3); text-decoration: none; transition: color .15s; }
.fc li a:hover { color: var(--gray); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #333; flex-wrap: wrap; gap: 12px; }
.fl { display: flex; gap: 12px; flex-wrap: wrap; }
.fl span { cursor: pointer; color: #333; transition: color .15s; }
.fl span:hover { color: #666; }
.fl span.on { color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .nav-links { gap: 6px; }
  .nav-links a { font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-cta { flex-direction: column; align-items: flex-start; width: 100%; max-width: 300px; }
  .btn-hp { width: 100%; text-align: center; }
  .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-inner.flip { direction: ltr; }
  .feat-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .aud-split { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-head { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .mi:not(:last-child) { border-right: none; }
  .pillars { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .churn-block { grid-template-columns: 1fr; gap: 32px; }
  .persp-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .fb { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --pad-x: 20px; }
  .navbar { grid-template-columns: auto auto; gap: 0; }
  .nav-links, .lang-wrap, .btn-nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 52px var(--pad-x) 44px; }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .btn-hp { width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid-6 { grid-template-columns: 1fr; }
  .aud-split { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .ab-head { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .churn-block { padding: 28px 20px; }
  .persp-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .fb { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   RTL (Arabic) OVERRIDES
═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   PLATFORM INDEX (hub page)
═══════════════════════════════════════════════════════ */

/* ─── HERO (centered, text-only) ─── */
.hub-hero {
  padding: 96px var(--pad-x) 80px;
  background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,110,247,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hub-hero-eyebrow {
  display: inline-block;
  background: var(--blue-dim);
  border: 1px solid rgba(79,110,247,.3);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hub-hero h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0 auto 20px;
  max-width: 760px;
}
.hub-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hub-hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--gray);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.7;
}
.hub-hero-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  max-width: 680px;
  font-size: 12px;
  color: var(--gray2);
}
.hub-chain-item {
  padding: 4px 10px;
}
.hub-chain-sep {
  color: var(--blue);
  opacity: .5;
  font-size: 14px;
}
.hub-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hub {
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity .15s;
}
.btn-hub.blue {
  background: var(--blue);
  border: none;
  color: #fff;
}
.btn-hub.blue:hover {
  opacity: .88;
}
.btn-hub.ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--gray);
}
.btn-hub.ghost:hover {
  border-color: #444;
  color: #ccc;
}

/* ─── STACK FLOW (5 cards in horizontal chain) ─── */
.hub-stack {
  padding: 80px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hub-stack-head {
  text-align: center;
  margin-bottom: 52px;
}
.hub-stack-head h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.hub-stack-head p {
  font-size: 14px;
  color: var(--gray2);
  font-weight: 300;
}

.hub-stack-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hub-sf-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
  color: var(--blue);
  opacity: .4;
  font-size: 20px;
}
.hub-sf-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
}
.hub-sf-card:hover {
  border-color: rgba(79,110,247,.5);
  transform: translateY(-4px);
}
.hub-sf-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.hub-sf-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.hub-sf-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.hub-sf-desc {
  font-size: 12px;
  color: var(--gray2);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
  margin-bottom: 18px;
}
.hub-sf-link {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hub-sf-link .arr {
  transition: transform .2s;
}
.hub-sf-card:hover .hub-sf-link .arr {
  transform: translateX(4px);
}

/* ─── ECOSYSTEM ─── */
.hub-ecosystem {
  padding: 80px var(--pad-x);
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}
.hub-ecosystem h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  color: var(--white);
  text-align: center;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.hub-ecosystem .sub {
  text-align: center;
  color: var(--gray2);
  font-size: 14px;
  margin-bottom: 52px;
  font-weight: 300;
}
.hub-eco-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hub-eco-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ─── HOW IT CONNECTS ─── */
.hub-connects {
  padding: 80px var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hub-connects-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hub-connects h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -.5px;
  margin-bottom: 8px;
  text-align: center;
}
.hub-connects .sub {
  text-align: center;
  color: var(--gray2);
  font-size: 14px;
  margin-bottom: 52px;
  font-weight: 300;
}
.hub-connects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hub-cg-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.hub-cg-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  opacity: .25;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 14px;
}
.hub-cg-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.hub-cg-desc {
  font-size: 13px;
  color: var(--gray2);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── FOOTER CTA ─── */
.hub-fcta {
  padding: 80px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hub-fcta h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -.5px;
  text-align: center;
  margin-bottom: 8px;
}
.hub-fcta .sub {
  text-align: center;
  color: var(--gray2);
  font-size: 14px;
  margin-bottom: 48px;
}
.hub-fcta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hub-fcc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.hub-fcc:hover {
  border-color: rgba(79,110,247,.4);
  transform: translateY(-3px);
}
.hub-fcc.green {
  border-color: rgba(34,197,94,.2);
}
.hub-fcc.green:hover {
  border-color: rgba(34,197,94,.5);
}
.hub-fcc-icon {
  font-size: 30px;
  margin-bottom: 16px;
}
.hub-fcc-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.hub-fcc-desc {
  font-size: 13px;
  color: var(--gray2);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}
.hub-fcc-link {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hub-fcc.green .hub-fcc-link {
  color: var(--green);
}
.hub-fcc:not(.green) .hub-fcc-link {
  color: var(--blue);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hub-stack-flow { flex-direction: column; }
  .hub-sf-arrow { transform: rotate(90deg); align-self: center; padding: 4px 0; }
  .hub-connects-grid { grid-template-columns: 1fr 1fr; }
  .hub-fcta-cards { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hub-hero { padding: 60px var(--pad-x) 52px; }
  .hub-connects-grid { grid-template-columns: 1fr; }
  .hub-stack-flow { gap: 0; }
  .hub-sf-arrow { padding: 6px 0; font-size: 16px; }
  .hub-hero-cta { flex-direction: column; align-items: center; }
  .btn-hub { width: 100%; text-align: center; }
}

/* Logo always LTR */
[dir=rtl] .nav-logo { direction: ltr; unicode-bidi: embed; }

/* Dropdowns: flip anchor so they don't overflow the screen */
[dir=rtl] .lang-dd { right: auto; left: 0; }
[dir=rtl] .qc-drop { right: auto; left: 0; }

/* Trust bar numbers: keep LTR so "22M+" / "1,000+" render correctly */
[dir=rtl] .mi .num { direction: ltr; unicode-bidi: embed; }

/* Footer: keep LTR column order (brand left → columns right) — avoids scattered
   text in wide auto-columns. RTL direction applied per-column for text only. */
[dir=rtl] .footer-top { direction: ltr; }
[dir=rtl] .footer-top .fb,
[dir=rtl] .footer-top .fc { direction: rtl; text-align: right; }
[dir=rtl] .fc ul { padding-left: 0; padding-right: 0; }
[dir=rtl] .fb p { text-align: right; }

/* Footer bottom: language switcher order reversed, copyright stays left */
[dir=rtl] .fl { flex-direction: row-reverse; }
[dir=rtl] .footer-bottom { flex-direction: row-reverse; }

/* Navbar: auto columns so Arabic CTA doesn't squeeze nav-links */
[dir=rtl] .navbar { grid-template-columns: auto 1fr auto; }

/* Nav links: tighter gap + smaller font for longer Arabic words */
[dir=rtl] .nav-links { gap: 6px; }
[dir=rtl] .nav-links a { font-size: 13px; white-space: nowrap; }

/* CTA button: compact padding */
[dir=rtl] .btn-nav-cta { padding-left: 14px; padding-right: 14px; font-size: 13px; white-space: nowrap; }

/* Cards, win-grid, cases */
[dir=rtl] .mc, [dir=rtl] .wc, [dir=rtl] .cc-body { text-align: right; }
[dir=rtl] .tc-body { text-align: right; }

/* Contact info: RTL flex flows right→left naturally (icon right, text left).
   Keep LTR for actual URLs / addresses so they read correctly. */
[dir=rtl] .ci-item { text-align: right; }
[dir=rtl] .ci-val,
[dir=rtl] .ci-val a { direction: ltr; unicode-bidi: embed; }

/* How-steps */
[dir=rtl] .hs { text-align: right; }

/* Hero: keep same visual layout (text left, image right) for all languages.
   Grid columns stay LTR; only the text content inside renders RTL. */
[dir=rtl] .hero-inner   { direction: ltr; }
[dir=rtl] .hero-text    { direction: rtl; text-align: right; }
[dir=rtl] .hero-cta     { align-items: flex-start; }

/* Form inputs: email / text are always LTR (email format is LTR) */
[dir=rtl] input[type="email"],
[dir=rtl] input[type="text"],
[dir=rtl] .qc-input { direction: ltr; text-align: left; }

/* Textarea: leave RTL so Arabic speakers can type naturally */

/* Captcha: keep LTR so "1 + 2 = ?" reads left-to-right naturally */
[dir=rtl] .cf-captcha { direction: ltr; }
[dir=rtl] .cf-captcha-hint { direction: rtl; }

/* Form labels */
[dir=rtl] .cf-title, [dir=rtl] .cf-sub { text-align: center; }
[dir=rtl] .cf-field label { text-align: right; display: block; }
