@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,300,0,0');

:root {
  --bg: #070506;
  --bg-secondary: #0d0a0b;
  --accent: #9b0f1f;
  --accent-strong: #c32232;
  --glow: rgba(255, 87, 34, 0.45);
  --text: #f4eee8;
  --muted: #bbaaa5;
  --watermark: rgba(255, 120, 80, 0.05);
  --watermark-strong: rgba(255, 120, 80, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --card-blur: blur(12px);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(155, 15, 31, 0.2);
  --transition: 300ms ease;
}

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

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 15, 31, 0.06), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 87, 34, 0.07), transparent 30%),
    linear-gradient(145deg, #060405, #0d090b);
  color: var(--text);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '🔥';
  position: fixed;
  inset: -10% 0 0 auto;
  margin-right: -8vw;
  font-size: 38vw;
  color: var(--watermark);
  filter: blur(2px) drop-shadow(0 0 28px var(--watermark-strong));
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(-12deg);
  animation: slowFloat 14s ease-in-out infinite;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: var(--card-blur);
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.9), rgba(7, 5, 6, 0.6));
  border-bottom: 1px solid var(--border);
  animation: glowPulse 8s ease-in-out infinite;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  inset: 12px -10px -8px -14px;
  background: radial-gradient(circle, rgba(195, 34, 50, 0.12), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(195, 34, 50, 0.22), rgba(255, 120, 80, 0.16));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
  animation: floaty 5s ease-in-out infinite;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.16), transparent 60%);
  filter: blur(12px);
}

.brand-flame {
  font-size: 28px;
  transform: translateY(1px);
}

.brand-heart {
  position: absolute;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transform: translateY(1px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-button {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.menu-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(155, 15, 31, 0.35);
  transform: translateY(-1px);
}

.menu-button .material-symbols-outlined {
  font-size: 22px;
}

.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 4, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 7;
}

.overlay-menu.active {
  opacity: 1;
  pointer-events: all;
}

.menu-panel {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(155, 15, 31, 0.04));
  padding: 28px;
  border-radius: 16px;
  min-width: 280px;
  box-shadow: 0 0 30px rgba(155, 15, 31, 0.25);
}

.menu-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.menu-panel a:hover {
  background: var(--glass);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(155, 15, 31, 0.2);
}

.container {
  padding: 48px 24px 72px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero {
  display: grid;
  gap: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 32px 20px;
  animation:
    heroReveal 0.9s ease,
    floaty 9s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(155, 15, 31, 0.17), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 87, 34, 0.18), transparent 30%);
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.65;
}

.hero-title {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  background-image: linear-gradient(120deg, rgba(195, 34, 50, 0.08), rgba(255, 255, 255, 0));
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.btn:hover {
  box-shadow: 0 0 22px rgba(155, 15, 31, 0.35);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.btn:active {
  transform: translateY(0);
  filter: brightness(1.06);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--glass);
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(155, 15, 31, 0.8);
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 32px;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(155, 15, 31, 0.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: cardRise 0.8s ease forwards;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(255, 87, 34, 0.14), transparent 40%);
  opacity: 0.6;
}

.card h2,
.card h3 {
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.card p {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.pill:hover {
  border-color: var(--accent);
  background: rgba(155, 15, 31, 0.14);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.chip:hover {
  border-color: var(--accent);
  background: rgba(155, 15, 31, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.heat-range-wrap {
  display: grid;
  gap: 8px;
}

.heat-range {
  width: 100%;
  accent-color: var(--accent-strong);
}

.range-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.range-legend span {
  width: 16px;
  text-align: center;
}

.dark-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dark-glass::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
}

.list-muted {
  color: var(--muted);
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-muted.tight {
  gap: 6px;
}

.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vibe-tracks {
  margin-top: -18px;
  position: relative;
  z-index: 1;
}

.signal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.signal-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.signal-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.signal-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.85rem;
}

.selection-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.glow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5722, #9b0f1f);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.65);
  animation: glowPulse 2.6s ease-in-out infinite;
}

.flame-accent {
  color: var(--accent-strong);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.footer-line {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

.selection-console {
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.selection-body {
  display: grid;
  gap: 12px;
}

.selection-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.selection-output {
  font-size: 1.1rem;
  color: var(--text);
  min-height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
}

.selection-note-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.selection-note {
  background: rgba(255, 255, 255, 0.02);
}

.selection-status {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 20px;
}

.selection-status[data-tone='pending'] {
  color: #ffb347;
}

.selection-status[data-tone='success'] {
  color: #8be9c4;
}

.selection-status[data-tone='error'] {
  color: #ff6b6b;
}

.selection-status[data-tone='info'] {
  color: #c7d0ff;
}

.selection-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-subtle {
  color: var(--muted);
}

.calendar-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.calendar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 5, 6, 0.6), transparent 40%);
  pointer-events: none;
}

.calendar-frame {
  width: 100%;
  filter: invert(0.92) hue-rotate(180deg) contrast(0.95);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.calendar-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(155, 15, 31, 0.05));
  box-shadow: var(--shadow);
}

.calendar-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.calendar-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.card-grid iframe,
.dark-glass iframe {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Access Gate */
.access-gate {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 5, 6, 0.96), rgba(7, 5, 6, 0.88));
  backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.access-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-panel {
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(155, 15, 31, 0.05));
  padding: 32px 26px;
  border-radius: 18px;
  max-width: 400px;
  width: min(90%, 440px);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-title {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-subtitle {
  color: var(--muted);
  margin: 8px 0 18px;
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  margin-bottom: 14px;
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(155, 15, 31, 0.35);
}

.gate-error {
  color: var(--accent-strong);
  min-height: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.shake {
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(255, 87, 34, 0.65);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 120, 80, 0.85);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowFloat {
  0% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-12px) rotate(-10deg);
  }
  100% {
    transform: translateY(0) rotate(-12deg);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    padding: 14px 18px;
  }
  .hero {
    padding: 26px 12px;
  }
  .menu-panel {
    width: calc(100% - 32px);
  }
}
