/* ════════════════════════════════════════════════════════════════
   BotArgento v2 — Sala de Operaciones (HUD)
   ════════════════════════════════════════════════════════════════ */

:root{
  /* Palette — anchored to the original brand */
  --bg-0: #04091a;
  --bg-1: #050e1f;
  --bg-2: #081530;
  --text: #e8eefb;
  --muted: #8a9dbe;
  --muted-2: #5d6e8e;

  --primary: #75aadb;
  --primary-2: #c8e3f7;
  --primary-d: #3a6080;
  --accent: #e8b84b;
  --success: #3fdba8;
  --danger:  #ff5470;

  --hud: var(--primary);
  --hud-strong: #a8cde8;
  --grid-line: rgba(117,170,219,.06);
  --frame: rgba(117,170,219,.22);
  --frame-2: rgba(117,170,219,.10);
  --glow: 0 0 24px rgba(117,170,219,.18);

  --radius: 14px;         /* friendlier rounded corners */
  --radius-lg: 20px;
  --ease: cubic-bezier(.2,.6,.2,1);

  /* tech-mono retired — everything uses the friendly sans now */
  --mono: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* surfaces (themable) */
  --surface: linear-gradient(180deg, rgba(8,21,48,.62), rgba(5,14,31,.6));
  --surface-bar: rgba(5,14,31,.72);
  --surface-inset: rgba(117,170,219,.05);
  --badge-bg: rgba(117,170,219,.10);
  --on-primary: #001428;

  --scan-on: 1;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"]{
  --bg-0:#e9eef6;
  --bg-1:#f3f6fc;
  --bg-2:#ffffff;
  --text:#16243f;
  --muted:#56647f;
  --muted-2:#8b97ad;

  --primary:#2f6fc0;
  --primary-2:#1f5aa6;
  --primary-d:#a9c6e8;
  --accent:#bd7d10;
  --success:#1f9d6b;

  --hud: var(--primary);
  --grid-line: rgba(28,52,92,.05);
  --frame: rgba(28,52,92,.14);
  --frame-2: rgba(28,52,92,.07);
  --glow: 0 0 24px rgba(47,111,192,.10);

  --surface:#ffffff;
  --surface-bar: rgba(255,255,255,.85);
  --surface-inset: rgba(47,111,192,.06);
  --badge-bg: rgba(47,111,192,.09);
  --on-primary:#ffffff;

  --scan-on: 0;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; -webkit-font-smoothing:antialiased;}
body{
  margin:0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg-1);
  line-height:1.6;
  overflow-x:clip;
  position:relative;
  min-height:100vh;
  background:
    /* dotted grid */
    radial-gradient(circle at 1px 1px, var(--grid-line) 1px, transparent 0) 0 0 / 24px 24px,
    /* soft glow pools */
    radial-gradient(900px 600px at 80% -10%, rgba(117,170,219,.10), transparent 70%),
    radial-gradient(700px 500px at 10% 30%, rgba(232,184,75,.05), transparent 70%),
    radial-gradient(1200px 900px at 50% 110%, rgba(117,170,219,.06), transparent 70%),
    var(--bg-1);
  background-attachment: fixed;
}
html{ color-scheme: dark; }
html[data-theme="light"]{ color-scheme: light; }
/* suppress transitions during a theme switch (avoids var()-color transition freeze) */
html.theme-switching *{ transition: none !important; }

/* horizontal scan lines (subtle CRT) */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(117,170,219,.02) 0 1px,
    transparent 1px 3px
  );
  pointer-events:none;
  z-index:1;
  opacity: var(--scan-on);
  transition: opacity .25s;
  mix-blend-mode: overlay;
}
/* grain */
body::after{
  content:"";
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity:.02;
  pointer-events:none;
  z-index:2;
  mix-blend-mode: overlay;
}

a{color:inherit; text-decoration:none}
img{display:block; max-width:100%}

.mono{font-family: var(--mono); letter-spacing:.02em;}

/* ─── MATRIX RAIN ─── */
#matrix-rain{
  position:fixed;
  inset:0;
  width:100%; height:100%;
  z-index:0;
  pointer-events:none;
  opacity: var(--rain-alpha);
  transition: opacity .35s;
}

/* ─── FIXED HUD CHROME ─── */
.hud-chrome{
  position:fixed; inset:0;
  z-index:3;
  pointer-events:none;
  opacity:1;
  transition: opacity .25s;
}
.hud-chrome.off{opacity:0;}
.hud-corner{
  position:absolute;
  width:36px; height:36px;
  border:1px solid var(--hud);
  opacity:.45;
}
.hud-corner.tl{ top:12px;    left:12px;    border-right:0; border-bottom:0; }
.hud-corner.tr{ top:12px;    right:12px;   border-left:0;  border-bottom:0; }
.hud-corner.bl{ bottom:12px; left:12px;    border-right:0; border-top:0;    }
.hud-corner.br{ bottom:12px; right:12px;   border-left:0;  border-top:0;    }

.hud-tick{
  position:absolute;
  font-family: var(--mono);
  font-size:10px;
  color: var(--primary);
  opacity:.45;
  letter-spacing:.2em;
}
.hud-tick::before{
  content:"";
  position:absolute;
  background: var(--primary);
}
.hud-tick.top    { top:14px;    left:50%; transform:translateX(-50%); }
.hud-tick.top::before    { left:50%; top:14px; width:1px; height:10px; transform:translateX(-50%); }
.hud-tick.bottom { bottom:14px; left:50%; transform:translateX(-50%); }
.hud-tick.bottom::before { left:50%; bottom:14px; width:1px; height:10px; transform:translateX(-50%); }
.hud-tick.left   { left:14px;   top:50%; transform:translateY(-50%); }
.hud-tick.left::before   { top:50%; left:14px; height:1px; width:10px; transform:translateY(-50%); }
.hud-tick.right  { right:14px;  top:50%; transform:translateY(-50%); }
.hud-tick.right::before  { top:50%; right:14px; height:1px; width:10px; transform:translateY(-50%); }

.hud-status{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:14px;
  align-items:center;
  font-family: var(--mono);
  font-size:11px;
  color: var(--primary);
  opacity:.78;
  padding:6px 14px;
  border:1px solid var(--frame);
  background: rgba(5,14,31,.6);
  backdrop-filter: blur(8px);
}
.hud-sep{opacity:.4;}

/* ─── SIGNAL DOT ─── */
.signal-dot{
  display:inline-block;
  width:6px; height:6px;
  background: var(--success);
  border-radius:50%;
  box-shadow: 0 0 8px var(--success), 0 0 0 2px rgba(63,219,168,.18);
  animation: blink 2.6s ease-in-out infinite;
  flex:0 0 auto;
}
@keyframes blink{
  0%, 60%, 100% { opacity:1; }
  70%, 80%      { opacity:.35; }
}

/* ─── HUD-FRAMED ELEMENTS (bracketed corners) ─── */
.hud-frame{
  position:relative;
  border:1px solid var(--frame);
  background: var(--surface);
  border-radius: var(--radius);
}

/* container */
.container{ width: min(1180px, 92%); margin-inline:auto; position:relative; z-index:4; }

/* ─── HEADER ─── */
header{
  position:sticky; top:0;
  z-index:40;
  background: var(--surface-bar);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--frame);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:24px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family: var(--display);
}
.brand .logo{
  width:36px; height:36px;
  border-radius:6px;
  background:#050e1f;
  border:1px solid var(--frame);
  padding:2px;
  flex:0 0 auto;
}
.brand .logo img{width:100%; height:100%}
.brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand-name{ font-weight:800; font-size:17px; letter-spacing:.5px; }
.brand-sub{ font-size:10px; color: var(--primary); opacity:.7; margin-top:3px; }

.navlinks{
  display:flex; gap:6px; align-items:center;
  font-size:12px;
}
.navlinks a{
  position:relative;
  padding:8px 12px;
  color: var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:500;
  transition: color .2s, background .2s;
  display:inline-flex; gap:8px; align-items:baseline;
  border:1px solid transparent;
}
.navlinks .nav-idx{
  color: var(--primary);
  font-size:9px;
  opacity:.7;
}
.navlinks a:hover{
  color: var(--text);
  background: rgba(117,170,219,.05);
  border-color: var(--frame-2);
}
.navlinks a.active{
  color: var(--text);
  border-color: var(--frame);
  background: rgba(117,170,219,.08);
}

/* ─── CTA ─── */
.cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
  border-radius: var(--radius);
  border:1px solid var(--primary);
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s;
  position:relative;
  box-shadow: 0 0 0 1px rgba(117,170,219,.25), 0 0 24px rgba(117,170,219,.18);
  font-family: var(--body);
}
.cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(117,170,219,.4), 0 0 36px rgba(117,170,219,.35);
  filter: brightness(1.06);
}
.cta-glyph{ font-size:14px; }
.cta-lg{ padding:14px 22px; font-size:15px; }
.cta-ghost{
  background:transparent;
  color: var(--primary);
  border:1px solid var(--frame);
  box-shadow:none;
}
.cta-ghost:hover{
  background: rgba(117,170,219,.06);
  border-color: var(--primary);
  filter:none;
}

/* ─── SECTION HEADS ─── */
section{ padding: 90px 0; position:relative; z-index:4; }
.sect-head{ max-width: 720px; margin: 0 auto 56px; text-align:center; }
.sect-id{
  display:inline-block;
  font-size:11px;
  color: var(--primary);
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:5px 12px;
  border:1px solid var(--frame);
  background: rgba(117,170,219,.05);
  margin-bottom:18px;
}
h1, h2, h3{ font-family: var(--display); letter-spacing:-.02em; font-weight:800; }
h1{ font-size: clamp(38px, 5.4vw, 64px); line-height:1.04; margin:18px 0 22px; }
h2{ font-size: clamp(28px, 3.6vw, 42px); margin:0 0 14px; line-height:1.08; font-weight:700;}
h3{ font-size: clamp(17px, 1.6vw, 19px); margin:0 0 10px; font-weight:700; }
.lead{
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  line-height:1.7;
  margin:0 0 26px;
}
.sub{ color: var(--muted); margin:0; }
.grad{
  background: linear-gradient(110deg, var(--primary) 0%, var(--accent) 80%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.ul{ text-decoration: underline; text-decoration-color: var(--primary-d); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ─── HERO ─── */
.hero{
  padding: 110px 0 60px;
  position:relative;
  z-index:4;
}
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items:center;
  margin-bottom: 56px;
}
.hero-left{ position:relative; }
.mono-tag{
  display:inline-flex; align-items:center; gap:10px;
  padding:7px 14px;
  font-family: var(--mono);
  font-size:11px;
  color: var(--primary);
  letter-spacing:.08em;
  border:1px solid var(--frame);
  background: rgba(117,170,219,.05);
  text-transform:uppercase;
}
.actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin: 28px 0 28px; }
.hero-proof{
  list-style:none; padding:0; margin:0;
  display:flex; gap:8px 22px; flex-wrap:wrap;
  font-size:12px; color: var(--muted);
}
.hero-proof li{ display:inline-flex; align-items:center; gap:8px; letter-spacing:.04em; }

/* ── TERMINAL (right column) ── */
.hero-right{ display:flex; flex-direction:column; gap:18px; }
.terminal{
  overflow:hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 60px rgba(117,170,219,.08);
}
.term-bar{
  display:flex; align-items:center; gap:12px;
  padding:9px 14px;
  background: rgba(8,21,48,.85);
  border-bottom:1px solid var(--frame);
}
.term-dots{ display:flex; gap:6px; }
.term-dots i{
  width:9px; height:9px; border-radius:50%;
  background: rgba(117,170,219,.25);
}
.term-dots i:first-child{ background:#ff5470; }
.term-dots i:nth-child(2){ background:#e8b84b; }
.term-dots i:nth-child(3){ background:#3fdba8; }
.term-title{ font-size:11px; color: var(--muted); flex:1; }
.term-net{ font-size:11px; color: var(--success); }
.term-body{
  padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size:12.5px;
  line-height:1.85;
  color: var(--primary-2);
  background:
    linear-gradient(180deg, rgba(8,21,48,.72), rgba(5,14,31,.6));
}
.term-line{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.term-prompt{ color: var(--accent); margin-right:6px; }
.term-cmd{ color: var(--text); }
.term-out{ color: var(--muted); }
.term-out .ok{ color: var(--success); }
.term-cursor{
  display:inline-block;
  width:8px; height:14px;
  background: var(--primary);
  vertical-align:-2px;
  animation: cursor 1.1s steps(2) infinite;
}
@keyframes cursor{ 50%{opacity:0} }

/* helmet card */
.helmet-card{
  display:flex; align-items:center; gap:18px;
  padding:14px 18px;
  background: linear-gradient(135deg, rgba(8,21,48,.85), rgba(5,14,31,.6));
}
.helmet-card img{
  width:54px; height:54px;
  border:1px solid var(--frame);
  background: #050e1f;
  border-radius: var(--radius);
  padding: 3px;
}
.helmet-meta{ font-size:11px; flex:1; display:grid; gap:5px; }
.helmet-meta .row{ display:flex; justify-content:space-between; gap:18px; }
.helmet-meta .k{ color: var(--muted-2); letter-spacing:.1em; }
.helmet-meta .v{ color: var(--text); }
.helmet-meta .v.ok{ color: var(--success); }

/* ─── LIVE WHATSAPP MVP MOCKUP ──────────────────────────── */
.wa-phone{
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--frame);
  background: #0b141a;        /* WhatsApp dark body */
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 60px rgba(117,170,219,.08);
  border-radius: 6px;
}

.wa-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1f2c33;        /* WhatsApp dark header */
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.wa-back{
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.55);
  flex: 0 0 auto;
}
.wa-avatar{
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #050e1f;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.06);
}
.wa-avatar img{ width: 92%; height: 92%; }
.wa-meta{ display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.wa-name{
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  color: #e9edef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-presence{
  font-size: 11px;
  color: #8696a0;
  display: inline-flex; align-items: center; gap: 6px;
}
.wa-presence .signal-dot{
  width: 5px; height: 5px;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}
.wa-actions{ display: flex; gap: 14px; color: #aebac1; flex: 0 0 auto; }

.wa-body{
  position: relative;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 380px;
  background: #0b141a;
  background-image:
    radial-gradient(rgba(255,255,255,.018) 1px, transparent 1.4px),
    radial-gradient(rgba(255,255,255,.014) 1px, transparent 1.4px);
  background-size: 28px 28px, 44px 44px;
  background-position: 0 0, 14px 22px;
  overflow: hidden;
}

.wa-daydiv{
  align-self: center;
  font-size: 11px;
  color: #aebac1;
  background: rgba(31,44,51,.85);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

/* Message bubbles */
.wa-msg{
  position: relative;
  max-width: 82%;
  padding: 7px 9px 18px;
  font-size: 14px;
  line-height: 1.42;
  border-radius: 8px;
  color: #e9edef;
  white-space: pre-line;
  word-wrap: break-word;
  animation: waIn .3s var(--ease) backwards;
  box-shadow: 0 1px 0.5px rgba(0,0,0,.18);
}
@keyframes waIn{
  from{ opacity: 0; transform: translateY(4px); }
  to{ opacity: 1; transform: none; }
}
.wa-msg.bot{
  align-self: flex-start;
  background: #202c33;
  border-top-left-radius: 0;
}
.wa-msg.user{
  align-self: flex-end;
  background: #005c4b;
  border-top-right-radius: 0;
}
.wa-msg .wa-time{
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 10.5px;
  color: rgba(233,237,239,.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wa-msg.user .wa-time{ color: rgba(233,237,239,.7); }
.wa-msg .wa-checks{
  display: inline-block;
  color: #53bdeb;
  font-size: 12px;
  letter-spacing: -2px;
}

/* Typing indicator */
.wa-msg.typing{
  align-self: flex-start;
  padding: 10px 14px;
  background: #202c33;
  border-top-left-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wa-msg.typing .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(233,237,239,.55);
  animation: waType 1.1s ease-in-out infinite;
}
.wa-msg.typing .dot:nth-child(2){ animation-delay: .15s; }
.wa-msg.typing .dot:nth-child(3){ animation-delay: .30s; }
@keyframes waType{
  0%, 60%, 100%{ opacity: .35; transform: translateY(0); }
  30%         { opacity: 1;   transform: translateY(-2px); }
}

/* Bot heading inside menu messages — bold + emoji */
.wa-msg .wa-head{
  display: block;
  font-weight: 600;
  color: #e9edef;
  margin-bottom: 4px;
}

/* Input bar */
.wa-input{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #1f2c33;
  border-top: 1px solid rgba(255,255,255,.04);
  color: #8696a0;
}
.wa-input-plus{
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #aebac1;
  font-size: 18px;
  line-height: 1;
}
.wa-input-emoji{ display: grid; place-items: center; color: #8696a0; }
.wa-input-text{
  flex: 1;
  background: #2a3942;
  color: #8696a0;
  padding: 8px 12px;
  border-radius: 24px;
  font-size: 13px;
}
.wa-input-mic{ display: grid; place-items: center; color: #aebac1; }

/* MVP context strip below the phone */
.mvp-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--frame);
  background: rgba(8,21,48,.7);
  font-size: 11px;
}
.mvp-cell{
  padding: 11px 14px;
  border-right: 1px solid var(--frame-2);
  display: flex; flex-direction: column; gap: 3px;
}
.mvp-cell:last-child{ border-right: 0; }
.mvp-k{ color: var(--muted-2); letter-spacing: .14em; font-size: 9.5px; }
.mvp-v{ color: var(--text); font-size: 13px; letter-spacing: .02em; }
.mvp-v.ok{ color: var(--success); }

/* Redaction block — for anonymised client name */
.redact{
  display: inline-block;
  font-family: var(--mono);
  letter-spacing: -.05em;
  color: var(--muted);
  opacity: .8;
  transform: translateY(1px);
  user-select: none;
  cursor: help;
}
.wa-msg .redact{
  color: rgba(233,237,239,.5);
}

/* ─── LIVE CHAT PANEL ─── */
.hero-right{ gap: 14px; }
.live-head{ display:flex; justify-content:space-between; align-items:center; }
.live-tag{
  display:inline-flex; align-items:center; gap:9px;
  padding: 6px 12px;
  font-size: 10.5px;
  color: var(--primary);
  letter-spacing:.14em;
  border:1px solid var(--frame);
  background: rgba(117,170,219,.05);
  text-transform: uppercase;
}

.chat-card{
  overflow:hidden;
  display:flex; flex-direction:column;
}
.chat-bar{
  display:flex; align-items:center; gap:10px;
  padding: 9px 12px;
  background: rgba(8,21,48,.85);
  border-bottom: 1px solid var(--frame);
}
.chat-avatar{
  width: 28px; height:28px;
  border-radius: 6px;
  display:grid; place-items:center;
  color: #fff;
  flex: 0 0 auto;
}
.chat-avatar.ig{ background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.chat-avatar.wa{ background: #25d366; color: #001b0e; }
.chat-meta{ display:flex; flex-direction:column; gap:1px; flex:1; min-width:0; }
.chat-name{ font-size: 12.5px; font-weight: 600; color: var(--text); }
.chat-sub{ font-size: 9.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.chat-state{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 9.5px;
  color: var(--success);
  letter-spacing: .12em;
  padding: 3px 8px;
  border: 1px solid rgba(63,219,168,.35);
  background: rgba(63,219,168,.08);
  border-radius: 4px;
}
.chat-state .signal-dot{ width: 5px; height: 5px; }

.chat-body{
  padding: 14px;
  display:flex; flex-direction:column; gap:8px;
  min-height: 168px;
  background:
    linear-gradient(180deg, rgba(8,21,48,.4), rgba(5,14,31,.35));
}
.msg{
  max-width: 78%;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 14px;
  position: relative;
  word-wrap: break-word;
  animation: msgIn .35s var(--ease) backwards;
}
@keyframes msgIn{
  from{ opacity:0; transform: translateY(6px) scale(.96); }
  to  { opacity:1; transform: none; }
}
.msg.user{
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.msg.bot{
  align-self: flex-end;
  background: var(--primary);
  color: #001428;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(117,170,219,.3), 0 0 20px rgba(117,170,219,.18);
}
[data-chat="wa"] .msg.bot{
  background: #25d366;
  color: #001b0e;
  box-shadow: 0 0 0 1px rgba(63,219,168,.4), 0 0 20px rgba(37,211,102,.2);
}
.msg-meta{
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  margin-top: 4px;
  opacity: .7;
}
.msg.user .msg-meta{ color: var(--muted); }
.msg.bot .msg-meta{ color: rgba(0,20,40,.6); }
[data-chat="wa"] .msg.bot .msg-meta{ color: rgba(0,27,14,.55); }

/* typing dots */
.msg.typing{
  align-self: flex-end;
  background: var(--primary);
  color: #001428;
  padding: 9px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}
[data-chat="wa"] .msg.typing{ background: #25d366; color: #001b0e; }
.msg.typing .dots{ display:inline-flex; gap:4px; }
.msg.typing .dots i{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
  animation: typingDot 1.1s ease-in-out infinite;
}
.msg.typing .dots i:nth-child(2){ animation-delay: .15s; }
.msg.typing .dots i:nth-child(3){ animation-delay: .3s; }
@keyframes typingDot{
  0%, 60%, 100%{ opacity: .35; transform: translateY(0); }
  30%         { opacity: 1;   transform: translateY(-2px); }
}

/* lead board */
.lead-board{ overflow:hidden; }
.lead-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 9px 14px;
  font-size: 10.5px;
  color: var(--primary);
  letter-spacing: .12em;
  background: rgba(8,21,48,.85);
  border-bottom: 1px solid var(--frame);
}
.lead-counter{ color: var(--accent); font-weight: 700; }
.lead-list{
  list-style: none; padding: 8px 0; margin: 0;
  display:flex; flex-direction:column; gap: 2px;
  max-height: 168px;
  overflow: hidden;
}
.lead-row{
  display:grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  animation: leadIn .35s var(--ease) backwards;
}
@keyframes leadIn{
  from{ opacity:0; transform: translateY(-8px); }
  to{ opacity:1; transform: none; }
}
.lead-ch{
  width: 18px; height: 18px;
  display:grid; place-items:center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  flex: 0 0 auto;
}
.lead-ch.ig{ background: linear-gradient(135deg, #f09433, #dc2743); color:#fff; }
.lead-ch.wa{ background: #25d366; color:#001b0e; }
.lead-ch.web{ background: rgba(117,170,219,.2); color: var(--primary); border:1px solid var(--frame); }
.lead-name{
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
}
.lead-score{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--success);
  padding: 2px 7px;
  background: rgba(63,219,168,.1);
  border: 1px solid rgba(63,219,168,.3);
  border-radius: 3px;
}
.lead-score.warn{ color: var(--accent); background: rgba(232,184,75,.1); border-color: rgba(232,184,75,.3); }
.lead-time{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: .08em;
}

/* ── STATUS STRIP ── */
.status-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
  position:relative;
}
.ss-cell{
  padding: 4px 28px;
  border-right: 1px solid var(--frame-2);
  display:flex; flex-direction:column; gap:6px;
}
.ss-cell:last-child{ border-right:0; }
.ss-k{ font-size:10px; color: var(--primary); letter-spacing:.14em; }
.ss-v{
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight:800;
  letter-spacing:-.02em;
  background: linear-gradient(180deg, var(--text) 0%, var(--primary-2) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  line-height:1;
}
.ss-d{ font-size:12px; color: var(--muted); letter-spacing:.02em; }

/* ─── MODULES ─── */
.modules{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
}
.mod{
  padding: 22px 22px 18px;
  display:flex; flex-direction:column;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.mod:hover{
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 0 40px rgba(117,170,219,.12);
}
.mod-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
}
.mod-id{
  font-size:10px;
  color: var(--primary);
  letter-spacing:.14em;
}
.mod-icon{
  width:42px; height:42px;
  border:1px solid var(--frame);
  display:grid; place-items:center;
  color: var(--primary);
  margin-bottom:14px;
  background: rgba(117,170,219,.04);
}
.mod-icon svg{ width:20px; height:20px; }
.mod h3{ font-size:17px; margin-bottom:8px; }
.mod p{ color: var(--muted); font-size:14px; line-height:1.65; margin:0 0 16px; }
.mod-foot{
  display:flex; justify-content:space-between;
  font-size:10px;
  color: var(--muted-2);
  letter-spacing:.12em;
  padding-top: 12px;
  border-top: 1px dashed var(--frame-2);
}
.mod-foot .ok{ color: var(--success); }

/* ─── SEQUENCE ─── */
.sequence{
  list-style:none; padding:0; margin:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position:relative;
}
/* connecting horizontal line */
.sequence::before{
  content:"";
  position:absolute;
  left:6%; right:6%;
  top: 78px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 16px);
  opacity:.35;
  z-index:0;
}
.seq-step{
  position:relative;
  padding: 28px 24px;
  z-index:1;
}
.seq-num{ display:flex; flex-direction:column; gap:4px; margin-bottom:20px; }
.seq-phase{ font-size:10px; color: var(--primary); letter-spacing:.18em; }
.seq-n{
  font-family: var(--display);
  font-size: 56px;
  line-height:1;
  font-weight:800;
  background: linear-gradient(180deg, var(--primary-2) 0%, var(--primary) 60%, transparent 110%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.seq-step h3{ font-size:18px; margin-bottom:10px; }
.seq-step p{ color: var(--muted); margin:0 0 18px; font-size:14px; line-height:1.65; }
.seq-bar{
  height:3px;
  background: var(--frame-2);
  overflow:hidden;
}
.seq-bar span{
  display:block; height:100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .8s var(--ease);
}

/* ─── BRIEFING ─── */
.briefing-card{
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 60px rgba(117,170,219,.08);
}
.brf-banner{
  background: linear-gradient(90deg, rgba(232,184,75,.18), rgba(232,184,75,.32), rgba(232,184,75,.18));
  color: var(--accent);
  font-size: 11px;
  letter-spacing:.14em;
  font-weight:700;
  text-align:center;
  padding: 11px 16px;
  border-bottom:1px solid rgba(232,184,75,.32);
  display:flex; align-items:center; justify-content:center; gap:12px;
}
.brf-banner .signal-dot{ background: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 0 2px rgba(232,184,75,.2); }

.brf-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.brf-left{
  padding: 38px 36px;
  border-right: 1px solid var(--frame-2);
}
.brf-right{ padding: 38px 36px; }
.brf-tag{
  display:inline-block;
  padding:5px 12px;
  font-size:11px;
  color: var(--primary);
  border:1px solid var(--frame);
  background: rgba(117,170,219,.05);
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.brf-price{
  display:flex; align-items:flex-end; gap:10px;
  margin-bottom: 16px;
}
.brf-curr{ color: var(--accent); font-family: var(--mono); font-weight:700; padding-bottom:14px; font-size:18px; }
.brf-amount{
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 84px);
  font-weight:800;
  line-height:.9;
  letter-spacing:-.04em;
}
.brf-period{ color: var(--muted); padding-bottom:14px; font-size:18px; }
.brf-offer{
  display:flex; align-items:center; gap:10px;
  font-size:12px;
  color: var(--muted);
  padding: 10px 14px;
  background: rgba(232,184,75,.06);
  border:1px solid rgba(232,184,75,.28);
  margin-bottom: 18px;
}
.brf-offer strong{ color: var(--accent); }
.brf-desc{ color: var(--muted); margin:0 0 24px; font-size:14.5px; line-height:1.7; }

.brf-includes-title{
  font-size: 11px;
  color: var(--accent);
  letter-spacing:.16em;
  margin-bottom: 18px;
}
.brf-list{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:12px;
}
.brf-list li{
  display:grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items:baseline;
  color: var(--text);
  font-size:14px;
  line-height:1.55;
}
.brf-list li > .mono{
  color: var(--primary);
  font-size:10px;
  letter-spacing:.1em;
}
.brf-list li.bonus{ color: var(--accent); }
.brf-list li.bonus > .mono{ color: var(--accent); font-size:14px; line-height:1; }

.brf-foot{
  padding: 14px 36px;
  border-top: 1px solid var(--frame-2);
  font-size:11px;
  color: var(--muted-2);
  text-align:center;
  letter-spacing:.06em;
}

/* ─── FAQ ─── */
.faq-list{ display:flex; flex-direction:column; gap:10px; max-width: 880px; margin: 0 auto; }
.faq-item{ overflow:hidden; transition: border-color .2s; }
.faq-item[open]{ border-color: var(--primary); }
.faq-item summary{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items:center;
  padding: 18px 22px;
  cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.q-id{ color: var(--primary); font-size:11px; letter-spacing:.1em; }
.q-text{ font-family: var(--display); font-size:16px; font-weight:600; color: var(--text); }
.q-chev{
  width:24px; height:24px;
  display:grid; place-items:center;
  color: var(--primary);
  border:1px solid var(--frame);
  font-size:18px;
  line-height:1;
  transition: transform .25s, background .2s;
}
.faq-item[open] .q-chev{
  transform: rotate(45deg);
  background: rgba(117,170,219,.1);
}
.faq-body{ padding: 0 22px 22px 64px; }
.faq-body p{ color: var(--muted); font-size: 14.5px; line-height:1.7; margin:0; }

/* ─── OPERATOR ─── */
.op-card{
  display:grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 36px;
  padding: 36px;
  align-items: stretch;
}
.op-photo{ display:flex; flex-direction:column; gap:12px; }
.op-photo-frame{
  position:relative;
  padding: 8px;
  border:1px solid var(--frame);
  background: rgba(117,170,219,.04);
}
.op-photo-frame img{
  width:100%;
  aspect-ratio: 1;
  object-fit:cover;
  filter: contrast(1.02) saturate(1.03);
  display: block;
  border-radius: 12px;
}
.op-photo-corners i{
  position:absolute; width:10px; height:10px;
  border:2px solid var(--primary);
}
.op-photo-corners i:nth-child(1){ top:-1px; left:-1px;     border-right:0; border-bottom:0; }
.op-photo-corners i:nth-child(2){ top:-1px; right:-1px;    border-left:0;  border-bottom:0; }
.op-photo-corners i:nth-child(3){ bottom:-1px; left:-1px;  border-right:0; border-top:0; }
.op-photo-corners i:nth-child(4){ bottom:-1px; right:-1px; border-left:0;  border-top:0; }
.op-id{
  display:flex; flex-direction:column; gap:4px;
  padding: 12px 14px;
  border:1px solid var(--frame-2);
  background: var(--surface-inset);
  border-radius: 12px;
}
.op-id-name{ color: var(--text); font-weight:600; font-size:14px; }
.op-id-role{ color: var(--muted); font-size:12px; }
.op-body{ display:flex; flex-direction:column; }
.op-name{ font-family: var(--display); font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 14px; letter-spacing:-.02em; }
.op-lead{ color: var(--primary-2); font-size:17px; line-height:1.6; margin:0 0 22px; }
.op-stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin: 0 0 22px; }
.op-stat{ padding: 12px 14px; border:1px solid var(--frame-2); background: rgba(117,170,219,.03); }
.op-k{ font-size:10px; color: var(--primary); letter-spacing:.14em; margin-bottom:6px; }
.op-v{ font-size:13px; color: var(--text); line-height:1.4; }
.op-text{ color: var(--muted); font-size:14.5px; line-height:1.7; margin: 0 0 22px; }
.op-body > .brf-tag{ align-self: flex-start; margin-bottom: 14px; }
.op-body > .cta-ghost{ align-self: flex-start; }

/* ─── UPLINK ─── */
.uplink-card{
  padding: 48px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.28), 0 0 60px rgba(117,170,219,.06);
  background:
    radial-gradient(540px 320px at 70% 30%, var(--surface-inset), transparent 70%),
    var(--surface);
}
.uplink-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  gap: 48px;
  align-items:center;
}
.uplink-left h2{
  font-size: clamp(34px, 4.8vw, 54px);
  line-height:1.04;
  margin:14px 0 18px;
}
.uplink-note{ font-size:12px; color: var(--muted); letter-spacing:.08em; margin: 0 0 24px; }
.uplink-proof{ margin-top: 22px; gap: 8px 18px; font-size:12px; }

/* radar */
.uplink-right{ display:flex; flex-direction:column; align-items:center; gap: 20px; }
.radar{
  position:relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(117,170,219,.10), transparent 70%),
    rgba(8,21,48,.4);
  border: 1px solid var(--frame);
  overflow:hidden;
}
.radar-ring{
  position:absolute; inset:0;
  border:1px solid var(--frame);
  border-radius:50%;
  margin: auto;
}
.radar-ring.r1{ width:88%; height:88%; top:6%; left:6%; }
.radar-ring.r2{ width:60%; height:60%; top:20%; left:20%; opacity:.6; }
.radar-ring.r3{ width:32%; height:32%; top:34%; left:34%; opacity:.4; }
.radar-sweep{
  position:absolute;
  inset:0;
  background: conic-gradient(from 0deg, rgba(117,170,219,.0) 0deg, rgba(117,170,219,.42) 35deg, rgba(117,170,219,0) 60deg);
  animation: sweep 4.5s linear infinite;
  border-radius:50%;
}
@keyframes sweep{ to{ transform: rotate(360deg);} }
.radar-blip{
  position:absolute;
  width:7px; height:7px;
  border-radius:50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: blip 4.5s ease-in-out infinite;
}
.radar-blip.b1{ top:22%; left:60%; animation-delay:.5s;}
.radar-blip.b2{ top:55%; left:30%; animation-delay:1.6s;}
.radar-blip.b3{ top:70%; left:68%; animation-delay:2.4s;}
.radar-blip.b4{ top:38%; left:42%; animation-delay:3.5s;}
@keyframes blip{
  0%, 100%{ opacity:.25; transform:scale(.8); }
  10%, 30%{ opacity:1; transform:scale(1); }
}
.radar-center{
  position:absolute; inset:0;
  display:grid; place-items:center;
}
.radar-center img{
  width: 56px; height: 56px;
  border:1px solid var(--frame);
  background: var(--bg-1);
  padding: 4px;
  border-radius: var(--radius);
}
.radar-readout{
  display:grid; gap:8px;
  font-size:11px;
  width: min(320px, 100%);
  padding: 12px 16px;
  border: 1px solid var(--frame);
  background: rgba(117,170,219,.04);
}
.radar-readout > div{ display:flex; justify-content:space-between; }
.radar-readout .k{ color: var(--muted-2); letter-spacing:.12em; }
.radar-readout .v{ color: var(--text); }
.radar-readout .v.ok{ color: var(--success); }

/* ─── FOOTER ─── */
footer{
  padding: 36px 0 60px;
  border-top: 1px solid var(--frame);
  background: var(--surface-bar);
  position:relative;
  z-index:4;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
}
.footer-brand{ display:flex; align-items:center; gap:14px; }
.footer-brand .logo{ width:36px; height:36px; border:1px solid var(--frame); padding:2px; }
.footer-brand .logo img{width:100%; height:100%}
.footer-brand .brand-name{ font-family: var(--display); font-weight:800; font-size:15px; }
.footer-brand .brand-sub{ color: var(--primary); font-size:10px; opacity:.7; margin-top:3px; }
.footer-links{ display:flex; gap: 18px; font-size:11px; letter-spacing:.1em; color: var(--muted); flex-wrap:wrap; }
.footer-links a{ opacity:.8; transition: opacity .2s, color .2s; }
.footer-links a:hover{ color: var(--primary); opacity:1; }
.footer-copy{ font-size:11px; color: var(--muted-2); letter-spacing:.08em; }

/* ─── FAB ─── */
.fab-whatsapp{
  position:fixed;
  right: 24px;
  bottom: 88px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--success);
  display:grid; place-items:center;
  z-index:9999;
  box-shadow: 0 10px 30px rgba(63,219,168,.35);
}
.fab-whatsapp svg{ width:30px; height:30px; }
.fab-pulse{
  position:absolute; inset:0;
  border-radius:50%;
  border: 2px solid var(--success);
  animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse{
  0%{ transform:scale(1); opacity:.6; }
  100%{ transform:scale(1.5); opacity:0; }
}

/* ─── TWEAKS ─── */
#tw-toggle{
  position:fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 8px 14px;
  background: rgba(5,14,31,.85);
  color: var(--primary);
  border:1px solid var(--frame);
  font-family: var(--mono);
  font-size:11px;
  letter-spacing:.14em;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, color .2s;
}
#tw-toggle:hover{ color: var(--text); border-color: var(--primary); }

#tweaks-panel{
  position:fixed;
  bottom: 60px; right: 24px;
  width: 300px;
  z-index: 9999;
  background: rgba(5,14,31,.95);
  border:1px solid var(--frame);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
#tweaks-panel[hidden]{ display:none; }
.tw-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px;
  border-bottom:1px solid var(--frame);
  color: var(--primary);
  font-size:11px; letter-spacing:.12em;
}
#tw-close{
  background:none; border:0; color: var(--muted); cursor:pointer;
  font-size:18px; line-height:1; padding: 0 4px;
}
#tw-close:hover{ color: var(--text); }
.tw-body{ padding: 16px 14px; display:flex; flex-direction:column; gap:14px; }
.tw-row{
  display:grid; grid-template-columns: 110px 1fr auto; gap:10px; align-items:center;
}
.tw-row label.mono{ font-size:10px; color: var(--muted); letter-spacing:.1em; }
.tw-val{ font-size:11px; color: var(--primary); }
.tw-row input[type="range"]{
  -webkit-appearance:none;
  width:100%;
  background: transparent;
  height:2px;
}
.tw-row input[type="range"]::-webkit-slider-runnable-track{
  height:2px; background: var(--frame); border-radius:2px;
}
.tw-row input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px; height:14px; border-radius:50%;
  background: var(--primary);
  margin-top: -6px;
  box-shadow: 0 0 12px rgba(117,170,219,.5);
  cursor:pointer;
}
.tw-row input[type="range"]::-moz-range-track{ height:2px; background: var(--frame); }
.tw-row input[type="range"]::-moz-range-thumb{ width:14px; height:14px; border:0; border-radius:50%; background: var(--primary); cursor:pointer; }

.tw-swatches{ display:flex; gap:6px; grid-column: 2 / 4; }
.tw-swatches button{
  width:24px; height:24px;
  border:1px solid var(--frame);
  cursor:pointer;
  padding:0;
  transition: transform .15s, border-color .15s;
}
.tw-swatches button.active{ border-color: var(--text); transform: scale(1.1); }

.tw-switch{
  position:relative;
  display:inline-block;
  width: 34px; height: 18px;
  grid-column: 3;
}
.tw-switch input{ opacity:0; width:0; height:0; }
.tw-switch span{
  position:absolute; inset:0;
  background: var(--frame);
  border-radius: 999px;
  transition: background .2s;
  cursor:pointer;
}
.tw-switch span::after{
  content:"";
  position:absolute;
  top:2px; left:2px;
  width:14px; height:14px;
  background: var(--text);
  border-radius:50%;
  transition: transform .2s;
}
.tw-switch input:checked + span{ background: var(--primary); }
.tw-switch input:checked + span::after{ transform: translateX(16px); }

/* ─── REVEAL ─── */
.reveal-on-scroll{ opacity:0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on-scroll.in{ opacity:1; transform:none; }

/* ─── GLITCH (hover) ─── */
.mod:hover h3,
.seq-step:hover h3{
  color: var(--primary);
}
@keyframes glitch{
  0%   { text-shadow: 0 0 0 transparent; transform: translate(0,0); }
  20%  { text-shadow: -1px 0 var(--accent), 1px 0 var(--primary); transform: translate(1px,0); }
  60%  { text-shadow:  1px 0 var(--accent), -1px 0 var(--primary); transform: translate(-1px,0); }
  100% { text-shadow: 0 0 0 transparent; transform: translate(0,0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-right{ order: 2; }
  .modules{ grid-template-columns: repeat(2, 1fr); }
  .sequence{ grid-template-columns: 1fr; }
  .sequence::before{ display:none; }
  .brf-grid{ grid-template-columns: 1fr; }
  .brf-left{ border-right:0; border-bottom:1px solid var(--frame-2); }
  .op-card{ grid-template-columns: 1fr; }
  .uplink-grid{ grid-template-columns: 1fr; }
  .uplink-right{ order: -1; }
  .status-strip{ grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .ss-cell{ border-right:0; }
  .ss-cell:nth-child(odd){ border-right: 1px solid var(--frame-2); }
}
@media (max-width: 720px){
  .navlinks{ display:none; }
  #theme-toggle{ display:none !important; }
  .hud-tick{ display:none; }
  .hud-corner{ width:24px; height:24px; }
  .modules{ grid-template-columns: 1fr; }
  .op-stats{ grid-template-columns: 1fr; }
  .uplink-card,
  .brf-left, .brf-right,
  .op-card{ padding: 28px 22px; }
  .status-strip{ grid-template-columns: 1fr; }
  .ss-cell{ border-right:0 !important; border-bottom: 1px solid var(--frame-2); padding: 16px 24px; }
  .ss-cell:last-child{ border-bottom:0; }
  .uplink-card{ padding: 28px 22px; }
  h1{ font-size: clamp(34px, 9vw, 44px); }
  .hero{ padding: 60px 0 40px; }
  .brand-text{ display:flex; }
  .hud-status{ font-size:9.5px; bottom: 8px; padding: 4px 10px; gap:8px; }

  /* ── radar hidden on mobile ── */
  .uplink-right{ display: none; }
  .uplink-grid{ grid-template-columns: 1fr; gap: 0; }

  /* ── tweaks panel + toggle hidden on mobile ── */
  #tw-toggle,
  #tweaks-panel{ display: none !important; }

  /* ── slimmer WhatsApp panel on mobile ── */
  .wa-phone{ max-width: 100%; }
  .wa-bar{ padding: 8px 10px; gap: 8px; }
  .wa-avatar{ width: 32px; height: 32px; }
  .wa-name{ font-size: 13px; }
  .wa-presence{ font-size: 10px; }
  .wa-actions{ gap: 10px; }
  .wa-body{
    padding: 12px 10px 10px;
    gap: 5px;
    min-height: 320px;
    background-size: 22px 22px, 34px 34px;
  }
  .wa-daydiv{ font-size: 10px; padding: 3px 8px; }
  .wa-msg{
    max-width: 86%;
    font-size: 13px;
    padding: 6px 8px 16px;
    line-height: 1.38;
  }
  .wa-msg .wa-head{ font-size: 13px; margin-bottom: 3px; }
  .wa-msg .wa-time{ font-size: 9.5px; bottom: 3px; right: 6px; }
  .wa-input{ padding: 6px 8px; gap: 8px; }
  .wa-input-text{ font-size: 12px; padding: 6px 10px; }
  .wa-input-plus{ width: 22px; height: 22px; font-size: 16px; }

  .mvp-strip{ font-size: 10px; }
  .mvp-cell{ padding: 9px 10px; }
  .mvp-k{ font-size: 9px; }
  .mvp-v{ font-size: 12px; }

  /* ── slim footer on mobile: links + copyright, no brand block ── */
  .footer-brand{ display: none; }
  footer{ padding: 24px 0 80px; }   /* room for WA FAB */
  .footer-inner{
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .footer-links{
    justify-content: center;
    gap: 14px 18px;
    font-size: 11px;
  }
  .footer-copy{
    font-family: var(--body);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0;
    text-align: center;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .signal-dot, .radar-sweep, .radar-blip, .fab-pulse, .term-cursor{ animation: none; }
  .reveal-on-scroll{ opacity:1; transform:none; }
}

/* ════════════════════════════════════════════════════════════════
   v4 — FRIENDLY LAYER (new components, rounding, light overrides)
   ════════════════════════════════════════════════════════════════ */

/* friendly hero pill */
.soft-tag{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 16px;
  font-size:13px; font-weight:500;
  color: var(--primary);
  background: var(--badge-bg);
  border:1px solid var(--frame);
  border-radius:999px;
}

/* pricing checkmarks (replaces mono index numbers) */
.brf-check{
  display:inline-grid; place-items:center;
  width:22px; height:22px;
  border-radius:50%;
  background: var(--badge-bg);
  color: var(--primary);
  font-size:12px; font-weight:700;
}
.brf-list li.bonus .brf-check{ background: rgba(232,184,75,.16); color: var(--accent); }

/* softer, rounded pills + insets across the page */
.sect-id, .soft-tag, .live-tag, .brf-tag{ border-radius:999px; }
.mod-icon, .op-stat, .brf-offer, .radar-readout, .mvp-strip{ border-radius:12px; }
.mvp-strip{ overflow:hidden; }
.q-chev{ border-radius:9px; }
.brand .logo, .footer-brand .logo{ border-radius:10px; }

/* theme toggle button */
#theme-toggle{
  position:fixed; right:24px; bottom:24px; z-index:9999;
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px;
  border-radius:999px;
  background: var(--surface-bar);
  color: var(--text);
  border:1px solid var(--frame);
  font-family: var(--body);
  font-size:13px; font-weight:500;
  cursor:pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: border-color .2s, color .2s, transform .15s;
}
#theme-toggle:hover{ border-color: var(--primary); transform: translateY(-1px); }
.tt-icon{ display:inline-grid; place-items:center; color: var(--primary); }
.tt-moon{ display:none; }
.tt-sun{ display:inline-grid; }
[data-theme="light"] .tt-sun{ display:none; }
[data-theme="light"] .tt-moon{ display:inline-grid; }

/* light-theme fine-tuning */
[data-theme="light"] body::after{ opacity:.012; }
[data-theme="light"] .briefing-card,
[data-theme="light"] .uplink-card{ box-shadow: 0 24px 60px rgba(28,52,92,.10); }
[data-theme="light"] .wa-phone{ box-shadow: 0 24px 60px rgba(28,52,92,.16); }
[data-theme="light"] .mod:hover{ box-shadow: 0 14px 36px rgba(28,52,92,.13); }
[data-theme="light"] .navlinks a:hover,
[data-theme="light"] .navlinks a.active{ background: var(--surface-inset); }
[data-theme="light"] #theme-toggle{ box-shadow: 0 8px 24px rgba(28,52,92,.12); }
[data-theme="light"] .sect-id,
[data-theme="light"] .soft-tag,
[data-theme="light"] .live-tag,
[data-theme="light"] .brf-tag{ background: var(--badge-bg); }

/* ─── 3-PLAN PRICING (friendly) ─── */
.brf-banner-top{
  background: var(--badge-bg);
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing:.01em;
  font-weight:600;
  text-align:center;
  padding: 12px 18px;
  border:1px solid var(--frame);
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center; gap:12px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.brf-banner-top .signal-dot{ background: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 0 2px rgba(232,184,75,.2); }

.plan-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan-card{
  display:flex;
  flex-direction:column;
  padding: 32px 28px;
  position:relative;
  overflow:hidden;
  border-radius: var(--radius-lg);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.plan-card:hover{ transform: translateY(-4px); border-color: var(--primary); }
.plan-card .brf-price{ margin-bottom: 14px; }
.plan-card .brf-amount{ font-size: clamp(38px, 4.2vw, 54px); }
.plan-card .brf-curr,
.plan-card .brf-period{ padding-bottom:10px; font-size:16px; }
.plan-sub{
  color: var(--muted);
  font-size: 14.5px;
  line-height:1.65;
  margin: 0 0 22px;
}
.plan-card .brf-includes-title{ margin-top: 2px; }
.plan-card .brf-list{ flex: 1 1 auto; }
.plan-card .brf-offer{ margin-bottom: 18px; }
.plan-cta{
  margin-top: 26px;
  width:100%;
  justify-content:center;
}
.plan-card--featured{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(232,184,75,.28), 0 24px 60px rgba(0,0,0,.28), 0 0 50px rgba(232,184,75,.10);
  background:
    linear-gradient(180deg, rgba(232,184,75,.07), rgba(232,184,75,0) 260px),
    var(--surface);
}
.plan-card--featured:hover{ border-color: var(--accent); }
.plan-ribbon{
  position:absolute;
  top:0; right:0;
  background: var(--accent);
  color:#0a0e16;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  padding: 6px 14px;
  border-bottom-left-radius: 12px;
}
.brf-tag--accent{ color: var(--accent); border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.10); }
.plan-foot{
  text-align:center;
  font-size:13px;
  color: var(--muted-2);
  letter-spacing:.01em;
  margin: 26px 0 0;
}
[data-theme="light"] .plan-card--featured{ box-shadow: 0 0 0 1px rgba(189,125,16,.3), 0 24px 60px rgba(28,52,92,.10); }
[data-theme="light"] .plan-card:hover{ box-shadow: 0 16px 40px rgba(28,52,92,.12); }

/* ─── DEMO PREVIEW (replaces radar in contact) ─── */
.demo-preview{
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 260px at 80% 0%, var(--surface-inset), transparent 70%),
    var(--surface);
  height: 100%;
  display:flex; flex-direction:column; gap: 18px;
}
.demo-preview-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.demo-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.demo-list li{ display:flex; align-items:flex-start; gap:14px; }
.demo-ic{
  flex: 0 0 auto;
  display:inline-grid; place-items:center;
  width:44px; height:44px;
  border-radius:12px;
  background: var(--badge-bg);
  color: var(--primary);
  border:1px solid var(--frame);
}
.demo-list li div{ display:flex; flex-direction:column; gap:2px; }
.demo-list li strong{ color: var(--text); font-size:15.5px; font-weight:600; }
.demo-list li span{ color: var(--muted); font-size:13.5px; line-height:1.5; }
.demo-foot{
  display:flex; align-items:center; gap:10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--frame-2);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 860px){
  .plan-grid{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND — Aurora (slow drifting glow)
   ═══════════════════════════════════════════════════════════════ */
#bg-fx{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
body{ background: var(--bg-1); }

.bgfx-aurora{ position:absolute; inset:0; --aur-op:.55; }
[data-theme="light"] .bgfx-aurora{ --aur-op:.4; }
.bgfx-aurora .blob{
  position:absolute; border-radius:50%;
  filter: blur(72px); opacity: var(--aur-op);
  will-change: transform;
}
.bgfx-aurora .b1{
  width:48vw; height:48vw; left:-10vw; top:-14vw;
  background: radial-gradient(circle, var(--primary), transparent 68%);
  animation: aur1 28s ease-in-out infinite alternate;
}
.bgfx-aurora .b2{
  width:42vw; height:42vw; right:-12vw; top:8vh;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: calc(var(--aur-op) * .7);
  animation: aur2 34s ease-in-out infinite alternate;
}
.bgfx-aurora .b3{
  width:50vw; height:50vw; left:18vw; bottom:-24vw;
  background: radial-gradient(circle, var(--success), transparent 72%);
  opacity: calc(var(--aur-op) * .55);
  animation: aur3 30s ease-in-out infinite alternate;
}
@keyframes aur1{ from{ transform:translate3d(0,0,0) scale(1);} to{ transform:translate3d(8vw,6vh,0) scale(1.15);} }
@keyframes aur2{ from{ transform:translate3d(0,0,0) scale(1);} to{ transform:translate3d(-7vw,10vh,0) scale(1.1);} }
@keyframes aur3{ from{ transform:translate3d(0,0,0) scale(1);} to{ transform:translate3d(6vw,-8vh,0) scale(1.18);} }
@media (prefers-reduced-motion: reduce){ .bgfx-aurora .blob{ animation:none; } }
