/* ============================================
   Сказочник — Landing
   Night-sky SaaS aesthetic
   ============================================ */

:root {
  --bg-0: #070B16;
  --bg-1: #0E1323;
  --bg-2: #121A2E;
  --accent: #6C63FF;
  --accent-2: #7B61FF;
  --accent-3: #8B7CFF;
  --gold: #FFD56A;
  --sky: #8FD3FF;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(108, 99, 255, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --container: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 720px);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head p {
  margin: 0;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(143, 211, 255, 0.08);
  border: 1px solid rgba(143, 211, 255, 0.2);
}

/* ---------- Sky background ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(108, 99, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 60%, rgba(255, 213, 106, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.sky__glow--violet {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 8%;
  background: var(--accent);
}

.sky__glow--gold {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: 5%;
  background: var(--gold);
  opacity: 0.18;
}

.sky__moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff9e6, #ffe09a 45%, #e8c56a 100%);
  box-shadow:
    0 0 40px rgba(255, 213, 106, 0.55),
    0 0 100px rgba(255, 213, 106, 0.25),
    inset -12px -8px 0 rgba(7, 11, 22, 0.12);
  animation: moonFloat 10s ease-in-out infinite;
}

.sky__stars,
.sky__particles {
  position: absolute;
  inset: 0;
}

.sky__star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.sky__star--lg {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.sky__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(139, 124, 255, 0.7);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.6);
  animation: drift var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.sky__cloud {
  position: absolute;
  width: 220px;
  height: 70px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(2px);
  animation: cloudMove 40s linear infinite;
}

.sky__cloud::before,
.sky__cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.sky__cloud::before {
  width: 90px;
  height: 90px;
  top: -40px;
  left: 30px;
}

.sky__cloud::after {
  width: 70px;
  height: 70px;
  top: -28px;
  right: 36px;
}

.sky__cloud--1 { top: 18%; left: -10%; animation-duration: 55s; }
.sky__cloud--2 { top: 42%; right: -15%; animation-duration: 70s; animation-direction: reverse; opacity: 0.7; }
.sky__cloud--3 { bottom: 22%; left: 20%; width: 160px; animation-duration: 48s; opacity: 0.5; }

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes drift {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

@keyframes cloudMove {
  from { transform: translateX(0); }
  to { transform: translateX(120vw); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.5), var(--glow); }
  50% { box-shadow: 0 0 0 12px rgba(108, 99, 255, 0), 0 0 50px rgba(108, 99, 255, 0.65); }
}

@keyframes barGrow {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes spinSoft {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50% { transform: scale(1.08) rotate(6deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn--xl { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  color: var(--white);
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(108, 99, 255, 0.7);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.glow-pulse {
  animation: glowPulse 2.8s ease-in-out infinite;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.is-scrolled {
  background: rgba(7, 11, 22, 0.82);
  border-bottom-color: var(--glass-border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255, 213, 106, 0.35);
  border: 2px solid rgba(255, 213, 106, 0.35);
  flex-shrink: 0;
}

.logo__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo__avatar svg {
  width: 100%;
  height: 100%;
}

.logo__avatar--sm {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--bg-2);
}

.logo__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(14, 19, 35, 0.95);
  border-bottom: 1px solid var(--glass-border);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--glass);
  text-align: center;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__sub {
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero__trust {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Phone mockup */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #1c243b, #0a0e1a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), 0 0 60px rgba(108, 99, 255, 0.25);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 20px;
  background: #05070f;
  z-index: 3;
}

.phone__screen {
  position: relative;
  border-radius: 28px;
  min-height: 520px;
  padding: 2.4rem 1.15rem 1.4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.25), transparent 55%),
    linear-gradient(180deg, #141c32 0%, #0c1222 100%);
  overflow: hidden;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.1rem;
}

.phone__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-family: var(--display);
}

.phone__bear {
  font-size: 1.3rem;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.field span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  outline: none;
}

.phone__loading,
.phone__done {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 340px;
  gap: 0.5rem;
  padding-top: 2rem;
}

.phone__loading[hidden],
.phone__done[hidden],
.phone__form[hidden] {
  display: none !important;
}

.phone__spinner {
  font-size: 3rem;
  animation: spinSoft 1.6s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.phone__loading p,
.phone__done p {
  margin: 0;
}

.phone__hint {
  font-size: 0.8rem !important;
}

.phone__bar {
  width: 70%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0.8rem 0;
}

.phone__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.phone__loading.is-running .phone__bar span {
  animation: barGrow 2.4s var(--ease) forwards;
}

.phone__done-icon {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
}

.phone__done-title {
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.15rem;
}

.phone__done-name {
  color: var(--gold) !important;
  margin-bottom: 1.2rem !important;
}

.phone__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(90px);
  opacity: 0.35;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
}

/* ---------- Glass cards ---------- */
.glass-card,
.example-card,
.love-card,
.review-card,
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.glass-card {
  padding: 1.6rem 1.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 124, 255, 0.4);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.2);
}

.glass-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.glass-card h3,
.example-card h3,
.love-card h3 {
  color: var(--white);
  margin-bottom: 0.45rem;
}

.glass-card p {
  margin: 0;
  font-size: 0.95rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

/* ---------- How it works ---------- */
.how__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.how__line {
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-3), var(--gold), var(--accent-3), transparent);
  opacity: 0.55;
  z-index: 0;
}

.how__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.how__num {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.35), rgba(14, 19, 35, 0.9));
  border: 1px solid rgba(139, 124, 255, 0.45);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
  color: var(--white);
}

.how__step h3 {
  color: var(--white);
}

.how__step p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Examples ---------- */
.examples__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.example-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.example-card:hover {
  transform: scale(1.04);
  border-color: rgba(255, 213, 106, 0.35);
  box-shadow: 0 20px 50px rgba(255, 213, 106, 0.12);
}

.example-card__emoji {
  font-size: 2.4rem;
  margin-bottom: 0.9rem;
}

.example-card h3 {
  font-size: 1rem;
  min-height: 2.6em;
}

.example-card.is-playing {
  border-color: var(--accent-3);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.3);
}

/* ---------- Configurator ---------- */
.config__panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.config__group {
  margin-bottom: 1.6rem;
}

.config__group h3 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font);
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.25s var(--ease);
}

.chips--emoji .chip {
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}

.chip:hover {
  border-color: rgba(139, 124, 255, 0.5);
  background: rgba(108, 99, 255, 0.12);
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.45), rgba(123, 97, 255, 0.25));
  border-color: var(--accent-3);
  color: var(--white);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.35);
}

.config__cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* ---------- Love ---------- */
.love__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.love-card {
  padding: 1.8rem 1.6rem;
  transition: transform 0.35s var(--ease);
}

.love-card:hover {
  transform: translateY(-4px);
}

.love-card span {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.7rem;
}

.love-card p {
  margin: 0;
}

.love-card--wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, rgba(108, 99, 255, 0.18), rgba(255, 213, 106, 0.08)),
    var(--glass);
}

/* ---------- Reviews slider ---------- */
.slider {
  max-width: 680px;
  margin: 0 auto;
}

.slider__track {
  position: relative;
  min-height: 240px;
}

.review-card {
  position: absolute;
  inset: 0;
  padding: 2rem 1.8rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.review-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.review-card__stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-card p {
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--display);
  line-height: 1.45;
}

.review-card footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 1.4rem;
  line-height: 1;
  transition: 0.25s;
}

.slider__btn:hover {
  border-color: var(--accent-3);
  background: rgba(108, 99, 255, 0.2);
}

.slider__dots {
  display: flex;
  gap: 0.45rem;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.25s;
}

.slider__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent-3);
}

/* ---------- FAQ ---------- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq__item[open] {
  border-color: rgba(139, 124, 255, 0.4);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-3);
  transition: transform 0.25s;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  font-size: 0.98rem;
}

/* ---------- CTA ---------- */
.cta__panel {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.3), transparent 55%),
    var(--glass);
  border-color: rgba(139, 124, 255, 0.3);
}

.cta__panel h2 {
  margin-bottom: 0.5rem;
}

.cta__panel > p {
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
}

.cta__decor {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 11, 22, 0.6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 100;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: rgba(18, 26, 46, 0.95);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block !important;
  visibility: hidden;
}

.toast.is-visible[hidden] {
  visibility: visible;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .benefits__grid,
  .examples__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__phone {
    order: -1;
  }

  .phone {
    width: min(100%, 290px);
  }

  .how__line {
    display: none;
  }
}

@media (max-width: 720px) {
  .header__nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .benefits__grid,
  .examples__grid,
  .how__track,
  .love__grid {
    grid-template-columns: 1fr;
  }

  .love-card--wide {
    grid-column: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .sky__moon {
    width: 56px;
    height: 56px;
    top: 6%;
    right: 6%;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
