/* ========================
   NEXUSIQ — THEME CSS
   ======================== */

:root {
  --bg: #07090f;
  --bg-card: #0d1117;
  --bg-card-hover: #111827;
  --fg: #f0f4f8;
  --fg-muted: #8b9ab3;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --green: #10b981;
  --red: #ef4444;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(7,9,15,0.85);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
}

/* Threat Cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.threat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.threat-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.threat-card--alert {
  border-left: 3px solid var(--red);
}
.threat-card--watch {
  border-left: 3px solid var(--amber);
}
.threat-card--gap {
  border-left: 3px solid var(--green);
}

.threat-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.threat-icon {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.threat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  flex: 1;
}

.threat-time {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.threat-company {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.threat-event {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.threat-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--price { background: rgba(239,68,68,0.15); color: #ef4444; }
.tag--risk { background: rgba(239,68,68,0.1); color: #f87171; }
.tag--signal { background: var(--amber-dim); color: var(--amber); }
.tag--medium { background: rgba(245,158,11,0.1); color: #fbbf24; }
.tag--opp { background: rgba(16,185,129,0.15); color: var(--green); }

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 4rem;
}

/* ---- HOW IT WORKS ---- */
.howitworks {
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.step {
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.step:hover {
  border-color: rgba(0,212,255,0.2);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-icon {
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  padding-top: 6rem;
}

.step-connector::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(0,212,255,0.1));
}

/* ---- MANIFESTO ---- */
.manifesto {
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,212,255,0.02) 50%, var(--bg) 100%);
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  quotes: none;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.manifesto-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.manifesto-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.manifesto-stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 140px;
  line-height: 1.4;
}

/* ---- OUTCOMES ---- */
.outcomes {
  border-top: 1px solid var(--border);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.outcome-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.outcome-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-2px);
}

.outcome-icon {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.outcome-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.outcome-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,212,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.closing-grid-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  margin: 0 auto 3rem;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.closing-note {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.closing-badge {
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.35rem;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-links {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-align: right;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .step-connector {
    display: none;
  }

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

  .manifesto-stat-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .manifesto-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-headline {
    font-size: 2rem;
  }
}
