:root {
  color-scheme: dark;
  --bg: #0a0714;
  --bg-soft: #120b24;
  --accent: #8e6cff;
  --accent-soft: #b9a1ff;
  --text: #f6f2ff;
  --muted: #b7adc9;
  --card: rgba(22, 15, 40, 0.88);
  --border: rgba(140, 110, 255, 0.35);
  --glow: 0 0 40px rgba(142, 108, 255, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #22143b 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  margin: 0 0 0.75rem;
}

p {
  line-height: 1.6;
  color: var(--muted);
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6vw 1.5rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6c5cff, #b089ff, #6c5cff);
  box-shadow: var(--glow);
}

.brand-title {
  font-weight: 600;
  display: block;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(142, 108, 255, 0.45);
}

.button.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.content {
  padding: 0 6vw 5rem;
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.trust-row h4 {
  font-size: 1.6rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--glow);
  backdrop-filter: blur(12px);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.hero-card li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.hero-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

.card-footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.grid article {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 10, 26, 0.75);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(142, 108, 255, 0.18), rgba(10, 7, 20, 0.9));
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.recordings {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.recordings-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
}

.recordings-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(16, 10, 26, 0.8);
}

.recordings-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.recordings-list {
  display: grid;
  gap: 1.5rem;
}

.recording-item {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 22, 0.75);
}

.recording-item audio {
  width: 320px;
  max-width: 100%;
}

.empty-state {
  padding: 2rem;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(12, 8, 22, 0.4);
}

.auth {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.auth-card {
  width: min(480px, 90vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--glow);
}

.auth-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
}

input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 7, 20, 0.6);
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(142, 108, 255, 0.2);
}

.auth-footer {
  margin-top: 1.5rem;
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(142, 108, 255, 0.2);
  border: 1px solid rgba(142, 108, 255, 0.5);
}

.flash.error {
  background: rgba(255, 80, 120, 0.2);
  border-color: rgba(255, 80, 120, 0.5);
}

.site-footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(142, 108, 255, 0.35), transparent 70%);
  top: -120px;
  left: -80px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  bottom: -80px;
  right: -40px;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  top: 40%;
  right: 20%;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
