/* ========================
   BASE RESET & TOKENS
   ======================== */
:root {
  --bg: #0A0A0F;
  --surface: #111118;
  --surface-2: #18181F;
  --accent: #FF4D1C;
  --accent-dim: rgba(255, 77, 28, 0.12);
  --text: #F5F5F7;
  --text-muted: rgba(245, 245, 247, 0.5);
  --text-faint: rgba(245, 245, 247, 0.25);
  --border: rgba(245, 245, 247, 0.08);
  --border-accent: rgba(255, 77, 28, 0.35);
  --radius: 10px;
  --radius-lg: 18px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* ========================
   NAVBAR
   ======================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 99px;
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 15vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 28, 0.18) 0%, transparent 65%);
  filter: blur(60px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 245, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 247, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  margin-bottom: 2rem;
  background: var(--surface);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero-accent {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  width: fit-content;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 1.5rem;
}
.meta-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.meta-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========================
   SECTIONS SHARED
   ======================== */
section { width: 100%; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ========================
   PILLARS
   ======================== */
.pillars {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillars-header { margin-bottom: 3rem; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.pillar-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.pillar-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.pillar-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stack-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  letter-spacing: 0.03em;
}

/* ========================
   HOW IT WORKS
   ======================== */
.how {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.how-left { }
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.1rem;
}
.step-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Loop diagram */
.how-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loop-diagram {
  position: relative;
  width: 340px;
  height: 340px;
}
.loop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loop-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.loop-revenue {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: center;
}
.loop-node {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
}
.loop-arrow {
  position: absolute;
  width: 2px;
  height: 18px;
  background: var(--border-accent);
}

/* Node positions around the ring (clockwise from top) */
.loop-node:nth-child(1) { top: 4%; left: 50%; transform: translateX(-50%); }
.loop-node:nth-child(3) { top: 25%; right: 4%; }
.loop-node:nth-child(5) { bottom: 25%; right: 4%; }
.loop-node:nth-child(7) { bottom: 4%; left: 50%; transform: translateX(-50%); }
.loop-node:nth-child(9) { bottom: 25%; left: 4%; }
.loop-node:nth-child(11) { top: 25%; left: 4%; }
.node-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========================
   MANIFESTO
   ======================== */
.manifesto {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg);
}
.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
}
.manifesto-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}
.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2rem;
  font-style: normal;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.manifesto-body:last-of-type { margin-bottom: 0; }
.manifesto-rule:last-of-type { margin-top: 2.5rem; margin-bottom: 0; }

/* ========================
   CLOSING
   ======================== */
.closing {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  margin-bottom: 2rem;
  background: var(--bg);
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cta-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.cta-feat svg { color: var(--accent); flex-shrink: 0; }

/* ========================
   FOOTER
   ======================== */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .how {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .how-right { display: none; }
  .hero-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  .meta-item { padding: 0 0.75rem; }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-headline { letter-spacing: -0.02em; }
  .meta-item { padding: 0 0.5rem; }
  .meta-num { font-size: 1.4rem; }
}