/* ============================================
   K Será — Cantos 3 Teaser
   Theatrical · Dark · Cinematic
   ============================================ */

:root {
  --bg-deep: #0a0908;
  --bg-mid: #121110;
  --bg-card: #161413;
  --text-primary: #f5f3f0;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent-amber: #f59e0b;
  --accent-gold: #d4a574;
  --accent-warm: #e8b88a;
  --accent-violet: #7c3aed;
  --accent-violet-dim: rgba(124, 58, 237, 0.15);
  --border-subtle: rgba(248, 250, 252, 0.06);
  --glow-amber: rgba(245, 158, 11, 0.25);
  --glow-violet: rgba(124, 58, 237, 0.2);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 100%);
  transition: background 0.4s var(--ease-out-expo);
}

.header.scrolled {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--accent-gold);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent-gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-amber) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation-delay: -14s;
}

.vinyl-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, var(--accent-violet-dim) 0%, transparent 60%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
}

.title-accent {
  font-weight: 600;
  color: var(--accent-gold);
  font-style: italic;
  animation-delay: 0.6s;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-credits {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}

.credit-divider {
  opacity: 0.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.3s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
  background: var(--accent-amber);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 40px var(--glow-amber);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s var(--ease-out-expo) 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Sections ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-number {
  font-size: 0.75em;
  font-weight: 300;
  color: var(--text-muted);
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.ticket-link {
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.ticket-link:hover {
  color: var(--accent-gold);
}

/* ========== Tour ========== */
.tour {
  padding: 6rem 0;
  background: var(--bg-mid);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.tour-date {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tour-date:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.tour-date time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
  padding: 0.5rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 4px;
}

.date-month {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.date-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}

.tour-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tour-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.tour-support {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== Listen ========== */
.listen {
  padding: 6rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
  border-color: var(--accent-amber);
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ========== Signup ========== */
.signup {
  padding: 6rem 0;
  background: var(--bg-mid);
}

.signup-form {
  max-width: 480px;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.signup-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent-amber);
}

.form-message {
  font-size: 0.875rem;
  min-height: 1.5rem;
}

.form-message.success {
  color: var(--accent-gold);
}

.form-message.error {
  color: #ef4444;
}

/* ========== Footer ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header.nav-open .nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-deep);
    z-index: 99;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: column;
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
