/* =======================
   CLEARPATH — Design System
   Deep Navy + Electric Teal
   ======================= */

:root {
  --navy: #0A1628;
  --navy-mid: #0F2340;
  --navy-light: #152849;
  --teal: #00D4B1;
  --teal-dim: rgba(0, 212, 177, 0.15);
  --teal-glow: rgba(0, 212, 177, 0.08);
  --amber: #FF8C42;
  --white: #FFFFFF;
  --gray-1: rgba(255,255,255,0.9);
  --gray-2: rgba(255,255,255,0.6);
  --gray-3: rgba(255,255,255,0.35);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --section-pad: 100px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--gray-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =======================
   NAV
   ======================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--gray-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* =======================
   HERO
   ======================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 177, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 177, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 177, 0.08) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-nodes {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 60%;
}
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal), 0 0 24px rgba(0, 212, 177, 0.4);
  animation: pulse 3s ease-in-out infinite;
}
.node-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.node-1 { left: 5%; top: 45%; }
.node-2 { left: 45%; top: 15%; animation-delay: 0.5s; }
.node-3 { left: 80%; top: 30%; animation-delay: 1s; }
.node-4 { left: 70%; top: 75%; animation-delay: 1.5s; }
.node-5 { left: 30%; top: 80%; animation-delay: 0.8s; }
.node-6 { left: 60%; top: 60%; animation-delay: 1.2s; }
.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(0, 212, 177, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline-accent {
  color: var(--teal);
  display: inline-block;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 12px;
  color: var(--gray-3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* =======================
   SHARED SECTION
   ======================= */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-2);
  line-height: 1.7;
  max-width: 560px;
}

/* =======================
   HOW IT WORKS
   ======================= */
.howitworks {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.step-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: rgba(0, 212, 177, 0.3);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  opacity: 0.6;
}
.step-icon {
  margin-bottom: 20px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.65;
}

/* =======================
   AGENTS
   ======================= */
.agents {
  padding: var(--section-pad);
  position: relative;
}
.agents-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.agents-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 177, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.agents .section-headline,
.agents .section-sub {
  position: relative;
  z-index: 1;
}
.agents > .section-label {
  position: relative;
  z-index: 1;
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 64px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.agent-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
}
.agent-card:hover {
  border-color: rgba(0, 212, 177, 0.3);
  transform: translateY(-2px);
}
.agent-visual {
  width: 64px;
  height: 64px;
  position: relative;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 177, 0.2);
}
.agent-ring-1 {
  width: 64px;
  height: 64px;
  animation: spin 8s linear infinite;
  border-top-color: var(--teal);
}
.agent-ring-2 {
  width: 48px;
  height: 48px;
  animation: spin 5s linear infinite reverse;
  border-bottom-color: rgba(0, 212, 177, 0.15);
}
.agent-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agent-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.agent-card p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.agent-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0, 212, 177, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* =======================
   MANIFESTO
   ======================= */
.manifesto {
  padding: var(--section-pad);
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}
.manifesto-text p {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.manifesto-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-block {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.5;
}

/* =======================
   CLOSING
   ======================= */
.closing {
  padding: 140px 24px;
  background: var(--navy);
  text-align: center;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}
.closing-sub {
  font-size: 18px;
  color: var(--gray-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* =======================
   FOOTER
   ======================= */
.footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-name { letter-spacing: -0.02em; }
.footer-tagline {
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-meta {
  font-size: 13px;
  color: var(--gray-3);
  line-height: 1.7;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 900px) {
  .hero-nodes { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .agents-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-headline { font-size: clamp(40px, 10vw, 72px); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proof-divider { display: none; }
  .manifesto-stats { grid-template-columns: 1fr; }
  .hero { padding: 120px 24px 80px; }
  .howitworks, .agents, .manifesto, .closing { padding: 80px 24px; }
}
