/* ============================================================
   COTES AI - Global Styles
   ============================================================ */

:root {
  --bg:         #0F1B2E;   /* Observatory Navy */
  --bg2:        #0B1422;   /* deep */
  --bg3:        #16243C;   /* Beacon Navy */
  --border:     rgba(199,200,204,0.10);
  --primary:    #D4A14A;   /* Signal Gold */
  --primary-d:  #A87B2E;
  --accent:     #E2B868;   /* gold soft */
  --up:         #00e5b0;   /* UP/YES — kept */
  --down:       #ff4d6d;   /* DOWN/NO — kept */
  --text:       #C7C8CC;   /* Silver Platinum */
  --muted:      #8b8e96;
  --card:       rgba(199,200,204,0.05);
  --card-hover: rgba(199,200,204,0.08);
  --font:       'Montserrat', sans-serif;
  --display:    'Cinzel', Georgia, serif;
  --mono:       'JetBrains Mono', monospace;
  --radius:     14px;
  --radius-sm:  8px;
  --glow:       0 0 40px rgba(212,161,74,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.2; font-weight: 600; letter-spacing: 0.01em; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section { padding: 120px 0; }
.section-dark { background: var(--bg2); }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #0B1422;
  box-shadow: 0 0 24px rgba(212, 161, 74,0.4);
}
.btn-primary:hover {
  background: var(--primary-d);
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(212, 161, 74,0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-nav {
  background: var(--primary);
  color: #0B1422;
  padding: 9px 20px;
  font-size: 0.88rem;
  box-shadow: 0 0 20px rgba(212, 161, 74,0.35);
}
.btn-nav:hover { background: var(--primary-d); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(-2deg); }
}
@keyframes logScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes bar-dance {
  0%, 100% { transform: scaleY(var(--min)); }
  50%       { transform: scaleY(var(--max)); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, border-bottom 0.3s;
}
#navbar.scrolled {
  background: rgba(8,9,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.logo-svg {
  height: 28px;
  width: auto;
  display: block;
}
.footer-brand .logo-svg {
  height: 32px;
}
.logo-mark {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}
.logo-word {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-brand .logo-mark { height: 34px; width: 34px; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 82% 0%, rgba(212,161,74,0.10), transparent 60%),
    radial-gradient(820px 480px at 6% 8%, rgba(22,36,60,0.55), transparent 55%);
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 28px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
.hero-carousel { position: relative; }
.hc-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.95);
}
.hc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.hc-slide.active { opacity: 1; }
.hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hc-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--border);
  transition: all 0.3s ease;
}
.hc-dot:hover { background: var(--muted); }
.hc-dot.active { width: 24px; background: var(--primary); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 161, 74,0.12);
  border: 1px solid rgba(212, 161, 74,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 780px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  width: fit-content;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.hstat {
  padding: 0 32px;
  text-align: center;
}
.hstat:first-child { padding-left: 0; }
.hstat-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--mono);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hstat-unit { font-size: 1rem; font-weight: 600; color: var(--muted); }
.hstat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hstat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-line 2s infinite;
}

/* ── TICKER BAR ── */
.ticker-bar {
  background: rgba(212, 161, 74,0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker-move 24s linear infinite;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tick-name { color: var(--muted); }
.tick-up   { color: var(--up); }
.tick-down { color: var(--down); }
.tick-prob {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.78rem;
}

/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 60px;
}
.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
  border-color: rgba(212, 161, 74,0.4);
  transform: translateY(-4px);
}
.step-num {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.step-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.step-tech {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0.7;
}
.step-arrow {
  font-size: 1.6rem;
  color: var(--muted);
  align-self: center;
  padding-top: 20px;
  flex-shrink: 0;
}

/* ── SIGNAL PREVIEW ── */
.split-text { max-width: 520px; }
.split-text .section-sub { max-width: 100%; }
.check-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.check-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
}
.split-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 280px;
  background: #16243C;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212, 161, 74,0.15);
  animation: float-phone 4s ease-in-out infinite;
}
.phone-bar {
  height: 32px;
  background: #0B1422;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.phone-screen {
  padding: 0;
  background: #0B1422;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.tg-name { font-size: 0.85rem; font-weight: 600; }
.tg-online { font-size: 0.7rem; color: var(--accent); }
.tg-messages {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.tg-msg {
  background: rgba(255,255,255,0.05);
  border-radius: 12px 12px 12px 2px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  max-width: 90%;
}
.tg-msg.show { opacity: 1; transform: translateY(0); }
.tg-msg-up   { border-left: 3px solid var(--up); }
.tg-msg-down { border-left: 3px solid var(--down); }
.tg-msg-win  { border-left: 3px solid var(--up); background: rgba(226, 184, 104,0.08); }
.tg-msg-skip { border-left: 3px solid var(--muted); }
.tg-msg .dir-up   { color: var(--up);   font-weight: 700; }
.tg-msg .dir-down { color: var(--down); font-weight: 700; }
.tg-msg .dir-win  { color: var(--up);   font-weight: 700; }
.tg-time { font-size: 0.65rem; color: var(--muted); margin-top: 4px; text-align: right; }

/* ── PRODUCTS ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.product-card:hover {
  border-color: rgba(212, 161, 74,0.35);
  transform: translateY(-3px);
}
.product-card--featured {
  border-color: rgba(212, 161, 74,0.3);
  background: linear-gradient(135deg, rgba(212, 161, 74,0.08) 0%, rgba(226, 184, 104,0.04) 100%);
}
.product-card--dim { opacity: 0.7; }
.product-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--primary);
  color: #0B1422;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-icon { font-size: 2rem; margin-bottom: 16px; }
.product-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.product-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.product-features li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-features li::before {
  content: '›';
  color: var(--primary);
  flex-shrink: 0;
}
.product-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(212, 161, 74,0.1);
  border: 1px solid rgba(212, 161, 74,0.2);
  padding: 4px 12px;
  border-radius: 6px;
}
.coming-soon {
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

/* ── TECHNOLOGY ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 48px;
}
.tech-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s;
}
.tech-block:hover { border-color: rgba(212, 161, 74,0.3); }
.tech-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tech-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tech-block h4 { font-size: 1.05rem; }
.tech-block p  { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.stack-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stack-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
}
.stack-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }

/* ── PERFORMANCE ── */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 48px;
}
.perf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.perf-card:hover { border-color: rgba(212, 161, 74,0.3); transform: translateY(-3px); }
.perf-big {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  margin-bottom: 8px;
}
.up-color { color: var(--up); }
.perf-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.perf-sub { font-size: 0.78rem; color: var(--muted); }

/* ── SIGNAL LOG ── */
.signal-log {
  background: #0B1422;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.log-title { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.log-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent);
}
.log-body {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.log-scroll {
  animation: logScroll 18s linear infinite;
}
.log-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.log-event { font-weight: 700; width: 44px; flex-shrink: 0; }
.log-event.fire { color: var(--primary); }
.log-event.close { color: var(--accent); }
.log-ts   { color: var(--muted); width: 100px; flex-shrink: 0; }
.log-call.UP   { color: var(--up); font-weight: 700; }
.log-call.DOWN { color: var(--down); font-weight: 700; }
.log-call.SKIP { color: var(--muted); }
.log-prob { color: var(--text); width: 56px; }
.log-outcome.win  { color: var(--up); }
.log-outcome.loss { color: var(--down); }
.log-meta { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── CTA ── */
.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
#ctaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-inner .section-sub { text-align: center; }
.cta-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  width: 300px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.cta-input:focus { border-color: var(--primary); }
.cta-input::placeholder { color: var(--muted); }
.cta-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.cta-success {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  animation: fadeUp 0.5s ease;
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-inner {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 28px 0;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-disclaimer { max-width: 480px; text-align: right; }

/* Spectrum bars */
.spectrum-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  margin-top: 52px;
  opacity: 0.55;
}
.s-bar {
  width: 5px;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: bar-dance var(--dur, 1.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  background: linear-gradient(to top, var(--primary), var(--accent));
}

/* Card shimmer on reveal */
.step.visible::after,
.product-card.visible::after,
.tech-block.visible::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.055) 50%, transparent 60%);
  background-size: 400px 100%;
  animation: shimmer 0.7s ease forwards;
  pointer-events: none;
}
.step, .product-card, .tech-block { position: relative; overflow: hidden; }

/* Typewriter cursor */
.badge-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

/* Responsive */
@media (max-width: 900px) {
  .container-split { grid-template-columns: 1fr; gap: 60px; }
  .split-visual { order: -1; }
  .steps { flex-direction: column; }
  .step-arrow { align-self: flex-start; padding: 0 0 0 14px; transform: rotate(90deg); }
  .products-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .btn-nav { display: none; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 20px; padding: 20px; }
  .hstat-divider { width: 60px; height: 1px; }
  .hstat { padding: 0; }
  .perf-grid { grid-template-columns: 1fr; }
  .cta-input { width: 100%; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
}

/* ============================================================
   Legal pages (terms / privacy) — markdown-rendered, themed via
   the variables above so brand harmonization cascades here too.
   ============================================================ */
.legal-page { padding: 140px 0 100px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.legal { color: var(--text); font-size: 15px; line-height: 1.75; }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal h2 {
  font-size: 1.35rem;
  color: #fff;
  margin: 2.6rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.8rem 0 0.6rem;
}
.legal p { margin: 0.9rem 0; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(226, 184, 104, 0.4);
}
.legal a:hover { color: var(--primary); text-decoration-color: var(--primary); }
.legal strong { color: #fff; font-weight: 600; }
.legal em { color: var(--text); }
.legal ul, .legal ol { margin: 0.9rem 0; padding-left: 1.5rem; }
.legal li { margin: 0.45rem 0; }
.legal li::marker { color: var(--primary); }
.legal blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
  color: var(--muted);
}
.legal hr { border: 0; height: 1px; background: var(--border); margin: 2rem 0; }
.legal code {
  font-family: var(--mono);
  background: var(--card);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.legal table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--card); color: #fff; }
.legal-contact {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-contact a { color: var(--accent); }
