/* ═══════════════════════════════════════════
   CREATOR FUSION  Global Styles
   Neon Blue / Purple / Cyan brand palette
   ═══════════════════════════════════════════ */

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

:root {
  /* ── Backgrounds ── */
  --bg-primary: #06070e;
  --bg-secondary: #0b0d17;
  --bg-card: #10132000;
  --bg-card-solid: #101320;
  --bg-card-hover: #161a2c;
  --surface: #1a1e32;
  --surface-bright: #222740;

  /* ── Borders ── */
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.10);
  --border-glow: rgba(0,212,255,0.15);

  /* ── Text ── */
  --text-primary: #eef0f6;
  --text-secondary: #8b8fa8;
  --text-muted: #5a5e76;

  /* ── Accent: Cyan (primary) ── */
  --cyan: #00d4ff;
  --cyan-dim: rgba(0,212,255,0.10);
  --cyan-glow: rgba(0,212,255,0.25);

  /* ── Accent: Purple/Magenta ── */
  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.10);
  --purple-glow: rgba(168,85,247,0.25);
  --magenta: #e879f9;
  --magenta-dim: rgba(232,121,249,0.10);

  /* ── Accent: Brand warm (secondary) ── */
  --brand-warm: #f59e0b;
  --brand-warm-dim: rgba(245,158,11,0.10);

  /* ── Accent: Success green ── */
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.10);

  /* ── Fonts ── */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* ── Radius ── */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAVIGATION ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(6,7,14,0.75);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(6,7,14,0.92); border-bottom-color: var(--border-bright); }
nav .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: var(--bg-primary);
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(168,85,247,0.15);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--cyan); border-radius: 2px; transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: var(--bg-primary);
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(0,212,255,0.35); }

.mobile-menu { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: var(--bg-primary);
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  box-shadow: 0 0 24px rgba(0,212,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,212,255,0.35);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--cyan); background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.btn-purple {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  box-shadow: 0 0 24px var(--purple-glow);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--purple-glow);
}

/* ═══ SECTION GLOBALS ═══ */
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.section-label .bar { width: 24px; height: 2px; border-radius: 2px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; max-width: 640px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin-top: 16px; line-height: 1.7;
}

/* ═══ GLOW CARDS ═══ */
.glow-card {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.glow-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,212,255,0.04), transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity 0.35s;
}
.glow-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,212,255,0.06);
}
.glow-card:hover::before { opacity: 1; }

/* ═══ DEMO MOCKUP FRAME ═══ */
.demo-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.05);
}
.demo-frame .frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.demo-frame .frame-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.demo-frame .frame-dot.red { background: #ff5f57; }
.demo-frame .frame-dot.yellow { background: #febc2e; }
.demo-frame .frame-dot.green { background: #28c840; }
.demo-frame .frame-url {
  flex: 1; margin-left: 12px;
  padding: 5px 14px; border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted);
}
.demo-frame .frame-body { padding: 24px; }

/* ═══ TAGS / PILLS ═══ */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag.cyan { background: var(--cyan-dim); color: var(--cyan); }
.tag.purple { background: var(--purple-dim); color: var(--purple); }
.tag.green { background: var(--green-dim); color: var(--green); }
.tag.warm { background: var(--brand-warm-dim); color: var(--brand-warm); }
.tag.magenta { background: var(--magenta-dim); color: var(--magenta); }

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px var(--cyan-glow); }
  50% { box-shadow: 0 0 40px var(--cyan-glow), 0 0 60px rgba(168,85,247,0.15); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ═══ GRADIENT TEXT ═══ */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, var(--cyan), var(--brand-warm));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ FOOTER ═══ */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-secondary); max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-secondary); }

/* ═══ LEGAL MODALS ═══ */
.legal-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,7,14,0.92); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 24px;
}
.legal-modal.active { display: flex; }
.legal-content {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 720px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 48px;
}
.legal-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.legal-content .last-updated { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; }
.legal-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 28px 0 10px; color: var(--cyan); }
.legal-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.legal-close {
  position: absolute; top: 24px; right: 32px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all 0.2s;
}
.legal-close:hover { background: var(--bg-card-hover); border-color: var(--cyan); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.show {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,7,14,0.95); backdrop-filter: blur(20px);
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu { display: block; }
  .footer-top { grid-template-columns: 1fr; }
  .legal-content { padding: 32px 20px; }
}
