/* ═══════════════════════════════════════════════
   THREATLEY AI HUB — STYLESHEET
   Dark cyber aesthetic · Syne + Space Mono + DM Sans
   ═══════════════════════════════════════════════ */

:root {
  --navy:       #0A0E1A;
  --navy2:      #0F172A;
  --navy3:      #1E293B;
  --blue:       #1E3A8A;
  --blue-bright:#3B82F6;
  --cyan:       #06B6D4;
  --cyan-dim:   #0891B2;
  --purple:     #7C3AED;
  --green:      #10B981;
  --red:        #EF4444;
  --orange:     #F59E0B;
  --white:      #FFFFFF;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --text:       #E2E8F0;
  --text-dim:   #94A3B8;
  --border:     rgba(255,255,255,0.08);
  --glow-cyan:  0 0 40px rgba(6,182,212,0.15);
  --glow-blue:  0 0 60px rgba(59,130,246,0.1);
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── ATMOSPHERE ── */
.scanline {
  position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── UTILS ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em { color: var(--cyan); font-style: normal; }

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.text-danger { color: var(--red); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(10,14,26,0.98); }

.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 24px;
}

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }

.logo-mark {
  width: 32px; height: 32px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--white); letter-spacing: 1px;
}
.logo-accent { color: var(--cyan); }

.nav-links {
  display: flex; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  padding: 8px 20px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--white); transform: translateY(-1px); }

.nav-mobile-toggle { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 120px 24px 80px;
  max-width: 1120px; margin: 0 auto;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.05);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 1px;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease both;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  display: flex; flex-direction: column;
}

.hero-title .line-1 { animation: fadeInUp 0.7s 0.1s ease both; }
.hero-title .line-2 { animation: fadeInUp 0.7s 0.2s ease both; }
.hero-title .line-3 { animation: fadeInUp 0.7s 0.3s ease both; }
.hero-title .line-4 {
  color: var(--cyan);
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-title em { color: var(--red); font-style: normal; }

.hero-sub {
  font-size: 18px; color: var(--text-dim);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.5s ease both;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 56px;
  animation: fadeInUp 0.7s 0.6s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--glow-cyan); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body); font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  animation: fadeInUp 0.7s 0.7s ease both;
}
.stat { text-align: left; }
.stat-n {
  display: block;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--cyan);
}
.stat-l { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* TERMINAL */
.terminal {
  position: absolute; right: 24px; bottom: 80px;
  width: 420px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--glow-cyan), 0 40px 80px rgba(0,0,0,0.5);
  animation: fadeInRight 0.8s 0.8s ease both;
}

@media (max-width: 1000px) { .terminal { display: none; } }

.terminal-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.t-dots { display: flex; gap: 6px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red    { background: #FF5F56; }
.t-dot.yellow { background: #FFBD2E; }
.t-dot.green  { background: #27C93F; }
.t-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.terminal-body { padding: 16px; }
.t-line {
  font-family: var(--font-mono); font-size: 12px;
  line-height: 1.8; color: var(--text-dim);
}
.t-prompt { color: var(--cyan); margin-right: 8px; }
.t-cmd    { color: var(--white); }
.t-out    { color: var(--green); padding-left: 16px; }
.t-cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── PROBLEM ── */
.problem {
  padding: 100px 0;
  position: relative; z-index: 1;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.problem-card {
  padding: 28px 24px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  transition: all 0.3s;
}
.problem-card:hover { border-color: rgba(6,182,212,0.2); border-top-color: var(--red); transform: translateY(-4px); }

.highlight-card {
  border-top-color: var(--cyan) !important;
  background: rgba(6,182,212,0.05) !important;
}

.prob-icon { font-size: 28px; margin-bottom: 14px; }
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.problem-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 0;
  background: var(--navy2);
  position: relative; z-index: 1;
}

.arch-diagram {
  display: flex; align-items: center; gap: 0;
  justify-content: center;
  margin-bottom: 64px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.arch-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 20px;
  background: var(--navy3);
  border: 1px solid var(--border);
  min-width: 110px; text-align: center;
}
.arch-node.active { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.arch-node.disabled { opacity: 0.3; }
.arch-icon { font-size: 24px; }
.arch-node span { font-size: 12px; font-weight: 600; color: var(--white); }
.arch-node small { font-size: 10px; color: var(--text-dim); }

.arch-arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 8px;
}
.arch-arrow-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
}
.arch-arrow-label { font-family: var(--font-mono); font-size: 9px; color: var(--cyan); text-align: center; }

.arch-blocked {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 8px;
}
.blocked-line { width: 40px; height: 1px; background: var(--red); opacity: 0.4; }
.blocked-label { font-family: var(--font-mono); font-size: 9px; color: var(--red); text-align: center; line-height: 1.3; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--navy);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { border-color: rgba(6,182,212,0.2); transform: translateY(-4px); }

.feat-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); opacity: 0.6;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.feature-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; margin-bottom: 16px; }

.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tag {
  padding: 3px 8px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan);
}

/* ── AGENTS ── */
.agents {
  padding: 100px 0;
  position: relative; z-index: 1;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  padding: 28px;
  background: var(--navy2);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
  display: flex; flex-direction: column; gap: 14px;
}
.agent-card:hover { border-color: rgba(6,182,212,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.agent-card.featured {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.04);
  box-shadow: var(--glow-cyan);
}

.agent-featured-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  white-space: nowrap;
}

.agent-header { display: flex; align-items: center; gap: 12px; }
.agent-icon { font-size: 24px; }
.agent-badge {
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--white);
}
.agent-card p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

.agent-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.agent-features li {
  font-size: 12.5px; color: var(--text-dim);
  padding-left: 14px; position: relative;
}
.agent-features li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--cyan); font-size: 11px;
}

.agent-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.agent-model {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--purple);
  padding: 2px 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
}
.agent-compliance {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--green);
}

/* ── PRICING ── */
.pricing {
  padding: 100px 0;
  background: var(--navy2);
  position: relative; z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.price-card {
  padding: 36px 28px;
  background: var(--navy);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { border-color: rgba(6,182,212,0.3); transform: translateY(-4px); }

.price-card.featured {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.03);
  box-shadow: var(--glow-cyan);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  white-space: nowrap;
}

.price-header { display: flex; flex-direction: column; gap: 4px; }
.price-name {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--cyan); letter-spacing: 1px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  color: var(--white);
}
.price-per { font-size: 12px; color: var(--text-dim); }
.price-mrr {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green);
  margin-top: 4px;
}

.price-target { font-size: 12.5px; color: var(--text-dim); font-style: italic; }

.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.price-features li {
  font-size: 13px; color: var(--text-dim);
  padding-left: 4px;
}

.price-btn {
  display: block; text-align: center;
  padding: 12px 20px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono); font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.price-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.featured-btn {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  border-color: var(--cyan) !important;
  font-weight: 700;
}
.featured-btn:hover { background: var(--white) !important; }

.pricing-note {
  text-align: center;
  font-size: 13px; color: var(--text-dim);
  line-height: 1.6;
}
.pricing-note a { color: var(--cyan); text-decoration: none; }

/* ── COMPLIANCE ── */
.compliance {
  padding: 80px 0;
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}

.compliance-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px; align-items: center;
}

.comp-text h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--white); margin-bottom: 28px;
}

.comp-items { display: flex; flex-direction: column; gap: 20px; }
.comp-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.comp-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); min-width: 24px; margin-top: 2px;
}
.comp-item strong { display: block; color: var(--white); font-size: 14px; margin-bottom: 4px; }
.comp-item p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.comp-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.comp-badge {
  width: 70px; height: 70px;
  display: grid; place-items: center;
  text-align: center;
  background: var(--navy2);
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--cyan); line-height: 1.4;
  transition: all 0.2s;
}
.comp-badge:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.comp-badge small { display: block; font-size: 9px; color: var(--text-dim); }

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  position: relative; z-index: 1;
  background: var(--navy2);
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: 64px;
  border: 1px solid rgba(6,182,212,0.2);
  overflow: hidden;
}

.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; color: var(--white);
  margin-bottom: 16px; line-height: 1.15;
}
.cta-inner p { font-size: 17px; color: var(--text-dim); margin-bottom: 36px; }

.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* ── FOOTER ── */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.7; margin: 16px 0;
  max-width: 300px;
}

.footer-contact {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 1px;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
}

/* ── ANIMATIONS ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .compliance-inner { grid-template-columns: 1fr; }
  .comp-badges { grid-template-columns: repeat(6, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .arch-diagram { flex-wrap: wrap; gap: 12px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
  .nav-mobile-toggle span { width: 22px; height: 2px; background: var(--text); }
}

@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-div { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 32px 20px; }
  .cta-actions { flex-direction: column; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
