@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700;800&display=swap');

:root {
  --ink: #071827;
  --navy: #09263d;
  --blue: #23baf2;
  --deep-blue: #0872c3;
  --aqua: #24e4c7;
  --yellow: #ffd33d;
  --gold: #ffb21f;
  --coral: #ff4058;
  --cream: #fff6df;
  --paper: #fffdf5;
  --muted: #587080;
  --border: #071827;
  --shadow: rgba(7, 24, 39, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 211, 61, 0.35), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(36, 228, 199, 0.28), transparent 30rem),
    linear-gradient(180deg, #2dd0f6 0%, #1285d4 46%, #0a3155 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 58px;
  height: 58px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 0 rgba(7, 24, 39, 0.18);
}

.brand-wordmark {
  width: 220px;
  filter: drop-shadow(0 5px 0 rgba(7, 24, 39, 0.18));
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  border: 4px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
  background: rgba(255, 253, 245, 0.92);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 0 rgba(7, 24, 39, 0.2);
}

.nav a.nav-store-link {
  background: linear-gradient(135deg, var(--yellow), #ff8e3d);
}

.button.primary {
  background: linear-gradient(135deg, var(--yellow), #ff8e3d);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--border);
  border-radius: 48px;
  padding: 44px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 54px),
    linear-gradient(135deg, #e9fbff 0%, #aaf2e8 43%, #fff1ac 100%);
  box-shadow: 0 18px 0 rgba(7, 24, 39, 0.25);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -28% -18% auto auto;
  width: 58%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 8deg, rgba(255, 211, 61, 0.52) 0 11deg, transparent 11deg 22deg);
  border-radius: 50%;
  opacity: 0.75;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  border: 4px solid var(--border);
  border-radius: 999px;
  background: var(--yellow);
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(7, 24, 39, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.85rem, 5.5vw, 4.4rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-shadow: 0 9px 0 rgba(255, 211, 61, 0.74);
}

.hero-logo {
  width: min(100%, 300px);
  margin: 0 0 14px;
  filter: drop-shadow(0 8px 0 rgba(7, 24, 39, 0.18));
}

.hero-copy {
  max-width: 640px;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.35;
  color: #173448;
}

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

.app-store-cta {
  display: inline-flex;
  min-width: 230px;
  flex-direction: column;
  justify-content: center;
  border: 5px solid var(--border);
  border-radius: 26px;
  padding: 14px 24px 16px;
  color: white;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #071827 0%, #0b3152 54%, #0a2037 100%);
  text-decoration: none;
  box-shadow:
    0 9px 0 rgba(7, 24, 39, 0.26),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 11px 0 rgba(7, 24, 39, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.app-store-cta:active {
  transform: translateY(3px);
  box-shadow:
    0 5px 0 rgba(7, 24, 39, 0.26),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.store-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bafaf0;
}

.app-store-cta strong {
  margin-top: 1px;
  font-size: 2.05rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.app-store-cta.compact {
  min-width: 210px;
  padding: 12px 22px 14px;
}

.app-store-cta.compact strong {
  font-size: 1.75rem;
}

.store-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.phone-stack {
  position: relative;
  justify-self: center;
}

.phone-frame {
  width: min(100%, 285px);
  margin: 0 auto;
  padding: 12px;
  border: 6px solid var(--border);
  border-radius: 44px;
  background: #10263b;
  box-shadow: 18px 22px 0 rgba(7, 24, 39, 0.16);
  transform: rotate(2deg);
}

.phone-frame img {
  border-radius: 31px;
}

.float-chip {
  position: absolute;
  left: -32px;
  bottom: 86px;
  border: 4px solid var(--border);
  border-radius: 18px;
  padding: 12px 16px;
  background: var(--coral);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 0 rgba(7, 24, 39, 0.2);
  transform: rotate(-5deg);
}

.section {
  margin: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.page h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 0 rgba(255, 211, 61, 0.55);
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 8px;
  color: #dafaff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.policy-card,
.support-card {
  border: 5px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 253, 245, 0.96);
  padding: 24px;
  box-shadow: 0 10px 0 rgba(7, 24, 39, 0.18);
}

.feature-card:nth-child(2) { background: #dff9ff; }
.feature-card:nth-child(3) { background: #fff0bd; }
.feature-card:nth-child(4) { background: #e3fff5; }
.feature-card:nth-child(5) { background: #f4edff; }
.feature-card:nth-child(6) { background: #ffe9ef; }

.feature-card .icon {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--yellow);
  font-size: 1.6rem;
  font-weight: 900;
}

.feature-card h3,
.policy-card h2,
.support-card h2 {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 10px;
}

.feature-card p,
.policy-card p,
.support-card p,
.support-card li,
.policy-card li {
  color: #4f6979;
  font-size: 1.02rem;
  line-height: 1.48;
}

.screenshot-river {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
  overflow: hidden;
}

.screen-card {
  border: 5px solid var(--border);
  border-radius: 32px;
  background: #0b2338;
  padding: 8px;
  box-shadow: 0 10px 0 rgba(7, 24, 39, 0.18);
}

.screen-card img {
  border-radius: 24px;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  object-position: top center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.support-band {
  border: 6px solid var(--border);
  border-radius: 38px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 34%),
    linear-gradient(135deg, #fff7d2, #cdf8ff);
  padding: 34px;
  box-shadow: 0 14px 0 rgba(7, 24, 39, 0.2);
}

.support-band h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer {
  margin-top: 76px;
  padding: 34px 0 44px;
  color: #d8fbff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  padding-top: 24px;
}

.footer a {
  font-weight: 800;
  margin-left: 14px;
}

.page {
  margin: 0 auto 60px;
  width: min(900px, calc(100% - 32px));
}

.page-panel {
  border: 6px solid var(--border);
  border-radius: 42px;
  background: var(--paper);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 16px 0 rgba(7, 24, 39, 0.22);
}

.page-panel h1 {
  margin-bottom: 18px;
}

.page-panel > p {
  color: #4f6979;
  font-size: 1.16rem;
  line-height: 1.55;
}

.card-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

ul {
  padding-left: 1.2rem;
}

@media (max-width: 940px) {
  .header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 30px;
    border-radius: 34px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

  .screenshot-river {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 1160px);
  }

  .brand-wordmark {
    width: 168px;
  }

  .nav a,
  .button,
  .app-store-cta {
    padding: 11px 15px;
    font-size: 0.92rem;
  }

  .app-store-cta {
    min-width: 100%;
    align-items: center;
    text-align: center;
  }

  .app-store-cta strong {
    font-size: 1.8rem;
  }

  .hero {
    padding: 24px 22px;
  }

  .hero-logo {
    display: none;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 3.75rem);
  }

  .feature-grid,
  .screenshot-river {
    grid-template-columns: 1fr;
  }

  .screen-card:nth-child(n + 4) {
    display: none;
  }

  .float-chip {
    left: 4px;
    bottom: 52px;
  }
}
