/**
 * Dash Flick iOS — editorial / asymmetric layout
 * Palette: #0b101d, #64d8b8, #3a87a3
 */

:root {
  --bg-deep: #0b101d;
  --bg-elevated: #111827;
  --accent-mint: #64d8b8;
  --accent-teal: #3a87a3;
  --text: #e8f0f7;
  --text-muted: #94a3b8;
  /* CTA: solid mint (avoids muddy mint↔teal diagonal blends) */
  --accent-cta: #52d4b8;
  --accent-cta-hover: #6ae4c8;
  --accent-cta-text: #061018;
  /* Hero accent line: same hue family, vertical only */
  --gradient-hero-accent: linear-gradient(180deg, #9ef0e0 0%, #52d4b8 52%, #3eb89e 100%);
  --radius-lg: 20px;
  --radius-md: 12px;
  --nav-float-top: 1.25rem;
  --shadow-glow: 0 0 60px rgba(100, 216, 184, 0.12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-deep);
  overflow: hidden;
}

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  animation: float-blob 22s ease-in-out infinite;
}

.bg-aurora::before {
  width: min(75vw, 560px);
  height: min(75vw, 560px);
  background: radial-gradient(circle, #64d8b8 0%, transparent 72%);
  top: -12%;
  right: -8%;
}

.bg-aurora::after {
  width: min(55vw, 400px);
  height: min(55vw, 400px);
  background: radial-gradient(circle, #3a87a3 0%, transparent 72%);
  bottom: 5%;
  left: -18%;
  animation-delay: -7s;
}

@keyframes float-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, 3%) scale(1.06);
  }
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1080px, 100% - 2rem);
  margin-inline: auto;
}

/* —— Floating capsule navbar —— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--nav-float-top) 1rem 0;
  pointer-events: none;
}

.navbar-shell {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(11, 16, 29, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(100, 216, 184, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled .navbar-shell {
  background: rgba(11, 16, 29, 0.9);
  border-color: rgba(100, 216, 184, 0.32);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.1rem 0.55rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  opacity: 0.72;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(100, 216, 184, 0.25);
  background: rgba(17, 24, 39, 0.5);
}

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

.nav-links-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-mint);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cta-text);
  background: var(--accent-cta);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 22px rgba(82, 212, 184, 0.22);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-cta-hover);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 30px rgba(82, 212, 184, 0.3);
}

.nav-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-cta-hover);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 30px rgba(82, 212, 184, 0.3),
    0 0 0 3px rgba(11, 16, 29, 0.95),
    0 0 0 5px rgba(100, 216, 184, 0.55);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(100, 216, 184, 0.28);
  background: rgba(17, 24, 39, 0.5);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  border-color: var(--accent-mint);
  background: rgba(100, 216, 184, 0.1);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0;
  }

  .navbar-shell {
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links-wrap {
    flex: unset;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(11, 16, 29, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(100, 216, 184, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  }

  .nav-links-wrap.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-links a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.9rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.65rem;
  }
}

/* —— Editorial hero —— */
.hero--editorial {
  position: relative;
  min-height: min(100vh, 900px);
  padding: calc(var(--nav-float-top) + 4.5rem) 0 4rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero--editorial {
    min-height: unset;
    padding: calc(58px + 2.5rem) 0 3rem;
  }
}

.hero-typefield {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: min(4vw, 2rem);
  pointer-events: none;
  user-select: none;
}

.hero-typefield__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(100, 216, 184, 0.06);
  text-transform: uppercase;
}

.hero-typefield__line--ghost {
  color: rgba(58, 135, 163, 0.07);
  margin-top: -0.08em;
}

@media (max-width: 900px) {
  .hero-typefield {
    align-items: center;
    padding-right: 0;
    opacity: 0.5;
  }
}

.hero-editorial-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-editorial-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-mint);
  background: rgba(100, 216, 184, 0.08);
  border: 1px solid rgba(100, 216, 184, 0.22);
  margin: 0 0 1.25rem;
}

@media (max-width: 900px) {
  .hero-eyebrow {
    margin-inline: auto;
  }
}

.hero--editorial h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-title-accent {
  background: var(--gradient-hero-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-mint);
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero-lead {
    margin-inline: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-appstore:hover,
.btn-appstore:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-mint);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  outline: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(100, 216, 184, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(100, 216, 184, 0.08);
  border-color: var(--accent-mint);
  outline: none;
}

/* Device cluster */
.device-cluster {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-cluster__orbit {
  position: absolute;
  width: 120%;
  height: 120%;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  border: 1px dashed rgba(100, 216, 184, 0.15);
  animation: spin-slow 48s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .device-cluster__orbit {
    animation: none;
  }
}

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

.device-cluster__phone {
  position: relative;
  z-index: 2;
}

.phone-frame {
  position: relative;
  width: min(260px, 68vw);
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 45%, #152238 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(100, 216, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 20px;
  background: #0b101d;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #0b101d;
}

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

.device-cluster__card {
  position: absolute;
  z-index: 3;
  width: min(112px, 28vw);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(100, 216, 184, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.device-cluster__card img {
  width: 100%;
  height: auto;
  display: block;
}

.device-cluster__card:hover {
  transform: scale(1.04) rotate(0deg);
  border-color: var(--accent-mint);
}

.device-cluster__card--a {
  top: 8%;
  left: 0;
  transform: rotate(-10deg);
}

.device-cluster__card--b {
  bottom: 12%;
  right: 0;
  transform: rotate(8deg);
}

@media (max-width: 900px) {
  .device-cluster {
    min-height: 380px;
    margin-top: 0.5rem;
  }

  .device-cluster__card--a {
    left: 4%;
  }

  .device-cluster__card--b {
    right: 4%;
  }
}

/* —— Chapters (alternating bands) —— */
.chapters {
  padding: 2rem 0 1rem;
}

.chapters-intro {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-teal);
  margin: 0 0 0.5rem;
}

.chapters-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  max-width: 18ch;
}

.chapter {
  position: relative;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(58, 135, 163, 0.15);
}

.chapter:last-of-type {
  border-bottom: 1px solid rgba(58, 135, 163, 0.15);
}

.chapter__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 300px);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.chapter:not(.chapter--flip) .chapter__index {
  grid-column: 1;
}

.chapter:not(.chapter--flip) .chapter__body {
  grid-column: 2;
}

.chapter:not(.chapter--flip) .chapter__panel {
  grid-column: 3;
}

@media (max-width: 768px) {
  .chapter__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .chapter:not(.chapter--flip) .chapter__index,
  .chapter:not(.chapter--flip) .chapter__body,
  .chapter:not(.chapter--flip) .chapter__panel {
    grid-column: auto;
  }

  .chapter__panel,
  .chapter--flip .chapter__panel {
    max-width: min(300px, 88vw);
    margin-inline: auto;
    justify-self: center;
    max-height: min(70vh, 520px);
  }
}

.chapter__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  color: rgba(100, 216, 184, 0.2);
  letter-spacing: -0.05em;
}

.chapter__index span {
  display: block;
}

.chapter__body {
  max-width: 38rem;
}

.chapter__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: rgba(100, 216, 184, 0.1);
  border: 1px solid rgba(100, 216, 184, 0.22);
  color: var(--accent-mint);
}

.chapter__icon svg {
  width: 22px;
  height: 22px;
}

.chapter__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.chapter__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Phone-shaped frame so vertical screenshots aren’t cropped (was short box + cover) */
.chapter__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 560px);
  margin: 0;
  background: var(--bg-deep);
  justify-self: end;
}

.chapter--flip .chapter__panel {
  justify-self: start;
}

.chapter__panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 0;
}

.chapter__panel--mint {
  border: 1px solid rgba(100, 216, 184, 0.3);
}

.chapter__panel--mint::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(100, 216, 184, 0.22) 0%, rgba(11, 16, 29, 0.35) 100%);
  pointer-events: none;
}

.chapter__panel--teal {
  border: 1px solid rgba(58, 135, 163, 0.35);
}

.chapter__panel--teal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(58, 135, 163, 0.28) 0%, rgba(11, 16, 29, 0.38) 100%);
  pointer-events: none;
}

.chapter__panel--gradient {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chapter__panel--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(100, 216, 184, 0.28) 0%, rgba(58, 135, 163, 0.36) 100%);
  pointer-events: none;
}

.chapter__panel--dark {
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.chapter__panel--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(11, 16, 29, 0.08) 0%, rgba(17, 24, 39, 0.55) 100%);
  pointer-events: none;
}

/* Flip: index | panel | body on wide screens (DOM stays index, body, panel) */
@media (min-width: 769px) {
  .chapter--flip .chapter__inner {
    grid-template-columns: auto minmax(160px, 300px) minmax(0, 1fr);
  }

  .chapter--flip .chapter__index {
    grid-column: 1;
    grid-row: 1;
  }

  .chapter--flip .chapter__panel {
    grid-column: 2;
    grid-row: 1;
  }

  .chapter--flip .chapter__body {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .chapter--flip .chapter__inner {
    display: flex;
    flex-direction: column;
  }

  .chapter--flip .chapter__panel {
    order: 3;
  }
}

/* —— Skewed download slice —— */
.download-slice {
  margin: 4rem 0 3rem;
  position: relative;
}

.download-slice__skew {
  transform: skewY(-3deg);
  background: linear-gradient(105deg, rgba(58, 135, 163, 0.35) 0%, rgba(100, 216, 184, 0.12) 55%, rgba(11, 16, 29, 0.95) 100%);
  border-top: 1px solid rgba(100, 216, 184, 0.25);
  border-bottom: 1px solid rgba(100, 216, 184, 0.2);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.35);
}

.download-slice__content {
  transform: skewY(3deg);
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.download-slice__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin: 0 0 0.5rem;
}

.download-slice__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.download-slice__lead {
  color: rgba(232, 240, 247, 0.82);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.btn-appstore--on-slice {
  margin-inline: auto;
}

/* —— Modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(100, 216, 184, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(100, 216, 184, 0.15);
  color: var(--accent-mint);
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
}

.modal-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— Footer rail —— */
.footer {
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid rgba(58, 135, 163, 0.18);
}

.footer-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-rail__main {
  max-width: 36ch;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.footer-rail__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

.footer-rail__links a {
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-rail__links a:hover,
.footer-rail__links a:focus-visible {
  color: var(--accent-mint);
  outline: none;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(100, 216, 184, 0.45);
  display: inline-block;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
