:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f3ee;
  --text: #141414;
  --text-muted: #5a574f;
  --border: #141414;
  --shadow: #141414;
  --accent: #ff6b35;
  --accent-text: #141414;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

[data-theme='arcade_midnight'] {
  --bg: #0e1117;
  --surface: #161b24;
  --surface-muted: #1e2533;
  --text: #f7f9fc;
  --text-muted: #98a2b3;
  --border: #34d399;
  --shadow: #000000;
  --accent: #b6ff00;
  --accent-text: #0e1117;
}

[data-theme='matcha_clay'] {
  --bg: #f3f6ee;
  --surface: #fcfdf9;
  --surface-muted: #e6ece0;
  --text: #1d2b1f;
  --text-muted: #526354;
  --border: #2b3e2e;
  --shadow: #2b3e2e;
  --accent: #d46a43;
  --accent-text: #ffffff;
}

[data-theme='citrus_pop'] {
  --bg: #fff9e6;
  --surface: #ffffff;
  --surface-muted: #fdefc7;
  --text: #1a1508;
  --text-muted: #6e5b30;
  --border: #1a1508;
  --shadow: #1a1508;
  --accent: #f59e0b;
  --accent-text: #1a1508;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Tactile Primitives */
.tactile-card {
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 0 5px 0 0 var(--shadow);
  border-radius: 24px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.tactile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: 0 5px 0 0 var(--shadow);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tactile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 0 var(--shadow);
}

.tactile-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 0 var(--shadow);
}

.tactile-btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.tactile-btn-secondary {
  background: var(--surface);
  color: var(--text);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  background: #facc15;
  color: #141414;
  border: 1.5px solid #141414;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 900;
}

.chill-gradient {
  background: linear-gradient(125deg, #e898b8 0%, #7c6fe6 52%, #3b4fe0 100%) !important;
  color: #ffffff !important;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--surface-muted);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.brand-wordmark {
  height: 36px;
  width: auto;
  display: block;
}

[data-theme='arcade_midnight'] .brand {
  background: #ffffff;
  padding: 5px 10px;
  border: 2px solid #34d399;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 16px;
  font-size: 13px;
}

/* Hero */
.hero {
  padding: 54px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-muted);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Interactive Phone Card */
.phone-card {
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.room-header {
  padding: 16px 18px 14px;
  border-bottom: 2px solid var(--border);
  transition: background 0.3s ease;
}

.room-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.room-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-name {
  font-family: var(--font-display);
  font-size: 18px;
}

.room-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.78;
  margin-top: 2px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}

.chill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: var(--surface-muted);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.inline-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chill-gradient .chill-btn {
  background: rgba(255, 255, 255, 0.22);
}

.member-rings {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.ring-outer {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2.5px solid;
  padding: 2px;
  background: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #141414;
}

.squad-meter {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.meter-seg {
  flex: 1;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(120, 120, 120, 0.28);
  background: var(--surface-muted);
  transition: all 0.25s ease;
}

.meter-seg.filled {
  border: 1.5px solid #141414;
}

.meter-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.momentum-pending {
  color: #ff6b35;
}

.momentum-locked {
  color: #05b87a;
}

.chill-gradient .momentum-pending,
.chill-gradient .momentum-locked {
  color: #ffffff;
}

.room-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #141414;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #141414;
  flex-shrink: 0;
}

.voice-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-sender {
  font-size: 11px;
  font-weight: 800;
  color: #ff6b35;
}

.voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 2px solid #ff6b35;
  background: var(--surface);
  color: #ff6b35;
}

.play-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ff6b35;
  border: 1.5px solid #141414;
  color: #141414;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wave-bar {
  width: 3px;
  border-radius: 4px;
  background: #ff6b35;
  transition: height 0.2s ease;
}

.voice-time {
  font-size: 12px;
  font-weight: 800;
}

.drop-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 0 var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.drop-strip {
  background: #ff2e88;
  color: #141414;
  padding: 7px 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
}

.drop-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drop-prompt {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.poll-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
}

.poll-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 0.35s ease;
}

.poll-chip {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #141414;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.poll-name {
  position: relative;
  flex: 1;
}

.poll-pct {
  position: relative;
  font-size: 12px;
  font-weight: 800;
}

.drop-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b35;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card h3 {
  font-size: 22px;
}

.bento-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid #141414;
  box-shadow: 0 3px 0 0 #141414;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Soundboard */
.soundboard-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.soundboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.soundboard-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.soundboard-title-row h3 {
  font-size: 22px;
}

.unlock-pill {
  background: #ff6b35;
  color: #141414;
  border: 1.5px solid #141414;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 900;
}

.sound-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
}

.pad-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  min-height: 92px;
  border-radius: 18px;
  border: 2px solid #141414;
  box-shadow: 0 5px 0 0 #141414;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pad-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 0 #141414;
}

.pad-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.pad-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.ripple-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

@keyframes rippleExpand {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes floatUp {
  0% { transform: translateY(16px) scale(0.8); opacity: 1; }
  100% { transform: translateY(-90px) scale(1.25); opacity: 0; }
}

.ripple-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 6px solid;
  animation: rippleExpand 0.85s ease-out forwards;
}

.floating-badge {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 2px solid #141414;
  box-shadow: 0 4px 0 0 #141414;
  display: grid;
  place-items: center;
  animation: floatUp 0.9s ease-out forwards;
}

/* Themes Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.theme-btn {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--text);
}

.theme-btn.active {
  transform: translateY(-3px);
  outline: 3px solid #ff6b35;
  outline-offset: 3px;
}

.theme-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #141414;
  flex-shrink: 0;
}

.theme-name {
  font-weight: 900;
  font-size: 16px;
}

.theme-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* CTA Banner */
.cta-banner {
  background: #facc15;
  color: #141414;
  border-color: #141414;
  box-shadow: 0 6px 0 0 #141414;
  padding: 44px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-copy {
  max-width: 560px;
}

.cta-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.cta-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 10px;
}

.cta-copy p {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-dark {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
  box-shadow: 0 5px 0 0 #44403c;
}

.cta-white {
  background: #ffffff;
  color: #141414;
  border-color: #141414;
  box-shadow: 0 5px 0 0 #141414;
}

/* Footer */
.footer {
  border-top: 2px solid var(--surface-muted);
  padding: 28px 0 42px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  padding: 26px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
}

.modal-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #ff6b35;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.invite-input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 2px solid var(--border);
  box-shadow: 0 3px 0 0 var(--shadow);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 16px;
}

.invite-preview {
  padding: 16px;
  border-radius: 18px;
  border: 2px solid var(--border);
  background: var(--surface-muted);
  margin-bottom: 16px;
}

.modal-cta {
  width: 100%;
}

@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
