/* ============================================================
   HUMBOP — style.css
   Design tokens, base, layout, components
   ============================================================ */

:root {
  /* Colour tokens */
  --bg: #07070d;
  --bg-2: #0b0b15;
  --bg-3: #10101d;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(168, 85, 247, 0.45);
  --violet: #7c3aed;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --text: #f1f0fa;
  --muted: #9a99b0;
  --faint: #63627a;
  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #22d3ee 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(34, 211, 238, 0.18));

  /* Type */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Rhythm */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ---------- Type scale ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.display-xl { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.display-lg { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.display-md { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-intro { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-intro p { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }

section { padding-block: var(--section-pad); position: relative; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.6), 0 0 30px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--border-bright); background: var(--glass-strong); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  padding: 0.6rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.6);
}
.logo-mark svg { width: 18px; height: 18px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  isolation: isolate;
}

#wave-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 80% 90%, rgba(34, 211, 238, 0.1), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg) 96%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-inline: auto;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero h1 { margin-bottom: 1.2rem; }
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 2.6rem;
}

/* Prompt box — the signature element */
.prompt-shell {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.35), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.prompt-box {
  background: rgba(10, 10, 18, 0.92);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.3rem 1.4rem 1.1rem;
  text-align: left;
  backdrop-filter: blur(20px);
}
.prompt-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.5;
  min-height: 62px;
}
.prompt-input::placeholder { color: var(--faint); }

.prompt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.6rem; flex-wrap: wrap;
}
.prompt-modes { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.mode-chip {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem; font-weight: 500;
  transition: 0.2s ease;
}
.mode-chip:hover { color: var(--text); border-color: var(--border-bright); }
.mode-chip.active {
  background: var(--grad-brand-soft);
  border-color: var(--border-bright);
  color: var(--text);
}

.hero-suggestions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem;
  max-width: 720px; margin: 0 auto;
}
.suggestion {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.84rem;
  transition: 0.2s ease;
}
.suggestion:hover { color: var(--text); border-color: var(--border-bright); transform: translateY(-1px); }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(1.6rem, 5vw, 3.5rem);
  margin-top: 3.2rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; display: block; }
.stat span { color: var(--faint); font-size: 0.83rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Genre cards ---------- */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.genre-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 1.5rem 1.3rem 1.3rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.genre-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--card-grad, var(--grad-brand-soft));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.genre-card:hover { transform: translateY(-5px); border-color: var(--border-bright); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.genre-card:hover::before { opacity: 0.22; }
.genre-card > * { position: relative; }
.genre-emoji { font-size: 1.7rem; margin-bottom: 0.8rem; display: block; }
.genre-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.genre-card p { color: var(--faint); font-size: 0.83rem; }

/* Genre equalizer bars */
.genre-eq { display: flex; gap: 3px; height: 16px; align-items: flex-end; margin-top: 1rem; opacity: 0.55; }
.genre-eq i { width: 3px; border-radius: 2px; background: var(--grad-brand); height: 30%; }
.genre-card:hover .genre-eq i { animation: eq 0.8s ease-in-out infinite alternate; }
.genre-eq i:nth-child(2n) { animation-delay: 0.15s; }
.genre-eq i:nth-child(3n) { animation-delay: 0.3s; }
.genre-eq i:nth-child(5n) { animation-delay: 0.45s; }

/* ---------- Trending ---------- */

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.track-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.track-card:hover { transform: translateY(-6px); border-color: var(--border-bright); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55); }

.track-art {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--art, var(--grad-brand));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.track-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
              linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
}
.track-art .art-note {
  font-size: 3rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
  z-index: 1;
  transition: transform 0.35s ease;
}
.track-card:hover .art-note { transform: scale(1.12) rotate(-6deg); }

.play-btn {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.25s ease;
}
.play-btn:hover { background: var(--violet); transform: scale(1.1); box-shadow: 0 0 26px rgba(124, 58, 237, 0.7); }

.track-meta { padding: 1.1rem 1.2rem 1.25rem; }
.track-meta h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.track-meta .artist { color: var(--muted); font-size: 0.86rem; }
.track-tags { display: flex; gap: 0.4rem; margin-top: 0.8rem; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--faint);
}

.track-wave { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 0.9rem; }
.track-wave i { flex: 1; background: rgba(255, 255, 255, 0.18); border-radius: 2px; height: var(--h, 40%); transition: background 0.3s ease; }
.track-card.playing .track-wave i { background: var(--grad-brand); animation: eq 0.7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 0.06s); }

/* ---------- Feature rows (Studio / Battle / Academy) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(4rem, 8vw, 6.5rem); }
.feature-row.flip .feature-visual { order: 2; }

.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy p { color: var(--muted); margin-bottom: 1.4rem; }
.feature-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.8rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.feature-list .tick {
  flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-bright);
  display: grid; place-items: center;
  font-size: 0.7rem; color: var(--cyan);
  margin-top: 2px;
}

.feature-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  padding: 1.6rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: "";
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.16), transparent 60%);
  pointer-events: none;
}

/* Vinyl generation mock */
.gen-mock { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.vinyl {
  width: 130px; height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg) 17%, transparent 18%),
    repeating-radial-gradient(circle, #17172a 0 3px, #101020 3px 6px);
  border: 1px solid var(--border);
  position: relative;
  animation: spin 6s linear infinite;
  flex: none;
}
.vinyl::after {
  content: "";
  position: absolute; inset: 34%;
  border-radius: 50%;
  background: var(--grad-brand);
}
.gen-lines { display: grid; gap: 0.55rem; }
.gen-line {
  height: 12px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden; position: relative;
}
.gen-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-brand);
  transform: translateX(-100%);
  animation: fill-line 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  border-radius: 6px;
}
.gen-steps { display: flex; gap: 0.5rem; margin-top: 1.3rem; flex-wrap: wrap; }
.gen-step {
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: var(--glass);
}

/* Battle mock */
.battle-mock { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.battle-side {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem;
  background: var(--glass);
  text-align: center;
}
.battle-side .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  margin: 0 auto 0.6rem;
  background: var(--av, var(--grad-brand));
}
.battle-side h4 { font-size: 0.9rem; font-family: var(--font-display); font-weight: 500; }
.battle-side .votes { color: var(--cyan); font-size: 0.82rem; margin-top: 0.35rem; }
.battle-vs {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vote-bar {
  height: 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.7rem; overflow: hidden;
}
.vote-bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--grad-brand); border-radius: 6px; }

/* Creativity score mock */
.score-mock { display: grid; gap: 0.8rem; }
.score-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: var(--muted); }
.score-track { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.score-fill { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.score-row b { color: var(--text); font-size: 0.85rem; text-align: right; }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.price-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 2rem 1.7rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-bright); }
.price-card.featured {
  background: linear-gradient(170deg, rgba(124, 58, 237, 0.16), rgba(34, 211, 238, 0.07)), var(--glass);
  border-color: var(--border-bright);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.28);
  position: relative;
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.32rem 0.95rem; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.price-card .plan-desc { color: var(--faint); font-size: 0.87rem; min-height: 2.4em; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin: 1.1rem 0 0.2rem; }
.price-amount small { font-family: var(--font-body); font-size: 0.95rem; color: var(--faint); font-weight: 400; }
.price-feats { list-style: none; display: grid; gap: 0.65rem; margin: 1.4rem 0 1.8rem; flex: 1; }
.price-feats li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.price-feats li::before { content: "✓"; color: var(--cyan); font-weight: 700; }

/* ---------- Testimonials ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 1.7rem 1.5rem;
}
.quote-card p { color: var(--muted); font-size: 0.97rem; }
.quote-card p::before { content: "“"; color: var(--purple); font-family: var(--font-display); }
.quote-card p::after { content: "”"; color: var(--purple); font-family: var(--font-display); }
.quote-who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.quote-who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--av, var(--grad-brand)); flex: none; }
.quote-who b { font-size: 0.92rem; display: block; }
.quote-who span { color: var(--faint); font-size: 0.8rem; }
.quote-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 0.8rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: var(--border-bright); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none;
  color: var(--text);
  font-size: 1rem; font-weight: 600;
  padding: 1.15rem 1.4rem;
  text-align: left;
}
.faq-q .chev { transition: transform 0.3s ease; color: var(--purple); flex: none; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(124, 58, 237, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 100% at 90% 120%, rgba(34, 211, 238, 0.18), transparent 60%),
    var(--bg-2);
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  overflow: hidden;
  position: relative;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--faint); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  color: var(--faint); font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ---------- Modal (Sign in / Register) ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 9, 0.7);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(420px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background: linear-gradient(170deg, var(--bg-3), var(--bg-2));
  padding: 2rem 1.8rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(124, 58, 237, 0.25);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.show .modal { transform: none; }
.modal-tabs { display: flex; gap: 0.4rem; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 1.6rem; }
.modal-tab {
  flex: 1; border: none; background: none;
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem; border-radius: 999px;
  transition: 0.25s ease;
}
.modal-tab.active { background: var(--grad-brand); color: #fff; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.field input {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus { border-color: var(--border-bright); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.modal .btn { width: 100%; margin-top: 0.4rem; }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: var(--glass); border: 1px solid var(--border);
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--muted); font-size: 1rem;
}
.modal { position: relative; }
.modal-note { text-align: center; color: var(--faint); font-size: 0.8rem; margin-top: 1.1rem; }

/* ---------- Accessibility ---------- */

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
