:root {
  --cyan: #00b1d2;
  --cyan-deep: #0090ab;
  --purple: #9b27b0;
  --yellow: #ffdf52;
  --ink: #1a2340;
  --muted: #5b6478;
  --paper: #f3f8fb;
  --white: #ffffff;
  --grad: linear-gradient(135deg, var(--purple), var(--yellow));
  --shadow: 0 18px 50px rgba(26, 35, 64, 0.1);
  --shadow-soft: 0 12px 36px rgba(26, 35, 64, 0.08);
  --radius: 20px;
  --font-brand: "Comfortaa", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(0, 177, 210, 0.22), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(155, 39, 176, 0.16), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(255, 223, 82, 0.2), transparent 50%),
    var(--paper);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 18%;
  background: rgba(0, 177, 210, 0.35);
}

.orb-b {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 55%;
  background: rgba(155, 39, 176, 0.25);
  animation-duration: 22s;
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(24px, -30px, 0);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(243, 248, 251, 0.78);
  border-bottom: 1px solid rgba(26, 35, 64, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(243, 248, 251, 0.92);
  box-shadow: 0 8px 28px rgba(26, 35, 64, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cyan-deep);
}

.brand-mark img {
  border-radius: 10px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--cyan-deep);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--cyan);
}

/* Hero */
.hero {
  min-height: min(100vh, 920px);
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.25rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badges {
  gap: 0.5rem 0.85rem;
  align-items: flex-end;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

a.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge-soon {
  cursor: default;
  position: relative;
}

.store-badge-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.store-badge-soon img {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.soon-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 0.28rem 1.6rem;
  white-space: nowrap;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--cyan-deep);
  box-shadow: 0 4px 14px rgba(0, 144, 171, 0.35);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play {
  color: var(--white);
  background: var(--cyan);
  box-shadow: 0 10px 28px rgba(0, 177, 210, 0.35);
}

.btn-play:hover {
  transform: translateY(-2px);
  background: var(--cyan-deep);
}

.btn-soon {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 35, 64, 0.1);
  cursor: default;
}

.hero-visual {
  display: flex;
  justify-content: center;
  will-change: transform, opacity;
}

.hero-plane {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 36% 64% 48% 52% / 42% 38% 62% 58%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  animation: morph 12s ease-in-out infinite alternate;
}

.hero-logo {
  width: 48%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.hero-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(18px);
}

@keyframes morph {
  from {
    border-radius: 36% 64% 48% 52% / 42% 38% 62% 58%;
  }
  to {
    border-radius: 58% 42% 62% 38% / 48% 56% 44% 52%;
  }
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.adoption-copy h2,
.download-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
}

.section-head p,
.adoption-copy > p,
.download-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature {
  padding: 0.25rem 0 0.5rem;
  border-top: 2px solid transparent;
  border-image: var(--grad) 1;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.7rem;
  color: var(--cyan-deep);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3,
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature p,
.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

/* Adoption map showcase */
.adoption {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background:
    linear-gradient(180deg, rgba(0, 177, 210, 0.06), transparent 40%),
    linear-gradient(135deg, rgba(155, 39, 176, 0.05), rgba(255, 223, 82, 0.08));
  border-block: 1px solid rgba(26, 35, 64, 0.05);
}

.adoption-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.adoption-copy h2 {
  max-width: 18ch;
}

.adoption-copy > p {
  margin-top: 0.85rem;
  max-width: 34rem;
}

.adoption-points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.adoption-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.adoption-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--grad);
}

.map-stage {
  width: 100%;
}

.map-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #e8f4f8 0%, #dceef4 45%, #e6f0f5 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 35, 64, 0.06);
}

.map-roads {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.75) 18.5%, rgba(255, 255, 255, 0.75) 22%, transparent 22.5%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.7) 42.5%, rgba(255, 255, 255, 0.7) 46%, transparent 46.5%),
    linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, 0.55) 58.4%, rgba(255, 255, 255, 0.55) 61%, transparent 61.4%),
    linear-gradient(25deg, transparent 30%, rgba(255, 255, 255, 0.5) 30.4%, rgba(255, 255, 255, 0.5) 33%, transparent 33.4%);
  opacity: 0.9;
}

.map-park {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background: rgba(0, 177, 210, 0.14);
}

.map-park-a {
  width: 28%;
  height: 32%;
  left: 12%;
  top: 14%;
}

.map-park-b {
  width: 22%;
  height: 26%;
  right: 14%;
  bottom: 18%;
  background: rgba(155, 39, 176, 0.1);
}

.map-water {
  position: absolute;
  width: 34%;
  height: 18%;
  left: 36%;
  bottom: 12%;
  border-radius: 60% 40% 55% 45%;
  background: rgba(0, 177, 210, 0.18);
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-18px) scale(0.6);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.map-stage.is-active .map-pin {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-stage.is-active .pin-a {
  transition-delay: 0.15s;
  animation: pin-bob 3.2s ease-in-out 0.6s infinite;
}

.map-stage.is-active .pin-b {
  transition-delay: 0.35s;
  animation: pin-bob 3.2s ease-in-out 1s infinite;
}

.map-stage.is-active .pin-c {
  transition-delay: 0.55s;
  animation: pin-bob 3.2s ease-in-out 1.4s infinite;
}

.pin-a {
  left: 28%;
  top: 34%;
}

.pin-b {
  left: 58%;
  top: 28%;
}

.pin-c {
  left: 68%;
  top: 58%;
}

.pin-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--cyan);
  box-shadow: 0 4px 12px rgba(0, 177, 210, 0.45);
}

.pin-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 177, 210, 0.28);
  animation: pulse 2.4s ease-out infinite;
}

.pin-b .pin-dot {
  background: var(--purple);
  box-shadow: 0 4px 12px rgba(155, 39, 176, 0.4);
}

.pin-b .pin-pulse {
  background: rgba(155, 39, 176, 0.25);
}

.pin-c .pin-dot {
  background: #e0b800;
  box-shadow: 0 4px 12px rgba(224, 184, 0, 0.4);
}

.pin-c .pin-pulse {
  background: rgba(255, 223, 82, 0.4);
}

.map-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

@keyframes pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes pin-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Screenshots */
.screens .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  justify-items: center;
  align-items: end;
  max-width: 720px;
  margin: 0 auto;
}

.phone {
  margin: 0;
  width: min(100%, 280px);
}

.phone:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.phone-frame {
  position: relative;
  border-radius: 32px;
  padding: 9px;
  background: linear-gradient(160deg, #1a2340, #2a3558);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-frame-accent {
  background: linear-gradient(160deg, #0090ab, #7a1f8c);
  transform: scale(1.04);
}

.phone-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
}

.phone figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: var(--cyan);
}

.download-panel {
  padding: 2rem 1.4rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(155, 39, 176, 0.1), rgba(255, 223, 82, 0.18)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 35, 64, 0.06);
  box-shadow: var(--shadow);
}

.download-panel .cta-row {
  margin-top: 1.35rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(26, 35, 64, 0.06);
  background: rgba(255, 255, 255, 0.35);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--cyan-deep);
}

.footer-brand img {
  border-radius: 8px;
}

.footer-note {
  margin: 0 0 0.5rem;
}

.footer-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.footer-links a,
.footer-link-btn {
  color: var(--cyan-deep);
  font-weight: 600;
}

.footer-link-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link-btn:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Modals */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 64, 0.48);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(26, 35, 64, 0.22);
  border: 1px solid rgba(26, 35, 64, 0.08);
  outline: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(26, 35, 64, 0.08);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(26, 35, 64, 0.06);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(0, 177, 210, 0.16);
  color: var(--cyan-deep);
}

.modal-body {
  padding: 1.15rem 1.25rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-content {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-content h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-content p,
.legal-content ul {
  margin: 0 0 0.75rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--cyan-deep);
  font-weight: 600;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
}

body.modal-open {
  overflow: hidden;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-scale {
  transform: translateY(20px) scale(0.94);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.adoption-points li {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.adoption-copy.is-visible .adoption-points li {
  opacity: 1;
  transform: none;
}

.adoption-copy.is-visible .adoption-points li:nth-child(1) {
  transition-delay: 0.2s;
}

.adoption-copy.is-visible .adoption-points li:nth-child(2) {
  transition-delay: 0.32s;
}

.adoption-copy.is-visible .adoption-points li:nth-child(3) {
  transition-delay: 0.44s;
}

.phone.reveal {
  transform: translateY(48px) scale(0.96);
}

.phone.reveal.is-visible {
  transform: none;
}

.feature.reveal {
  transform: translateY(24px);
}

.steps li.reveal {
  transform: translateX(-20px);
}

.steps li.reveal.is-visible {
  transform: none;
}

.download-panel.reveal {
  transform: translateY(28px) scale(0.98);
}

.download-panel.reveal.is-visible {
  transform: none;
}

@media (min-width: 760px) {
  .site-header {
    padding: 1rem 2rem;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 3.5rem 2rem 4.5rem;
    gap: 2.5rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .adoption {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .adoption-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    padding: 0 2rem;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .feature {
    border-top: none;
    border-image: none;
    padding-left: 1rem;
    border-left: 3px solid transparent;
    border-image: var(--grad) 1;
  }

  .phone-row {
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 2.5rem 2rem;
    max-width: none;
  }

  .phone {
    width: min(100%, 320px);
  }

  .download-panel {
    padding: 2.75rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .hero-plane,
  .map-pin,
  .pin-pulse,
  .reveal,
  .adoption-points li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .phone-frame-accent {
    transform: none;
  }

  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }
}
