/* OurTalk landing — static, zero dependencies, Sunset palette (phase 8 section D).
   Standalone: no shared CSS with apps/web; glass values mirror the web tokens
   (bg white/6%, blur 20px, border white/10, rounded 20px, inset highlight). */

:root {
  --bg: #0d0a14;
  --glow-rose: rgba(244, 63, 94, 0.14);
  --glow-violet: rgba(139, 92, 246, 0.16);
  --accent-from: #f43f5e;
  --accent-to: #8b5cf6;
  --hover-from: #fb7185;
  --hover-to: #a78bfa;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--glow-rose), transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, var(--glow-violet), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 10vh, 112px) 0 clamp(56px, 9vh, 96px);
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 32px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(244, 63, 94, 0.22),
    0 8px 24px rgba(139, 92, 246, 0.18);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 44ch;
  margin: 0 auto 40px;
}

.cta {
  display: inline-block;
  padding: 18px 44px;
  border-radius: 9999px;
  background-image: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 10px 32px rgba(244, 63, 94, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-image 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  background-image: linear-gradient(135deg, var(--hover-from), var(--hover-to));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 14px 40px rgba(244, 63, 94, 0.36);
}

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

.cta:focus-visible {
  outline: 2px solid var(--hover-from);
  outline-offset: 3px;
}

/* ---------- Glass promise cards ---------- */

.promises {
  padding: 16px 0 clamp(48px, 8vh, 88px);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 32px 28px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.09);
}

.glass-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--text-dim);
}

/* ---------- How it works ---------- */

.how {
  padding: 0 0 clamp(64px, 10vh, 120px);
}

.how-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px 24px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #ffffff;
  background-image: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(244, 63, 94, 0.24);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.95rem;
}

.site-footer a {
  color: #fb7185;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fda4af;
  text-decoration: underline;
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowDrift {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    background-position: 6% 4%, 94% 96%;
  }
  100% {
    background-position: 0% 0%, 100% 100%;
  }
}

.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.42s; }

body {
  animation: glowDrift 18s ease-in-out infinite;
}

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

  .fade-up,
  body {
    animation: none;
  }

  .cta {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .cta {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
}
