/* ═══════════════════════════════════════════════
   ConsentOS Landing Page — Design System
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0B1F3A;
  --navy-mid: #112845;
  --navy-light: #1A3660;
  --cyan: #00B4D8;
  --cyan-dim: #0077A8;
  --teal: #00D4B4;
  --amber: #F4A261;
  --red: #E63946;
  --green: #2DC653;
  --gray: #8899AA;
  --gray-light: #C8D8E8;
  --surface: #0F2744;
  --surface-high: #162F50;
  --white: #F0F6FF;
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'DM Mono', monospace; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ═══ ANIMATIONS ═══ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,180,216,0.05); }
  50% { box-shadow: 0 0 40px rgba(0,180,216,0.08); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bar-grow {
  from { width: 0; }
  to { width: var(--pct); }
}
@keyframes type-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ═══ COLORS ═══ */
.c-cyan { color: var(--cyan); }
.c-teal { color: var(--teal); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-gray { color: var(--gray); }
.c-white { color: var(--white); }
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-teal { background: rgba(0,212,180,0.13); color: var(--teal); border: 1px solid rgba(0,212,180,0.25); }
.badge-green { background: rgba(45,198,83,0.13); color: var(--green); border: 1px solid rgba(45,198,83,0.25); }
.badge-amber { background: rgba(244,162,97,0.13); color: var(--amber); border: 1px solid rgba(244,162,97,0.25); }
.badge-cyan { background: rgba(0,180,216,0.13); color: var(--cyan); border: 1px solid rgba(0,180,216,0.25); }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--gray-light);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--navy-light);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--cyan-dim); color: var(--white); }

/* ═══ LIVE DOT ═══ */
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ═══ LOGO ═══ */
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--navy);
  flex-shrink: 0;
}
.logo-mark-sm { width: 24px; height: 24px; font-size: 12px; border-radius: 5px; }
.logo-text { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }

/* ═══ NAV ═══ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  background: rgba(17,40,69,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  animation: glow-pulse 4s ease-in-out infinite;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-divider { width: 1px; height: 20px; background: var(--navy-light); }
.nav-version { font-size: 11px; color: var(--gray); }

/* ═══ HERO ═══ */
#hero {
  padding: 140px 24px 80px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero-text { animation: fade-in 0.6s ease; }
.hero-text .badge { margin-bottom: 20px; }
.hero-text h1 {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; line-height: 1.6; color: var(--gray);
  max-width: 520px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.trust-signals {
  font-size: 11px; color: var(--gray); display: flex; gap: 8px; flex-wrap: wrap;
}
.trust-sep { color: var(--navy-light); }

/* Hero code block */
.hero-visual { animation: slide-in-right 0.8s ease 0.2s both; }
.code-block {
  background: var(--surface);
  border: 1px solid var(--navy-light);
  border-radius: 10px;
  overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--navy-light);
  background: var(--navy-mid);
}
.code-label { font-size: 11px; color: var(--gray-light); }
.code-latency { margin-left: auto; font-size: 10px; color: var(--amber); }
.code-block pre {
  padding: 20px; font-size: 12.5px; line-height: 1.7;
  color: var(--gray-light); overflow-x: auto;
}

/* ═══ TICKER ═══ */
#ticker {
  height: 28px;
  background: var(--navy-light);
  border-bottom: 1px solid var(--navy-mid);
  overflow: hidden;
  display: flex; align-items: center;
}
.ticker-label {
  padding: 0 12px; font-size: 10px; color: var(--cyan); font-weight: 700;
  border-right: 1px solid rgba(0,119,168,0.27);
  margin-right: 14px; white-space: nowrap; flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-scroll {
  display: flex; gap: 40px; white-space: nowrap;
  animation: ticker 25s linear infinite;
  font-size: 10px; color: var(--gray-light);
}
.ticker-scroll span { display: inline-flex; gap: 6px; }

/* ═══ SECTIONS ═══ */
section { padding: 100px 0; }
.section-label {
  font-size: 10px; color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 48px;
}

/* ═══ FEATURES ═══ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--navy-light);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.feature-icon { font-size: 22px; color: var(--accent); margin-bottom: 12px; }
.feature-stat {
  font-size: 10px; color: var(--accent); letter-spacing: 0.08em;
  margin-bottom: 12px; padding: 3px 8px;
  background: rgba(0,180,216,0.08); border-radius: 3px;
  display: inline-block;
}
.feature-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 13px; line-height: 1.6; color: var(--gray); }

/* ═══ HOW IT WORKS ═══ */
#how-it-works { background: var(--surface); }
.flow-container {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  overflow-x: auto; padding-bottom: 8px;
}
.flow-step { text-align: center; flex-shrink: 0; }
.flow-num {
  font-size: 10px; color: var(--cyan); letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.flow-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 8px;
  padding: 24px 20px;
  min-width: 160px;
}
.flow-card .flow-icon { font-size: 24px; color: var(--cyan); margin-bottom: 10px; }
.flow-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.flow-card p { font-size: 11px; color: var(--gray); }
.flow-connector {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 8px 0;
}
.flow-line {
  width: 32px; height: 1px;
  border-top: 2px dashed var(--cyan-dim);
}
.flow-arrow { display: none; }

/* ═══ COMPLIANCE ═══ */
.compliance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.bar-item { margin-bottom: 20px; }
.bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 8px;
}
.bar-pct { font-size: 12px; color: var(--gray-light); }
.bar-track {
  height: 5px; background: var(--navy-light); border-radius: 3px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--bar-color);
  width: 0;
  transition: width 1.2s ease;
}
.bar-fill.animated { width: var(--pct); }
.bar-code { font-size: 9px; color: var(--gray); margin-top: 4px; display: block; }

.compliance-controls {
  background: var(--surface);
  border: 1px solid var(--navy-light);
  border-radius: 8px;
  padding: 24px;
}
.compliance-controls h3 {
  font-size: 11px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.control-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-light);
  font-size: 12px;
}
.control-item:last-child { border-bottom: none; }
.control-check {
  color: var(--green); font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.control-item > div { flex: 1; }
.control-code {
  font-size: 10px; color: var(--cyan); display: block; margin-bottom: 2px;
}
.control-item .badge { flex-shrink: 0; font-size: 9px; padding: 2px 8px; }

/* ═══ WAITLIST ═══ */
#waitlist {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.waitlist-inner { position: relative; z-index: 1; }
.waitlist-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.waitlist-sub {
  font-size: 16px; color: var(--gray); line-height: 1.6;
  max-width: 520px; margin: 0 auto 36px;
}
#waitlist-form { max-width: 480px; margin: 0 auto; }
.waitlist-row {
  display: flex; gap: 10px;
}
.waitlist-row input {
  flex: 1; padding: 12px 16px;
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-row input:focus { border-color: var(--cyan-dim); }
.waitlist-row input::placeholder { color: var(--gray); }
#waitlist-msg {
  min-height: 24px; margin-top: 12px;
  font-size: 12px;
}
.waitlist-disclaimer {
  font-size: 11px; color: var(--gray); margin-top: 16px;
}

/* ═══ FOOTER ═══ */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--navy-light);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-light);
}
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-tagline { font-size: 11px; color: var(--teal); margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 10px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a { font-size: 13px; color: var(--gray); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  font-size: 11px; color: var(--gray);
  max-width: 1120px; margin: 0 auto;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 38px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
  .flow-container { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .flow-connector { padding: 8px; }
  .flow-line { width: 20px; }
}

@media (max-width: 640px) {
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .flow-container { flex-direction: column; align-items: center; }
  .flow-connector { transform: rotate(90deg); padding: 4px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn-primary { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  #hero { padding: 100px 24px 60px; min-height: auto; }
  section { padding: 60px 0; }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 2px; }
