/* ─────────────────────────────────────────────────────────────────────
   Jellyfish marketing site · shared design system
   ──────────────────────────────────────────────────────────────────── */

/* Fonts
   ─ Outfit  → variable geometric sans. Used for headlines + section titles.
               Replaces Fraunces, which read too editorial/magazine for our
               21-35 nightlife audience. Outfit feels modern, friendly,
               distinctly young-consumer. Italics work great for accent
               words ("equation," "good time," "more cities").
   ─ Inter   → variable sans, our body face.
   Loaded from Google Fonts via @import (no extra build step). */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..900&family=Inter:wght@300..900&display=swap');

/* ── Design tokens ──────────────────────────────────────────────────── */
:root {
  /* Powder palette — same as the app */
  --bg:           #EFF4FA;
  --bg-deep:      #DCE8F4;
  --bg-cool:      #F5F8FC;
  --surface:      #FFFFFF;
  --surface-soft: #F8FBFE;
  --border:       rgba(83,128,199,0.18);
  --border-soft:  rgba(83,128,199,0.10);
  --ink:          #0B1A33;          /* slightly deeper than the app for type contrast */
  --ink-soft:     #56688A;
  --ink-muted:    #8C9DBA;
  --accent:       #5380C7;
  --accent-deep:  #2A4F94;
  --accent-darker:#1A3870;
  --accent-tint:  rgba(83,128,199,0.08);
  --pro:          #F59E0B;
  --pro-deep:     #B45309;
  --pro-tint:     rgba(245,158,11,0.10);
  --paper-tan:    #FCFCFC;
  --paper-border: #E0E2E5;
  --hot:          #DC2626;
  --warm:         #F59E0B;
  --chill:        #5380C7;
  --live:         #10B981;

  /* Type stacks */
  --display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hand:    'Bradley Hand', 'Comic Sans MS', cursive;
  --mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max:           1240px;
  --max-narrow:    900px;
  --gutter:        clamp(20px, 4vw, 40px);

  /* Shadows — depth scale */
  --sh-1: 0 2px 8px rgba(15,15,15,0.04);
  --sh-2: 0 8px 24px rgba(15,15,15,0.06);
  --sh-3: 0 18px 50px rgba(83,128,199,0.10);
  --sh-4: 0 30px 80px rgba(15,15,15,0.18);
  --sh-glow: 0 0 24px rgba(83,128,199,0.30);

  /* Easings */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.4, 0, 0.6, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset + base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: 'wght' 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: var(--max-narrow); }

/* ── Scroll progress bar — top of page, denim → pro gradient ──────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress > .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--pro));
  transition: width 50ms linear;
}

/* ── Top nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 244, 250, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-decoration: none;
}
/* The real jellyfish logo (PNG with transparent background, hot pink/orange
   gradient). Bumped up from 36px to 52px in the nav per direct ask — the
   logo is the brand and it should read at a glance. Drop-shadow filter
   gives it a subtle glow without a wrapper div. */
.brand-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(220, 38, 127, 0.30));
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.5px;
}
/* Footer logo — even bigger (was 44px). Bottom of the page is a brand
   moment, not a small print-out. */
.brand-footer {
  font-size: 28px;
  gap: 14px;
}
.brand-footer .brand-logo {
  width: 72px; height: 72px;
  filter: drop-shadow(0 4px 14px rgba(220, 38, 127, 0.32));
}
/* Nav inner row needs a touch more vertical space to fit the bigger logo
   without crowding the links. */
.nav-inner { height: 80px; }
/* Legacy mark — kept temporarily in case any page hasn't reloaded yet. */
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #B5CCEC, #5380C7);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
  font-family: var(--body);
  box-shadow: 0 0 14px rgba(83,128,199,0.35);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.nav-links a {
  position: relative;
  transition: color 150ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent-deep); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.active::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
  box-shadow: 0 6px 18px rgba(83,128,199,0.28);
  cursor: pointer; font-family: inherit;
  letter-spacing: -0.1px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(83,128,199,0.40);
  background: var(--accent-deep);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); transform: none; }
.btn-pro {
  background: var(--pro); border-color: var(--pro);
  box-shadow: 0 6px 18px rgba(245,158,11,0.30);
}
.btn-pro:hover { background: var(--pro-deep); box-shadow: 0 10px 26px rgba(245,158,11,0.40); }
.btn-large { padding: 16px 28px; font-size: 15px; font-weight: 700; }
.btn-xl    { padding: 18px 32px; font-size: 16px; font-weight: 700; }

/* ── Headlines + body ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow.pro  { background: var(--pro-tint); color: var(--pro-deep); }
.eyebrow.live::before {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(16,185,129,0.70);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

/* H1 — display, oversized. Outfit needs heavier weights than Fraunces
   to land with the same visual presence; bumped from 500→700. */
.h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8.5vw, 110px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: var(--ink);
}
.h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.h1 .pro { color: var(--pro); font-style: italic; font-weight: 600; }

/* H2 — slightly smaller, same family */
.h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px; color: var(--ink);
}
.h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 580px;
  font-weight: 400;
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.section-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft); margin: 0;
  max-width: 640px;
}
.section-head {
  text-align: center; max-width: 760px; margin: 0 auto 70px;
}
.section-head .lede,
.section-head .section-sub {
  margin-left: auto; margin-right: auto;
}

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.tight { padding: clamp(50px, 6vw, 80px) 0; }

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16,185,129,0.70); }
  50%      { opacity: 0.45; box-shadow: 0 0 4px rgba(16,185,129,0.30); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Scroll-reveal — JS adds .reveal-in to elements when they enter viewport */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}
.reveal-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Email-capture form ────────────────────────────────────────────── */
.cta-form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px;
  border: none; outline: none;
  font-size: 14px; color: var(--ink);
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(15,15,15,0.10);
}
.cta-form input:focus {
  box-shadow: 0 6px 16px rgba(15,15,15,0.10), 0 0 0 3px rgba(255,255,255,0.40);
}
.cta-form button {
  padding: 14px 24px; border-radius: 999px; border: none;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit;
  transition: transform 150ms var(--ease-out);
  white-space: nowrap;
}
.cta-form button:hover:not(:disabled) { transform: translateY(-1px); }
.cta-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.cta-status {
  margin-top: 14px; font-size: 13px;
  min-height: 18px;
  font-weight: 600;
  text-align: center;
}
.cta-status.success { color: #BBF7D0; }
.cta-status.error   { color: #FECACA; }

.cta-form-light input {
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta-form-light button { background: var(--accent); }
.cta-form-light .cta-status.success { color: #047857; }
.cta-form-light .cta-status.error   { color: #B91C1C; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  padding: 64px 0 36px;
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-size: 11px; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: 1.4px; font-weight: 700;
  margin: 0 0 16px;
  font-family: var(--body);
}
.footer-col a {
  display: block; padding: 4px 0;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  transition: color 150ms var(--ease-out);
}
.footer-col a:hover { color: var(--accent); }
.footer-blurb {
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.6;
  margin: 18px 0 0; max-width: 320px;
}
.footer-bottom {
  margin-top: 60px; padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-muted); font-size: 12px;
}
