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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  color: #fff;
}

/* ---------- Background (ocean + vignette) ---------- */
.page {
  min-height: 100svh; /* better than 100vh on iOS */
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.18), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(0,0,0,0.55), transparent 55%),
    linear-gradient(180deg, #2e7ea7 0%, #1c5f83 35%, #0b2f45 70%, #061c2a 100%);
}

/* ---------- Layout ---------- */
.hero {
  min-height: 100svh;

  /* notch + home indicator safe area */
  padding:
    calc(26px + env(safe-area-inset-top))
    18px
    calc(26px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* pushes text toward bottom like your screenshot */
  justify-content: space-between;
}

/* ---------- Logo ---------- */
.logo {
  /* Big but capped. The cap is what keeps iPhone from breaking. */
  width: min(520px, 78vw);
  max-height: 62svh;
  height: auto;
  object-fit: contain;

  /* gives the “sticker” logo more pop */
  filter: drop-shadow(0 18px 55px rgba(0, 0, 0, 0.45));

  /* slight top breathing room */
  margin-top: 10px;
}

/* ---------- Text block (bottom) ---------- */
.copy {
  width: min(900px, 100%);
  padding-bottom: 6px;
}

.title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;

  /* matches the bold bottom headline feel */
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);

  /* keep it crisp on gradient */
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.subtitle {
  margin: 14px 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
}

/* ---------- iPhone / short screens (landscape especially) ---------- */
@media (max-height: 720px) {
  .hero {
    padding:
      calc(18px + env(safe-area-inset-top))
      16px
      calc(18px + env(safe-area-inset-bottom));
  }

  .logo {
    width: min(420px, 72vw);
    max-height: 52svh;
  }

  .subtitle { margin-top: 10px; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  .logo { width: min(360px, 84vw); }
}