/* ============================================
   Aria Landing Page — "Nightlight in the Dark"
   She glows. The page breathes around her.
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg:             #0C0A09;
  --bg-card:        #161311;
  --bg-surface:     #1E1A17;
  --text-primary:   #F5EDE6;
  --text-secondary: #B5A89C;
  --text-tertiary:  #6B5F55;
  --coral:          #E8845F;
  --coral-deep:     #C96B48;
  --gold:           #D4A574;
  --amber:          #C48B4A;
  --sage:           #81B29A;
  --lavender:       #9F8FBF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --max-width: 720px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input {
  font-family: inherit; font-size: inherit;
  border: none; outline: none; background: none; color: inherit;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100%; left: var(--space-md);
  background: var(--coral); color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm); z-index: 100; font-size: 14px;
}
.skip-link:focus { top: var(--space-md); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

/* --- Floating Particles --- */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { width: 3px; height: 3px; left: 12%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; left: 28%; animation-duration: 22s; animation-delay: -4s; background: var(--gold); }
.particle:nth-child(3) { width: 4px; height: 4px; left: 45%; animation-duration: 16s; animation-delay: -8s; }
.particle:nth-child(4) { width: 2px; height: 2px; left: 62%; animation-duration: 20s; animation-delay: -2s; background: var(--amber); }
.particle:nth-child(5) { width: 3px; height: 3px; left: 78%; animation-duration: 24s; animation-delay: -6s; background: var(--gold); }
.particle:nth-child(6) { width: 2px; height: 2px; left: 88%; animation-duration: 19s; animation-delay: -10s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 35%; animation-duration: 21s; animation-delay: -14s; background: var(--amber); }
.particle:nth-child(8) { width: 2px; height: 2px; left: 55%; animation-duration: 17s; animation-delay: -12s; background: var(--gold); }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { opacity: 0.3; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--space-md) var(--space-lg);
  background: rgba(12, 10, 9, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--coral);
  letter-spacing: 0.02em;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* Big warm glow behind hero icon */
.hero::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
    rgba(232, 132, 95, 0.15) 0%,
    rgba(196, 139, 74, 0.08) 30%,
    rgba(232, 132, 95, 0.03) 55%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-icon {
  position: relative;
  margin-bottom: var(--space-lg);
}

.hero-icon img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  animation: heroBreath 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(232, 132, 95, 0.35))
          drop-shadow(0 0 80px rgba(196, 139, 74, 0.15));
}

@keyframes heroBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 640px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-note {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 14px var(--space-xl);
  background: var(--coral);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 20px rgba(232, 132, 95, 0.3),
    0 0 60px rgba(232, 132, 95, 0.1);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 30px rgba(232, 132, 95, 0.4),
    0 0 80px rgba(232, 132, 95, 0.15);
}

.btn-primary:active { transform: scale(0.97); }

/* --- Section Headings --- */
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

/* --- Prose --- */
.prose p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.prose p:last-child { margin-bottom: 0; }

/* --- Steps --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  border: 1px solid rgba(232, 132, 95, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  border-color: rgba(232, 132, 95, 0.12);
  box-shadow: 0 0 40px rgba(232, 132, 95, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: var(--bg);
  font-size: 14px; font-weight: 700;
  margin-bottom: var(--space-md);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Differentiators --- */
.diff-grid { display: grid; gap: var(--space-lg); }

.diff-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid rgba(232, 132, 95, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
  border-color: rgba(232, 132, 95, 0.12);
  box-shadow: 0 0 40px rgba(232, 132, 95, 0.04);
}

.diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.diff-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Emotional Proof --- */
.proof-grid { display: grid; gap: var(--space-lg); }

.proof-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid rgba(232, 132, 95, 0.06);
}

.proof-you {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.proof-you em {
  color: var(--coral);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05em;
}

.proof-aria {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  border-left: 2px solid var(--amber);
}

/* --- Anti-Features --- */
.anti-list {
  display: flex; flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.anti-list li {
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
  font-size: 15px;
}

.anti-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--sage);
  opacity: 0.7;
}

.anti-close {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

/* --- Personal Touch --- */
#personal .prose p { color: var(--text-secondary); }

/* --- Aria Character + Waitlist CTA --- */
.section-cta {
  text-align: center;
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* Massive ambient glow */
.section-cta::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(196, 139, 74, 0.12) 0%,
    rgba(232, 132, 95, 0.06) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.aria-character {
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.aria-character img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  /* Seamless blend: fade edges into page bg */
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 50%, transparent 100%);
}

.cta-sub {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}

.waitlist-form {
  max-width: 440px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row input {
  flex: 1;
  padding: 14px var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 16px;
  border: 1px solid rgba(232, 132, 95, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.form-row input::placeholder { color: var(--text-tertiary); }

.form-row input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 20px rgba(232, 132, 95, 0.1);
  outline: none;
}

.btn-submit {
  white-space: nowrap;
  padding: 14px var(--space-lg);
  flex-shrink: 0;
}

.form-error { color: var(--coral); font-size: 14px; margin-top: var(--space-sm); }

.form-success p {
  color: var(--sage); font-size: 1.1rem; font-weight: 600;
  margin-top: var(--space-md);
}

.form-note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid rgba(232, 132, 95, 0.06);
  position: relative;
  z-index: 1;
}

.footer-note { font-size: 13px; color: var(--text-tertiary); margin-bottom: var(--space-md); }

.footer-links {
  display: flex; justify-content: center;
  gap: var(--space-lg); margin-bottom: var(--space-md);
}

.footer-links a {
  font-size: 14px; color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--coral); }

.footer-credit { font-size: 13px; color: var(--text-tertiary); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary { transition: none; }
  .step-card, .diff-card { transition: none; }
  .form-row input { transition: none; }
  .footer-links a { transition: none; }
  .hero-icon img { animation: none; }
  .particle { animation: none; display: none; }
}

/* --- Tablet (640px+) --- */
@media (min-width: 640px) {
  .hero-icon img { width: 200px; height: 200px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Desktop (960px+) --- */
@media (min-width: 960px) {
  :root { --max-width: 800px; }
  .section { padding: var(--space-5xl) 0; }
  .section-cta { padding: var(--space-5xl) 0; }
  .hero-icon img { width: 220px; height: 220px; }
  .steps { flex-direction: row; }
  .step-card { flex: 1; }
}

/* --- Small screens (< 480px) --- */
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .btn-submit { width: 100%; text-align: center; }
  .hero-icon img { width: 140px; height: 140px; }
}
