/* Simple Sleep Hypnosis — shared theme */

:root {
  --bg-deep: #050510;
  --bg-mid: #12122a;
  --bg-glow: #1a1a40;
  --text: #f5f8ff;
  --text-muted: rgba(245, 248, 255, 0.72);
  --moon-purple: #8b7ec8;
  --moon-soft: #b8a9e8;
  --wave-cyan: #4dd4e8;
  --wave-blue: #6eb8ff;
  --glow-cyan: rgba(77, 212, 232, 0.35);
  --glow-purple: rgba(139, 126, 200, 0.25);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--glow-purple), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(77, 212, 232, 0.08), transparent 50%),
    radial-gradient(circle at 50% 35%, var(--bg-glow) 0%, var(--bg-deep) 55%, #020208 100%);
  position: relative;
  overflow-x: hidden;
}

/* Subtle star field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 25% 55%, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 92% 70%, rgba(255, 255, 255, 0.3) 50%, transparent 50%);
  background-size: 100% 100%;
  opacity: 0.85;
  animation: twinkle 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

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

.site-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(139, 126, 200, 0.15);
  background: rgba(5, 5, 16, 0.45);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-link img {
  width: clamp(48px, 10vw, 64px);
  height: auto;
  filter: drop-shadow(0 0 12px var(--glow-cyan));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-script {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px var(--glow-purple);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 16px var(--glow-cyan);
}

.nav a[aria-current="page"] {
  color: var(--wave-cyan);
  border-bottom-color: var(--wave-cyan);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  animation: fade-up 0.9s ease-out both;
}

.hero-logo {
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 28px var(--glow-purple)) drop-shadow(0 8px 32px rgba(77, 212, 232, 0.2));
}

.hero h1 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  text-shadow: 0 0 40px var(--glow-purple);
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(139, 126, 200, 0.35), rgba(77, 212, 232, 0.2));
  border: 1px solid rgba(139, 126, 200, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--glow-purple);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-cyan);
  border-color: var(--wave-cyan);
}

.btn-secondary {
  background: rgba(18, 18, 42, 0.6);
  border-color: rgba(110, 184, 255, 0.35);
}

.content-block {
  background: rgba(18, 18, 42, 0.55);
  border: 1px solid rgba(139, 126, 200, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: fade-up 0.85s ease-out 0.1s both;
}

.content-block h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wave-cyan);
  margin: 0 0 1rem;
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.65rem;
  color: var(--moon-soft);
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.content-block p:last-child {
  margin-bottom: 0;
}

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tips-list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid rgba(139, 126, 200, 0.12);
  color: var(--text-muted);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moon-purple), var(--wave-cyan));
  box-shadow: 0 0 12px var(--glow-cyan);
}

.tips-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.policy-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.policy-list li {
  margin-bottom: 0.5rem;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--wave-cyan);
  border-bottom-color: var(--wave-cyan);
}

.faq-placeholder {
  border: 1px dashed rgba(139, 126, 200, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label,
.form-field legend {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.form-field fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form-field .optional {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(5, 5, 16, 0.6);
  border: 1px solid rgba(139, 126, 200, 0.35);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--wave-cyan);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.platform-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  cursor: pointer;
}

.platform-options input[type="radio"] {
  accent-color: var(--wave-cyan);
  width: 1.1rem;
  height: 1.1rem;
}

.form-actions {
  margin-top: 0.25rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status[data-state="success"] {
  color: var(--wave-cyan);
}

.form-status[data-state="error"] {
  color: #f5a8b8;
}

.form-status[data-state="pending"] {
  color: var(--text-muted);
}

.download-sections {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.download-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.download-card p {
  flex: 1;
}

.download-btn {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.video-section {
  margin-top: 2rem;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(77, 212, 232, 0.25);
  box-shadow: 0 8px 40px var(--glow-cyan);
  background: rgba(5, 5, 16, 0.8);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(26, 26, 64, 0.9), var(--bg-deep));
  color: var(--text-muted);
  font-size: 0.95rem;
}

.video-placeholder[hidden] {
  display: none !important;
}

.video-placeholder .script-note {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  text-align: center;
  border-top: 1px solid rgba(139, 126, 200, 0.12);
  background: rgba(5, 5, 16, 0.5);
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--wave-cyan);
  color: var(--bg-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }
}
