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

:root {
  --bg-deep: #08080f;
  --bg-card: #101018;
  --bg-surface: #16162a;
  --accent: #ff6b2c;
  --accent-glow: rgba(255, 107, 44, 0.18);
  --teal: #00e5cc;
  --teal-dim: rgba(0, 229, 204, 0.12);
  --text-primary: #f0eff5;
  --text-muted: #7878a0;
  --text-dim: #4a4a6a;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255, 107, 44, 0.25);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0, 229, 204, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,44,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,44,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,107,44,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  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; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent); }
}
h1 {
  font-size: clamp(42px, 5vw, 72px);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* === SCANNER RING VISUAL === */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanner-ring {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,107,44,0.15);
  animation: expand 3s ease-out infinite;
}
.ring-1 { width: 200px; height: 200px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: 1s; border-color: rgba(0,229,204,0.08); }
.ring-3 { width: 320px; height: 320px; animation-delay: 2s; border-color: rgba(255,107,44,0.06); }
@keyframes expand {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.1); }
}
.scanner-core {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 20px rgba(255,107,44,0.05);
}
.retailer-dot {
  position: absolute;
  width: 80px;
  top: 50%;
  left: 50%;
  transform: rotate(var(--angle)) translateY(-140px) rotate(calc(-1 * var(--angle))) translateX(-40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.retailer-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.retailer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* === SIGNAL SECTION === */
.signal {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 100%);
}
.signal-inner { max-width: 1200px; margin: 0 auto; }
.signal-header {
  max-width: 600px;
  margin-bottom: 64px;
}
.signal-header h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 16px; }
.signal-header p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.signal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.signal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signal-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(255,107,44,0.06);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(255,107,44,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.signal-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.signal-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* === LIVE FEED TABLE === */
.feed {
  padding: 80px 40px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feed-inner { max-width: 1200px; margin: 0 auto; }
.feed-header {
  margin-bottom: 40px;
}
.feed-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,204,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.feed-header h2 { font-size: clamp(24px, 3vw, 36px); }
.feed-table {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.feed-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.8fr 1fr 0.8fr 0.7fr;
  padding: 14px 24px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 16px;
}
.feed-row:last-child { border-bottom: none; }
.feed-row-head {
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.feed-row-1, .feed-row-2, .feed-row-3, .feed-row-4 {
  transition: background 0.2s;
}
.feed-row:hover { background: rgba(255,255,255,0.02); }
.product-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}
.source-tag {
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-deep);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.cost-val, .market-val {
  color: var(--text-muted);
  font-size: 13px;
}
.roi-val {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
}
.score-high {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,204,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.score-med {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #a0a0c0;
  background: rgba(160,160,192,0.1);
  border: 1px solid rgba(160,160,192,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.feed-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 40px;
  background: var(--bg-deep);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; }
blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-style: normal;
}
.manifesto p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 56px;
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  position: relative;
  padding-top: 48px;
}
.pillar::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,107,44,0.12);
  line-height: 1;
}
.pillar strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.pillar p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* === CLOSING / PRICING === */
.closing {
  padding: 100px 40px 120px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 100%);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.closing h2 { font-size: clamp(28px, 4vw, 52px); margin-bottom: 24px; text-align: center; }
.closing > .closing-inner > p { font-size: 16px; color: var(--text-muted); line-height: 1.7; text-align: center; max-width: 640px; margin: 0 auto 64px; }
.closing-planets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.planet {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s;
}
.planet:hover { border-color: var(--border-accent); }
.planet-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.planet-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.planet p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.closing-note { font-size: 13px; color: var(--text-dim); text-align: center; }

/* === FOOTER === */
footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--text-dim); }

/* === BUTTONS (CTA) === */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(255,107,44,0.25);
  min-height: 48px;
}
.btn-cta:hover {
  background: #e05a1e;
  box-shadow: 0 6px 28px rgba(255,107,44,0.4);
  transform: translateY(-1px);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta svg { flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
}
.btn-outline:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }

/* === MOBILE NAV === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,15,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeIn 0.2s ease;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  padding: 12px 24px;
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--accent); }
.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
}

/* === FEED TABLE → CARD STACK === */
.feed-card {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}
.feed-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.feed-card-row:last-child { margin-bottom: 0; }
.feed-card-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.feed-card-value { color: var(--text-primary); font-weight: 600; text-align: right; }
.feed-card-roi { color: var(--accent); font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.feed-card-score { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* === MANIFESTO PILLAR NUMBER (data-attr fix) === */
.pillar-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,107,44,0.12);
  line-height: 1;
  margin-bottom: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .scanner-ring { width: 240px; height: 240px; }
  .retailer-dot { transform: rotate(var(--angle)) translateY(-105px) rotate(calc(-1 * var(--angle))) translateX(-40px); }
  .signal-cards { grid-template-columns: 1fr; }
  .manifesto-pillars { grid-template-columns: 1fr; gap: 40px; }
  .closing-planets { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 2fr 1fr 0.8fr; gap: 10px; }
  .feed-row > span:nth-child(n+4) { display: none; }
  h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .feed-table { display: none; }
  .feed-card { display: block; }
}

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .hero, .signal, .feed, .manifesto, .closing { padding-left: 20px; padding-right: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .signal-card p, .planet p, .pillar p { font-size: 14px; }
  .btn-cta { font-size: 16px; padding: 16px 24px; width: 100%; justify-content: center; }
  .closing-planets { gap: 12px; }
  .planet { padding: 20px; }
  .closing-cta { padding: 16px 24px; width: 100%; justify-content: center; }
  .planet-price { font-size: 20px; }
  .footer-legal { font-size: 11px; }
}

/* === NO ZOOM ON INPUT FOCUS (iOS) === */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* === STICKY BOTTOM CTA === */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}
.sticky-cta-bar .btn-cta { width: 100%; justify-content: center; }

/* === BODY PADDING FOR FIXED NAV === */
@media (max-width: 768px) {
  body { padding-top: 64px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}