/* ═══════════════════════════════════════════════════
   FUNDEDHIVE MARKETING MEGASTRUCTURE — DESIGN SYSTEM
   Dark Command Center Aesthetic
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --bg-deep:     #0A0B0F;
  --bg-card:     #12131A;
  --bg-elevated: #1A1B24;
  --bg-hover:    #22232E;

  --gold:        #D4A853;
  --gold-dim:    rgba(212,168,83,0.12);
  --gold-glow:   rgba(212,168,83,0.25);
  --emerald:     #34D399;
  --danger:      #EF4444;
  --info:        #60A5FA;
  --ai:          #A78BFA;

  --text-1:      #F0F0F5;
  --text-2:      #8A8B9A;
  --text-3:      #5A5B6A;
  --border:      #1E1F2A;
  --border-strong:#2A2B38;

  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --max-w:       1280px;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212,168,83,0.3); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── UTILITIES ─────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.text-1 { color: var(--text-1); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-ai { color: var(--ai); }
.bg-deep { background: var(--bg-deep); }
.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 9999px;
  font-size: 12px; font-family: var(--font-mono);
}
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  background: var(--gold); color: var(--bg-deep);
  font-weight: 700; font-size: 16px;
  transition: all 0.2s; box-shadow: 0 0 20px var(--gold-glow);
}
.btn-gold:hover { filter: brightness(1.1); box-shadow: 0 0 40px var(--gold-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); color: var(--text-2);
  font-weight: 500; font-size: 16px; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text-1); border-color: var(--text-3); }

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

.section { padding: 100px 0; }
.section-alt { background: rgba(18,19,26,0.5); }

/* ── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── AMBIENT BLOB ──────────────────────────── */
.blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); animation: drift 20s ease-in-out infinite;
}
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(30px,-20px); }
  50% { transform: translate(-20px,30px); }
  75% { transform: translate(20px,20px); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px var(--gold-glow); }
  50% { box-shadow: 0 0 40px rgba(212,168,83,0.4); }
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── NAV ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0; transition: all 0.3s;
}
.nav.scrolled {
  backdrop-filter: blur(12px); background: rgba(10,11,15,0.85);
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-deep); font-size: 13px; font-weight: 800;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 10px 20px; border-radius: var(--radius); background: var(--gold);
  color: var(--bg-deep); font-weight: 600; font-size: 14px;
  transition: all 0.2s; box-shadow: 0 0 15px rgba(212,168,83,0.15);
}
.nav-cta:hover { filter: brightness(1.1); }

/* ── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(40px, 8vw, 88px); font-weight: 800; line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero .gradient-text {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 20px; color: var(--text-2); max-width: 640px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* Dashboard Preview */
.dashboard-preview {
  max-width: 900px; margin: 0 auto; position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card); box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.dashboard-preview::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-xl);
  background: linear-gradient(to bottom, rgba(212,168,83,0.1), transparent);
  pointer-events: none;
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 16px; }
.preview-metric {
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.04);
}
.preview-metric .label { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.preview-metric .value { font-size: 22px; font-weight: 700; font-family: var(--font-mono); }
.preview-metric .sub { font-size: 11px; color: var(--emerald); margin-top: 2px; }
.preview-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 0 16px 16px; }
.preview-chart {
  height: 140px; border-radius: var(--radius); background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-3); font-family: var(--font-mono);
}

/* ── SOCIAL PROOF ──────────────────────────── */
.proof-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(18,19,26,0.5); padding: 32px 0;
}
.proof-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 24px; }
.proof-stat { text-align: center; }
.proof-stat .num { font-size: 28px; font-weight: 800; font-family: var(--font-mono); }
.proof-stat .lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.marquee-track { display: flex; gap: 12px; animation: marquee 30s linear infinite; overflow: hidden; }
.marquee-item {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(26,27,36,0.5);
  font-size: 13px; color: var(--text-3); font-family: var(--font-mono);
  white-space: nowrap; transition: all 0.2s;
}
.marquee-item:hover { color: var(--gold); border-color: rgba(212,168,83,0.3); }

/* ── FEATURE GRID ──────────────────────────── */
.feature-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(212,168,83,0.2);
  box-shadow: 0 8px 24px rgba(212,168,83,0.05);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bg-elevated); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.feature-doc { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); background: var(--bg-elevated); padding: 2px 8px; border-radius: 4px; }

/* ── AI ENGINE ─────────────────────────────── */
.model-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
}
.model-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.model-card .provider { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.model-card .tasks { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.model-cost { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-family: var(--font-mono); }

/* ── TRUTH PROTOCOL ────────────────────────── */
.chat-feed { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-deep); overflow: hidden; max-width: 760px; margin: 0 auto; }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: rgba(18,19,26,0.5); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.chat-body { padding: 20px; }
.chat-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.chat-content { flex: 1; }
.chat-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.chat-author { font-size: 14px; font-weight: 600; }
.chat-tag { font-size: 11px; padding: 2px 8px; border-radius: 9999px; font-family: var(--font-mono); }
.typing-cursor { display: inline-block; width: 2px; height: 16px; background: var(--gold); margin-left: 2px; animation: pulse 0.8s infinite; }

/* ── UTT GAME ──────────────────────────────── */
.phone-frame {
  max-width: 280px; margin: 0 auto;
  border: 2px solid var(--border-strong); border-radius: 2rem;
  background: var(--bg-deep); padding: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.phone-inner { border-radius: 1.5rem; overflow: hidden; background: var(--bg-card); }
.phone-header { background: var(--bg-elevated); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.seal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-size: 14px; }
.seal-complete { background: rgba(52,211,153,0.05); }
.seal-current { background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.3); }
.seal-locked { opacity: 0.5; }
.progress-bar { height: 8px; background: var(--bg-elevated); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #fbbf24); border-radius: 9999px; }

/* ── COMMANDER ─────────────────────────────── */
.commander-card {
  max-width: 640px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid rgba(96,165,250,0.2);
  background: var(--bg-deep); padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── FOOTER ────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .preview-metrics { grid-template-columns: 1fr 1fr; }
  .preview-charts { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .proof-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .feature-grid-wrap { grid-template-columns: 1fr !important; }
}
