/* Cloud Merge: Jet Battle — base styles (mobile first).
   Palette: watercolor sky pastels over warm paper, deep teal ink for text and actions. */

:root {
  --paper: #FDF8F0;
  --paper-2: #F5EDE0;
  --ink: #16323F;
  --ink-soft: #415A67;
  --teal: #1F5A73;
  --teal-deep: #123C4E;
  --sky: #BDD9E6;
  --sky-soft: #DCEBF2;
  --clay: #A64C27;
  --sage: #7A9A6E;
  --line: #D9CBB6;
  --disabled-bg: #2A2A2A;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 20px rgba(22, 50, 63, 0.10);
  --shadow-lg: 0 14px 40px rgba(22, 50, 63, 0.16);
  --wrap: 1120px;
  --header-h: 48px;
  --ease: cubic-bezier(0.33, 0.68, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  padding-bottom: 84px;
}

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

a { color: var(--teal); }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

h1 { font-size: 31px; }
h2 { font-size: 25px; }
h3 { font-size: 18px; font-family: inherit; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 14px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(253, 248, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  margin-right: auto;
  min-height: 44px;
}

.brand-icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.brand-name { font-size: 15px; letter-spacing: 0.01em; }

.site-nav { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.header-cta-text { display: none; }
.header-cta-icon { font-size: 15px; line-height: 1; }
.header-cta:hover { background: var(--teal-deep); }
.header-cta:active { transform: scale(0.95); background: var(--teal-deep); }

/* Hero: full-bleed art with overlaid ink panel */
.hero {
  position: relative;
  padding: 18px 16px 30px;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sky-soft);
}

.hero-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 50, 63, 0) 40%, rgba(22, 50, 63, 0.20) 100%);
}

.hero-panel {
  position: relative;
  margin: -28px 4px 0;
  padding: 22px 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: -46px 0 14px;
  border: 3px solid var(--paper);
}

.hero-sub { color: var(--ink-soft); font-size: 16px; }

.hero-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

/* Store buttons: ink-outline dual badge */
.store-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  width: 100%;
  border: 2px solid var(--teal-deep);
}

.store-btn-live {
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: var(--shadow);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.store-btn-live:hover { background: var(--teal-deep); }
.store-btn-live:active { transform: scale(0.98); background: var(--teal-deep); }

.store-btn-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.92;
}

.store-btn-brand { font-size: 19px; font-weight: 700; line-height: 1.2; }

.store-btn-soon {
  background: var(--disabled-bg);
  color: #FFFFFF;
  border-color: #1A1A1A;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

.store-badge-flag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--clay);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section shells */
.section-head { margin-bottom: 20px; }

.section-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.features,
.screenshots,
.download,
.about {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding: 40px 16px;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  padding: 20px 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: var(--sky);
  color: var(--teal-deep);
  font-size: 19px;
}

/* Screenshots */
.shot-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 14px;
  scrollbar-width: none;
}

.shot-rail::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 72%;
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sky-soft);
  box-shadow: var(--shadow);
}

.shot-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Download CTA */
.download {
  max-width: none;
  background: linear-gradient(165deg, var(--sky-soft) 0%, var(--sky) 55%, #A8C9DA 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 46px 16px;
}

.download h2 { font-size: 27px; }

.download-sub {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--teal-deep);
  font-size: 16px;
}

.store-row-center { max-width: 330px; margin: 0 auto; }

/* About */
.about-inner { max-width: 720px; }
.about p { color: var(--ink-soft); }
.about-contact { margin-top: 18px; font-weight: 600; color: var(--ink); }
.about-contact a { color: var(--teal); }

/* Footer */
.site-footer {
  padding: 34px 16px 30px;
  background: var(--teal-deep);
  color: #E6EEF2;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.footer-brand img { border-radius: 11px; }
.footer-name { margin: 0; font-weight: 700; color: #FFFFFF; }
.footer-tag { margin: 0; font-size: 13px; color: #B9CFD9; }

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.footer-links a,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #DCE8ED;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-legal a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.footer-links a:active,
.footer-legal a:active { color: #FFFFFF; }

.footer-legal a { color: #B9CFD9; }

.footer-copy {
  margin: 8px 0 0;
  font-size: 13px;
  color: #A8C2CE;
}

/* Mobile sticky CTA bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 248, 240, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(22, 50, 63, 0.12);
  transform: translateY(115%);
  transition: transform 0.35s var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta img { border-radius: 9px; flex: 0 0 auto; }

.sticky-cta-text {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sticky-cta-btn:hover { background: var(--teal-deep); }
.sticky-cta-btn:active { transform: scale(0.97); background: var(--teal-deep); }

/* Soft cross-fade drift on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
