/* NEMOS: bright sky, chunky rounded type and toy-like buttons, borrowed from Soar's look. */

:root {
  color-scheme: light;

  --sky-1: #2F8BEA;
  --sky-2: #56AAF3;
  --sky-3: #9FD1FA;
  --sky-4: #DCEFFE;

  --ink: #0C2340;
  --ink-2: #3D5878;
  --ink-3: #6F87A4;
  --paper: #F3F8FE;
  --card: #FFFFFF;
  --line: #D9E6F4;

  --gold: #FFC83D;
  --gold-edge: #E2A01A;
  --gold-ink: #422B00;
  --leaf: #4E9D35;
  --leaf-soft: #E3F4DA;
  --water-soft: #DDF1FD;
  --water-ink: #1677B8;

  --shadow: 0 1px 2px rgba(12, 35, 64, .05), 0 10px 28px rgba(12, 35, 64, .08);
  --shadow-lg: 0 2px 4px rgba(12, 35, 64, .04), 0 24px 60px rgba(12, 35, 64, .12);

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .05em;
  color: #fff; text-decoration: none;
}
.brand img { display: block; filter: drop-shadow(0 2px 0 rgba(12, 35, 64, .18)); }
.nav .brand span { text-shadow: 0 2px 0 rgba(17, 72, 140, .35); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em;
  padding: .5em 1em; border-radius: 999px; transition: background .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(660px, 100svh);
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 72% 52%, rgba(255, 255, 255, .28), transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 36%, var(--sky-3) 74%, var(--sky-4) 100%);
  isolation: isolate;
}
#world {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.hero-copy {
  position: relative; z-index: 2;
  padding-block: 120px 150px;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; max-width: 34rem; }

.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(12, 35, 64, .16);
  padding: .45em 1em; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-copy > h1 { max-width: none; white-space: nowrap; }
.hero h1 {
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  font-weight: 700; letter-spacing: .02em; line-height: .92;
  color: #fff;
  text-shadow: 0 .045em 0 #1B5DA6, 0 .09em .22em rgba(8, 40, 90, .28);
}
.hero h1 span { display: inline-block; }
.tagline {
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.1;
  color: var(--ink);
}
.lede { margin: 14px 0 0; font-size: 1.18rem; color: rgba(12, 35, 64, .78); max-width: 27rem; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  --edge: rgba(0, 0, 0, .2);
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em;
  padding: .82em 1.5em; border-radius: 999px; text-decoration: none;
  box-shadow: 0 5px 0 var(--edge), 0 12px 22px rgba(12, 35, 64, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 16px 26px rgba(12, 35, 64, .18); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 6px 12px rgba(12, 35, 64, .14); }
.btn-gold { background: var(--gold); color: var(--gold-ink); --edge: var(--gold-edge); }
.btn-cloud { background: #fff; color: var(--ink); --edge: #B6D5F1; }

.globe-hint {
  position: absolute; z-index: 2; margin: 0;
  left: var(--globe-x, 75%); top: calc(var(--globe-y, 50%) + var(--globe-r, 200px) + 34px);
  transform: translate(-50%, 6px);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: .85rem; color: var(--ink);
  background: rgba(255, 255, 255, .7); padding: .4em .95em; border-radius: 999px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .6s ease, transform .6s ease;
}
.globe-hint svg { color: var(--leaf); }
.globe-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }

.cloud-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  width: 100%; height: clamp(56px, 8vw, 120px); pointer-events: none;
}
.cloud-back { fill: #fff; opacity: .55; }
.cloud-front { fill: var(--paper); }

/* Letters pop in like the houses on the globe. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: letter-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.15s + var(--i) * .07s); }
  .eyebrow, .tagline, .lede, .cta { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .eyebrow { animation-delay: .05s; }
  .tagline { animation-delay: .55s; }
  .lede { animation-delay: .65s; }
  .cta { animation-delay: .75s; }
}
@keyframes letter-pop {
  from { opacity: 0; transform: translateY(.35em) scale(.4, .2); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 959px) {
  .hero { align-items: flex-end; text-align: center; }
  .hero-copy { padding-block: calc(78px + min(50svh, 92vw)) 110px; }
  .hero-copy > * { margin-inline: auto; }
  .cta { justify-content: center; }
  .lede { margin-inline: auto; }
  .globe-hint { display: none; }
}
@media (max-width: 600px) {
  .nav-row { height: 66px; }
  .brand { font-size: 1.2rem; }
  .nav-links a { padding: .45em .75em; }
  .hero-copy { padding-block: calc(66px + min(46svh, 96vw)) 96px; }
  .eyebrow { font-size: .72rem; }
  .lede { font-size: 1.05rem; }
  .btn { font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-apps { background: linear-gradient(180deg, var(--paper), #EAF3FC); padding-top: clamp(32px, 4vw, 56px); }
.section-head { display: grid; gap: 10px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--ink); }
.section-head p { margin: 0; font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }

/* Featured app card */
.feature {
  background: var(--card); border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 24px;
}
.feature-media { aspect-ratio: 1024 / 500; background: var(--sky-2); }
.feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-body {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px); padding: clamp(24px, 3.5vw, 44px);
}
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 80px; height: 80px; border-radius: 22px; box-shadow: 0 6px 16px rgba(12, 35, 64, .18); flex: none; }
.pill {
  display: inline-block; margin: 0 0 6px;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #9A5600; background: #FFF0C7; padding: .3em .8em; border-radius: 999px;
}
.feature h3 { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 700; }
.feature-tag { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.feature-info > p:not(.feature-tag) { margin: 0; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.facts li {
  font-weight: 800; font-size: .86rem; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  padding: .35em .9em; border-radius: 999px;
}
.store-row { margin-top: 26px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: .6em 1.3em .6em 1em; border-radius: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.1;
  box-shadow: 0 5px 0 #061426;
}
.store-btn small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .04em; opacity: .75; }
.store-btn svg { color: var(--gold); }
.store-btn.is-soon { cursor: default; }

.shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  list-style: none; margin: 0; padding: 0; align-content: start;
}
.shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 16 / 9; background: var(--sky-3);
  box-shadow: 0 1px 2px rgba(12, 35, 64, .08);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.05); }
.shot span {
  position: absolute; left: 8px; bottom: 8px;
  font-weight: 800; font-size: .74rem; color: #fff;
  background: rgba(12, 35, 64, .7); padding: .2em .7em; border-radius: 999px;
}

/* "Coming soon" cards */
.soon {
  display: flex; align-items: center; gap: 18px;
  margin-top: 24px; padding: 22px 26px;
  border: 2px dashed #C6DAEF; border-radius: 24px;
  background: rgba(255, 255, 255, .55);
}
.soon h3 { font-size: 1.3rem; font-weight: 600; }
.soon p { margin: 4px 0 0; color: var(--ink-2); }
.soon-icon {
  width: 56px; height: 56px; flex: none; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf);
}
.soon-icon-blue { background: var(--water-soft); color: var(--water-ink); }
.soon-lg { margin-top: 0; padding: 30px 32px; background: #fff; }

@media (max-width: 860px) {
  .feature-body { grid-template-columns: 1fr; }
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * clamp(24px, 3.5vw, 44px)); padding-inline: clamp(24px, 3.5vw, 44px);
    scroll-padding-inline: clamp(24px, 3.5vw, 44px); padding-bottom: 6px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .feature { border-radius: 24px; }
  .app-icon { width: 64px; height: 64px; border-radius: 18px; }
  .soon { align-items: flex-start; padding: 18px 20px; }
  .soon-icon { width: 48px; height: 48px; border-radius: 14px; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #C9D7EA; padding: 44px 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer .brand { font-size: 1.25rem; }
.footer-tag { margin: 0; flex: 1; font-weight: 700; }
.footer-copy { margin: 0; font-weight: 700; }
.credits { margin: 22px 0 0; font-size: .82rem; color: #8FA5C2; max-width: 52rem; }
.credits a { color: #C9D7EA; }

/* ---------- lightbox ---------- */
.lightbox {
  padding: 0; border: 0; border-radius: 20px; overflow: visible;
  width: min(1100px, 94vw); background: transparent;
}
.lightbox::backdrop { background: rgba(8, 22, 42, .78); backdrop-filter: blur(4px); }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.lightbox-close {
  position: absolute; top: -18px; right: -14px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
@media (max-width: 600px) { .lightbox-close { top: -54px; right: 0; } }
