/* ============================================
   PHANTOM — Theme CSS
   ============================================ */

:root {
  --bg: #0A0A0B;
  --bg-alt: #111114;
  --bg-card: #0E0E12;
  --fg: #E8E4DC;
  --fg-dim: #8A8580;
  --fg-faint: #4A4845;
  --accent: #F5C518;
  --accent-dim: rgba(245, 197, 24, 0.12);
  --accent-border: rgba(245, 197, 24, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Spline Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-faint); border-radius: 3px; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* The Orb */
.orb {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(245, 197, 24, 0.25), rgba(245, 197, 24, 0.05) 50%, transparent 70%);
  filter: blur(40px);
  animation: orb-pulse 4s ease-in-out infinite;
  position: absolute;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.12);
  animation: ring-rotate 20s linear infinite;
}

.orb-ring-1 { width: 420px; height: 420px; }
.orb-ring-2 { width: 540px; height: 540px; animation-duration: 28s; animation-direction: reverse; }
.orb-ring-3 { width: 680px; height: 680px; animation-duration: 38s; }

@keyframes orb-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

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

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Code block */
.hero-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 20px 24px;
  font-family: 'Spline Sans Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
}

.code-line { color: var(--fg); }
.code-comment { color: var(--fg-dim); font-style: italic; }
.code-dim { color: var(--fg-dim); }
.code-cyan { color: #7DD3FC; }

/* ============================================
   SECTION COMMON
   ============================================ */

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}

.how-header {
  max-width: 1200px;
  margin: 0 auto 72px;
}

.pipeline {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.pipeline-step {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.pipeline-step:hover {
  border-color: var(--accent-border);
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  margin-bottom: 16px;
}

.pipeline-step h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 10px;
}

.pipeline-step p {
  font-size: 0.875rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  padding-top: 40px;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.feature-card-accent {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ============================================
   MANIFESTO
   ============================================ */

.manifesto {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

blockquote {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--fg);
  margin: 24px 0 40px;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-highlight {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

/* ============================================
   CLOSING
   ============================================ */

.closing {
  padding: 100px 40px 120px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.75;
  margin-bottom: 48px;
}

.closing-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-blink 2s ease-in-out infinite;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--fg);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--fg-dim);
  max-width: 400px;
}

.footer-links {
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pipeline-connector { display: none; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-headline { font-size: 2.5rem; }
  .how { padding: 60px 24px; }
  .features { padding: 60px 24px; }
  .manifesto { padding: 80px 24px; }
  .closing { padding: 80px 24px 100px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .step-icon { display: none; }
  blockquote { font-size: 1.4rem; }
}
