/* === BASE === */
:root {
  --bg: #0a0a0f;
  --bg-surface: #111118;
  --bg-card: #16161f;
  --fg: #e8e8f0;
  --fg-muted: #7a7a90;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --highlight: #ffb700;
  --highlight-dim: rgba(255, 183, 0, 0.12);
  --border: rgba(255,255,255,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -1px;
}

.brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-publish-link {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-publish-link:hover { opacity: 1; text-decoration: underline; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 48px 100px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 32px;
  background: var(--accent-dim);
}

.hero-headline {
  font-size: clamp(48px, 7vw, 88px);
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -2px;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 56px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin-right: 32px;
}

/* === PIPELINE === */
.pipeline {
  padding: 120px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-header {
  text-align: center;
  margin-bottom: 72px;
}

.pipeline-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.pipeline-header p {
  color: var(--fg-muted);
  font-size: 18px;
}

.pipeline-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.pipeline-stages::-webkit-scrollbar { height: 3px; }
.pipeline-stages::-webkit-scrollbar-thumb { background: var(--accent); }

.stage {
  flex: 0 0 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.stage:hover { border-color: rgba(0, 229, 255, 0.3); }

.stage-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.stage h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--fg);
}

.stage p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.stage-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--fg-muted);
  flex-shrink: 0;
  padding-top: 36px;
}

/* === FEATURES === */
.features {
  padding: 120px 48px;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover { background: var(--bg-card); }
.feature-card:hover::before { opacity: 1; }

.feature-number {
  font-family: 'Space Mono', monospace;
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 28px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.feature-card p {
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === NICHES === */
.niches {
  padding: 120px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.niches-header {
  text-align: center;
  margin-bottom: 72px;
}

.niches-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.niches-header p {
  color: var(--fg-muted);
  font-size: 18px;
}

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

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}

.niche-card:hover {
  border-color: rgba(255, 183, 0, 0.3);
  transform: translateY(-2px);
}

.niche-icon {
  width: 52px;
  height: 52px;
  background: var(--highlight-dim);
  border: 1px solid rgba(255, 183, 0, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight);
  margin-bottom: 24px;
}

.niche-card h4 {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--fg);
}

.niche-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === MANIFESTO === */
.manifesto {
  padding: 140px 48px;
  text-align: center;
  position: relative;
}

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

.manifesto blockquote {
  font-family: 'Space Mono', monospace;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--fg);
  max-width: 800px;
  margin: 0 auto 36px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.manifesto blockquote::before {
  content: '"';
  display: block;
  font-size: 80px;
  color: var(--accent-dim);
  line-height: 0.5;
  margin-bottom: 24px;
}

.manifesto-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* === CLOSING === */
.closing {
  padding: 140px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--fg);
}

.closing p {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.closing-cta {
  font-size: 16px !important;
  color: var(--fg) !important;
  margin-top: 40px !important;
}

/* === FOOTER === */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 14px;
}

.footer-legal {
  color: var(--fg-muted);
  font-size: 12px;
  opacity: 0.5;
}

/* === AFFILIATE PRODUCTS === */
.products-section {
  padding: 120px 48px;
}

.products-header {
  text-align: center;
  margin-bottom: 72px;
}

.products-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.products-header p {
  color: var(--fg-muted);
  font-size: 18px;
}

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.product-name {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
}

.product-description {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.product-cta:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* === TESTIMONIALS === */
.testimonials {
  padding: 120px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 72px;
}

.testimonials-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.testimonials-header p {
  color: var(--fg-muted);
  font-size: 18px;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.testimonial-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.testimonial-metric-value {
  font-family: 'Space Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.testimonial-metric-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.testimonial-card cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .nav-publish-link { display: none; }

  .hero { padding: 120px 24px 80px; }
  .hero-headline { letter-spacing: -1px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }

  .pipeline { padding: 80px 24px; }
  .pipeline-stages { gap: 12px; }
  .stage { flex: 0 0 160px; }
  .stage-arrow { display: none; }

  .features { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 32px 24px; }

  .niches { padding: 80px 24px; }
  .niche-cards { grid-template-columns: 1fr; }

  .testimonials { padding: 80px 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .products-section { padding: 80px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .manifesto { padding: 80px 24px; }
  .manifesto blockquote { font-size: 20px; }

  .closing { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 40px; }
  .footer { padding: 32px 24px; }
  .product-grid { grid-template-columns: 1fr; }
}
