:root {
  --bg-deep: #02141f;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.10);
  --text: #eaf6fb;
  --muted: #9cbccb;
  --cyan: #3ad6e8;
  --yellow: #ffc93c;
  --radius: 24px;
  --max: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 8% -10%, #0d5a72 0%, transparent 60%),
    radial-gradient(900px 600px at 95% 5%, #0a4459 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 110%, #0a3d4f 0%, transparent 60%),
    linear-gradient(180deg, #06283a 0%, #04202f 45%, #021722 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  margin-bottom: 0.35em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #7ce9f5;
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: rgba(58, 214, 232, 0.35);
}

.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Ambient bubbles */

.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  left: var(--x);
  bottom: -80px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(160, 235, 247, 0.32);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(160, 235, 247, 0.05) 62%);
  animation: rise var(--t) linear infinite;
  animation-delay: var(--d);
  opacity: 0;
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 0.65; }
  85% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-118vh); }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 22, 32, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--yellow);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.header-cta {
  padding: 11px 22px;
  font-size: 0.92rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #5ee6f4, #25c2d6);
  color: #042330;
  box-shadow: 0 14px 32px -14px rgba(58, 214, 232, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
}

.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.15s ease;
}

.play-badge:hover {
  transform: translateY(-2px);
}

.play-badge img {
  height: 56px;
  width: auto;
}

/* Hero */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(16px, 2.4vw, 32px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 15px;
  border: 1px solid rgba(58, 214, 232, 0.28);
  border-radius: 999px;
  background: rgba(58, 214, 232, 0.10);
  color: #8ee9f4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(58, 214, 232, 0.16);
}

.grad {
  background: linear-gradient(95deg, #ffe07a, #ffab45 55%, #ff7a3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fineprint {
  margin: 18px 0 0;
  color: #7fa4b4;
  font-size: 0.84rem;
}

/* Phone mockups */

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.phone {
  width: min(48%, 244px);
  margin: 0;
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(180deg, #123243, #0a1e2a);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.09);
  animation: float 9s ease-in-out infinite;
}

.phone img {
  width: 100%;
  border-radius: 26px;
}

.phone-back {
  margin-right: -5%;
  transform: rotate(6deg) translateY(-18px);
  filter: brightness(0.84) saturate(0.92);
  animation-delay: -3s;
}

.phone-front {
  position: relative;
  z-index: 2;
  transform: rotate(-3deg) translateY(16px);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@keyframes float {
  50% { translate: 0 -12px; }
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(28px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
}

.stats li {
  padding: 20px 14px;
  background: rgba(3, 24, 34, 0.74);
  text-align: center;
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections */

.section {
  padding: clamp(48px, 6vw, 84px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 214, 232, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(58, 214, 232, 0.12);
  color: var(--cyan);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.45em;
  font-size: 1.18rem;
}

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

/* Download */

.download-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(58, 214, 232, 0.22);
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(58, 214, 232, 0.16), rgba(255, 138, 61, 0.10) 62%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 40px 80px -50px #000;
}

.download-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.download-card p {
  color: #c6dee7;
}

.download-card .hero-actions {
  margin-top: 26px;
}

.download-side {
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px dashed rgba(255, 255, 255, 0.16);
}

.download-side p {
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255, 201, 60, 0.35);
  border-radius: 999px;
  background: rgba(255, 201, 60, 0.14);
  color: #ffd977;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contact */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.contact-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.contact-card p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

.site-footer a {
  color: #bde4ee;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */

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

  .hero-art {
    margin-top: 8px;
  }

  .phone {
    width: min(46%, 212px);
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-side {
    padding: 24px 0 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    border-left: 0;
  }
}

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

  .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .header-cta {
    flex: none;
    padding: 9px 16px;
    font-size: 0.85rem;
  }
}

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

  .phone,
  .bubbles span {
    animation: none;
  }

  .bubbles span {
    opacity: 0.25;
  }

  .btn:hover,
  .play-badge:hover,
  .card:hover {
    transform: none;
  }
}
