/* ============================================
   PubHub — Global Design System
   Fonts: Syne (display) + IBM Plex Sans (body)
   Theme: Deep space · Signal purple · Mint
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --bg:        #080b14;
  --bg2:       #0d1221;
  --bg3:       #111827;
  --surface:   rgba(255,255,255,0.04);
  --surface2:  rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.09);
  --border2:   rgba(255,255,255,0.15);

  --purple:    #8b5cf6;
  --purple-l:  #a78bfa;
  --purple-d:  #5b21b6;
  --mint:      #34d399;
  --mint-l:    #6ee7b7;
  --blue:      #60a5fa;

  --text:      #f1f5f9;
  --text2:     #94a3b8;
  --text3:     #475569;

  --glow-purple: rgba(139,92,246,0.25);
  --glow-mint:   rgba(52,211,153,0.2);

  --radius:    12px;
  --radius-lg: 20px;
  --ff-display: 'Syne', sans-serif;
  --ff-body:    'IBM Plex Sans', sans-serif;
}

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

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

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.4;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(8,11,20,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img,
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
}
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border2);
  background:
    linear-gradient(135deg, rgba(139,92,246,0.22), rgba(52,211,153,0.08)),
    rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}
.nav-logo-mark::before,
.nav-logo-mark::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-l), var(--mint));
}
.nav-logo-mark::before {
  width: 12px;
  height: 2px;
  transform: rotate(90deg);
}
.nav-logo-mark::after {
  width: 12px;
  height: 2px;
}
.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text);
}
.nav-logo-text span { color: var(--purple-l); }

.nav-links {
  display: flex; gap: 0.25rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 400; color: var(--text2);
  text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }

.nav-cta {
  background: var(--purple); color: #fff;
  border: none; padding: 0.5rem 1.2rem;
  font-family: var(--ff-body); font-size: 0.875rem; font-weight: 500;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px var(--glow-purple);
}
.nav-cta:hover { background: var(--purple-l); box-shadow: 0 0 30px rgba(139,92,246,0.5); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-hamburger { display: none; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1.4rem; }

/* ── SECTION WRAPPERS ── */
.section { padding: 7rem 5vw; position: relative; z-index: 1; }
.section-sm { padding: 4rem 5vw; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── LABELS / EYEBROWS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--purple-l); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 2px; background: var(--purple-l); border-radius: 1px;
}

/* ── HEADINGS ── */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.08; letter-spacing: -0.025em; }

.display-xl {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 800; line-height: 1.02;
}
.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
}
.display-md {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
}

.grad-text {
  background: linear-gradient(135deg, var(--purple-l) 0%, var(--mint) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text2); font-weight: 300; }
.text-lead { font-size: 1.1rem; line-height: 1.7; color: var(--text2); font-weight: 300; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-family: var(--ff-body); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 0 30px var(--glow-purple);
}
.btn-primary:hover { background: var(--purple-l); box-shadow: 0 0 50px rgba(139,92,246,0.5); transform: translateY(-1px); }

.btn-mint {
  background: var(--mint); color: #052e16;
  box-shadow: 0 0 30px var(--glow-mint); font-weight: 600;
}
.btn-mint:hover { background: var(--mint-l); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface); color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--purple); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
  position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-4px);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

/* ── GLOW ORBS (decorative) ── */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.orb-purple { background: rgba(139,92,246,0.15); }
.orb-mint   { background: rgba(52,211,153,0.1); }
.orb-blue   { background: rgba(96,165,250,0.08); }

/* ── CHIPS / TAGS ── */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 600; padding: 0.28rem 0.65rem;
  border-radius: 6px; letter-spacing: 0.02em;
}
.chip-purple { background: rgba(139,92,246,0.15); color: var(--purple-l); border: 1px solid rgba(139,92,246,0.25); }
.chip-mint   { background: rgba(52,211,153,0.12); color: var(--mint); border: 1px solid rgba(52,211,153,0.2); }
.chip-blue   { background: rgba(96,165,250,0.12); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }

/* ── PLATFORM BADGES ── */
.platform-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 500; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: 20px;
}

/* ── DIVIDER ── */
.divider {
  height: 1px; background: var(--border); margin: 0;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── FOOTER ── */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 3rem 5vw 2rem; position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text3); margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--ff-display); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text2); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col .footer-meta { display: block; font-size: 0.85rem; color: var(--text2); margin-bottom: 0.5rem; line-height: 1.5; }
.footer-col a:hover { color: var(--purple-l); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem; color: var(--text3);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  body.nav-open { overflow: hidden; }
  .nav { padding: 0 1rem; }
  .nav-actions { gap: 0.55rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-logo-mark { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 0.95rem; }
  .nav-cta { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg2); padding: 1.5rem 5vw;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.32);
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .display-xl { font-size: 2.5rem; }
  .nav-logo { gap: 8px; }
  .nav-logo-text { font-size: 0.88rem; }
  .nav-actions { gap: 0.45rem; }
  .nav-cta { padding: 0.42rem 0.7rem; font-size: 0.78rem; }
}
