/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Echoes — Design System
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  color-scheme: dark;

  /* ── Palette ── */
  --color-charcoal: #1b1b1b;
  --color-ink: #111216;
  --color-deep: #0a0a0c;
  --color-sand: #e6d9c0;
  --color-sand-warm: #d4c4a5;
  --color-mist: #f2f0eb;
  --color-muted: #a09d94;
  --color-overlay: rgba(10, 10, 12, 0.6);
  --color-card-bg: rgba(255, 255, 255, 0.04);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-card-hover: rgba(255, 255, 255, 0.07);
  --color-glow: rgba(230, 217, 192, 0.12);

  /* ── Typography ── */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* ── Spacing ── */
  --section-py: clamp(5rem, 10vh, 8rem);
  --container-px: clamp(1.5rem, 5vw, 4rem);
  --max-width: 1100px;

  /* ── Radii ── */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 999px;

  /* ── Shadows ── */
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(230, 217, 192, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-mist);
  background: var(--color-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  font: inherit;
}

.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;
}

/* ━━ Layout ━━ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  scroll-margin-top: 96px;
}

/* ━━ Shared Typography ━━ */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .subtitle {
  margin: 0.75rem auto 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.85) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.header-brand:hover {
  opacity: 0.8;
}

.header-icon {
  display: block;
  filter: brightness(0) invert(1);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-mist);
  background: transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, opacity 0.3s;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.ghost-button:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

/* Hide header CTA while hero is visible */
.header-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO — Cinematic, mood-first
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url("assets/echoes_hero_bg_clean.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Subtle dark overlay for text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 12, 0.70) 0%,
      rgba(10, 10, 12, 0.30) 30%,
      rgba(10, 10, 12, 0.15) 50%,
      rgba(10, 10, 12, 0.30) 70%,
      rgba(10, 10, 12, 0.75) 100%);
  z-index: 1;
}

/* Ambient mist effect */
.hero-mist {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

.hero-mist::before,
.hero-mist::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 20s ease-in-out infinite alternate;
}

.hero-mist::before {
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(230, 217, 192, 0.08), transparent 70%);
  top: 20%;
  left: 10%;
}

.hero-mist::after {
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(230, 217, 192, 0.06), transparent 70%);
  bottom: 25%;
  right: 5%;
  animation-delay: -10s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -20px) scale(1.1);
  }
}

/* Subtle center glow */
.hero-glow {
  position: absolute;
  width: 60%;
  height: 50%;
  top: 25%;
  left: 20%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(230, 217, 192, 0.05), transparent 60%);
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-wordmark {
  display: block;
  max-width: clamp(220px, 40vw, 400px);
  height: auto;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-tagline p {
  margin: 0;
}

/* Hero CTA button */
.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  background: var(--color-sand);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  z-index: 3;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 24px rgba(230, 217, 192, 0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(230, 217, 192, 0.35);
  background: var(--color-mist);
}

.hero-cta:active {
  transform: translateY(0);
}

/* Scroll cue removed */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WAITLIST SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.waitlist-section {
  background: var(--color-ink);
  text-align: center;
  padding: var(--section-py) 0;
  position: relative;
}

/* Top gradient bleed from hero */
.waitlist-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--color-deep), var(--color-ink));
  pointer-events: none;
}

.waitlist-content {
  max-width: 600px;
}

.waitlist-content h2 {
  margin-bottom: 0.75rem;
}

.waitlist-content .subtitle {
  margin: 0 auto 2rem;
}

/* ── Form ── */
.waitlist-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-row input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-mist);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

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

.form-row input:focus {
  border-color: var(--color-sand);
  box-shadow: 0 0 0 3px rgba(230, 217, 192, 0.15);
}

.form-row button {
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  background: var(--color-sand);
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}

.form-row button:hover {
  background: var(--color-sand-warm);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(230, 217, 192, 0.2);
}

.form-row button:active {
  transform: translateY(0);
}

.form-row button:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

/* Button loading state */
.btn-loading {
  display: none;
}

.form-row button.is-loading .btn-text {
  visibility: hidden;
}

.form-row button.is-loading .btn-loading {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.helper {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Form success / error */
.form-success {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  animation: fade-up 0.4s ease-out;
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success p {
  font-size: 1.05rem;
  color: var(--color-sand);
}

.form-error {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  animation: fade-up 0.4s ease-out;
}

.form-error:not([hidden]) {
  display: flex;
}

.form-error p {
  color: #e87c6e;
  font-size: 0.95rem;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VALUE PROPS — Glassmorphism cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.value-props {
  background: var(--color-charcoal);
  position: relative;
}

/* Blend from previous section */
.value-props::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--color-ink), var(--color-charcoal));
  pointer-events: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--color-card-hover);
  border-color: rgba(230, 217, 192, 0.15);
  box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.card-icon {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-mist);
}

.card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOUNDER QUOTE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.quote-section {
  background: var(--color-charcoal);
  position: relative;
}

.quote-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-card-border), transparent);
}

.quote-content {
  max-width: 720px;
  text-align: center;
}

.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-mist);
  opacity: 0.92;
}

.founder-quote p {
  margin: 0;
}

.quote-attribution {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sand);
  opacity: 0.8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOW IT WORKS — Timeline steps
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.how-it-works {
  background:
    linear-gradient(180deg, var(--color-charcoal) 0%, var(--color-ink) 50%, var(--color-deep) 100%);
  position: relative;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  position: relative;
}

.step-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-number {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-sand);
  min-width: 2.5rem;
}

.step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-card-border), transparent);
}

.step-body h3 {
  margin-bottom: 0.5rem;
}

.step-body p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOTTOM CTA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.cta {
  background: var(--color-deep);
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-card-border), transparent);
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-text .eyebrow {
  margin-bottom: 0.5rem;
}

.cta-text h2 {
  margin-bottom: 0.75rem;
}

.cta-form {
  width: 100%;
}

.cta-form .form-row {
  flex-direction: column;
}

.cta-form .form-row button {
  align-self: flex-start;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.site-footer {
  background: var(--color-deep);
  border-top: 1px solid var(--color-card-border);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.footer-icon {
  display: block;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-sand);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

.footer-meta {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  padding: 0 var(--container-px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REVEAL ANIMATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for cards/steps */
[data-reveal][data-delay="0"] {
  transition-delay: 0ms;
}

[data-reveal][data-delay="1"] {
  transition-delay: 120ms;
}

[data-reveal][data-delay="2"] {
  transition-delay: 240ms;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Tablet */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .cta-text .subtitle {
    margin: 0 auto 0;
  }

  .cta-form .form-row button {
    align-self: stretch;
  }
}

/* Mobile */
@media (max-width: 600px) {


  .hero-tagline {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .form-row {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOCUS STATES (Global)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}