/* ═══════════════════════════════════════════════
   AI FOR HUMANS — GLOBAL STYLES
   Single source of truth for brand, layout, nav,
   buttons, animations, footer, and shared components.
   ═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #0a0a0f;
  color: #F1F0FF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(168,85,247,0.45);
  --blue: #4f8aff;
  --purple: #a855f7;
  --orange: #e8943a;
  --green: #3ab878;
  --red: #e04050;
  --cyan: #5bc0eb;
  --text: #F1F0FF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── ANIMATIONS ─── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-7px) translateX(5px); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes glow-pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes borderGlow { 0%,100% { border-color: rgba(79,138,255,0.15); } 50% { border-color: rgba(79,138,255,0.4); } }
@keyframes subtlePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,138,255,0); } 50% { box-shadow: 0 0 20px 2px rgba(79,138,255,0.08); } }
@keyframes barGrow { from { width: 0%; } }

.f1 { animation: float 4.0s ease-in-out 0.0s infinite; }
.f2 { animation: float 5.5s ease-in-out 0.8s infinite; }
.f3 { animation: floatB 4.8s ease-in-out 1.6s infinite; }
.f4 { animation: float 6.0s ease-in-out 2.4s infinite; }
.gp { animation: glow-pulse 3s ease-in-out infinite; }
.ad { animation: dash 1.4s linear infinite; }
.ad2 { animation: dash 1.4s linear 0.4s infinite; }
.ad3 { animation: dash 1.4s linear 0.8s infinite; }

.fu  { animation: fadeUp 0.7s ease 0.05s both; }
.fu1 { animation: fadeUp 0.7s ease 0.15s both; }
.fu2 { animation: fadeUp 0.7s ease 0.25s both; }
.fu3 { animation: fadeUp 0.7s ease 0.40s both; }
.fu4 { animation: fadeUp 0.7s ease 0.55s both; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale-up { transform: scale(0.92); }
.reveal.visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.40s; }

.shimmer {
  background: linear-gradient(90deg, #F1F0FF 0%, var(--blue) 35%, var(--purple) 60%, #F1F0FF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ─── LAYOUT ─── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ─── NOISE OVERLAY ─── */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  background-image: linear-gradient(rgba(79,138,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(79,138,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ─── NAV ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
nav.scrolled { background: rgba(10,10,15,0.92); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; transition: transform 0.3s ease; }
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.08); }
.logo-wordmark { display: flex; align-items: baseline; gap: 5px; font-size: 16px; }
.logo-wordmark .ai, .logo-wordmark .humans { font-weight: 700; letter-spacing: -1.5px; }
.logo-wordmark .for { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; color: var(--text-dim); letter-spacing: -0.5px; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--purple); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); letter-spacing: -0.01em; white-space: nowrap; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent); opacity: 0; transition: opacity 0.3s; }
.btn:hover::before { opacity: 1; }
.btn-primary { background: var(--orange); color: #0a0a0f; }
.btn-primary:hover { background: #f0a050; box-shadow: 0 0 28px rgba(232,148,58,0.4); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,0.12); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-sm { font-size: 13px; padding: 9px 20px; }
.btn-lg { font-size: 16px; padding: 16px 36px; }

/* ─── TAG ─── */
.tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.35); color: var(--purple); border-radius: 100px; padding: 5px 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── SECTION HEADINGS ─── */
.section-eyebrow { margin-bottom: 16px; }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.section-sub { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* ─── CTA SECTION ─── */
#cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
#cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 80% at 50% 50%, rgba(79,138,255,0.08), transparent); pointer-events: none; }
#cta .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 32px; }
#cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }
#cta p { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.65; }
.cta-note { font-size: 12px; color: var(--text-dim); margin-top: 14px; }

/* ─── FOOTER ─── */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 52px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 44px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); max-width: 260px; line-height: 1.65; margin-top: 10px; }
.footer-cols { display: flex; gap: 52px; }
.footer-col h4 { font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; transition: all 0.2s; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 12px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-dim); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

/* ─── CORVEX COMMAND CENTER (shared between homepage + how-it-works) ─── */
.cc-panel { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; max-width: 1000px; margin: 0 auto; animation: borderGlow 5s ease-in-out infinite; }
.cc-topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.cc-topbar-left { display: flex; align-items: center; gap: 10px; }
.cc-topbar-left .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: glow-pulse 2s ease-in-out infinite; }
.cc-topbar-left strong { font-size: 15px; font-weight: 700; }
.cc-topbar-left span { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.cc-topbar-right { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); font-weight: 600; }
.cc-topbar-right .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: glow-pulse 2s ease-in-out infinite; }
.cc-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cc-metric { text-align: left; }
.cc-metric:not(:last-child) { border-right: 1px solid var(--border); padding-right: 20px; margin-right: 20px; }
.cc-metric-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); margin-bottom: 6px; }
.cc-metric-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 3px; }
.cc-metric-sub { font-size: 11px; font-weight: 500; }
.cc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cc-body-left, .cc-body-right { padding: 20px 24px; }
.cc-body-left { border-right: 1px solid var(--border); }
.cc-body-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text); margin-bottom: 16px; }
.cc-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cc-bar-label { font-size: 12px; color: var(--text-muted); width: 90px; flex-shrink: 0; }
.cc-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden; }
.cc-bar-fill { height: 100%; border-radius: 4px; }
.cc-bar-pct { font-size: 12px; color: var(--text-muted); width: 32px; text-align: right; font-weight: 600; }
.cc-activity-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.cc-activity-item .adot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.cc-activity-item .time { font-size: 11px; color: var(--text-dim); margin-left: auto; white-space: nowrap; flex-shrink: 0; padding-left: 12px; }
.cc-activity-item strong { color: var(--text); font-weight: 600; }

/* ─── SHARED RESPONSIVE ─── */
@media (max-width: 1000px) {
  .cc-body { grid-template-columns: 1fr; }
  .cc-body-left { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .nav-links > a { display: none; }
  .footer-inner { flex-direction: column; }
  .cc-metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cc-metric:not(:last-child) { border-right: none; padding-right: 0; margin-right: 0; }
}
