/* Planet Radar website
   Palette taken from the app: navy sky (#192a56), fan blue (#273c75),
   card grey (#353b48), store background (#0b132b), tutorial gold (#fbc531)
   and the warm oranges and creams of the planet illustrations. */

@font-face {
  font-family: "Gabarito";
  src: url("../fonts/gabarito.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b132b;      /* store screenshots background */
  --sky: #192a56;        /* app background */
  --fan: #273c75;        /* "in front of you" sector */
  --seabrook: #487eb0;   /* heading indicator */
  --card: #353b48;       /* planet card */
  --gold: #fbc531;       /* tutorial highlight */
  --cream: #ffd296;      /* Jupiter's light bands */
  --orange: #ff9b41;     /* Jupiter's dark bands */
  --rust: #d07952;
  --text: #f5f6fa;
  --soft: #c9d0e2;
  --muted: #a3afcc;
  --line: rgba(220, 221, 225, .14);

  --display: "Gabarito", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }

/* Type: Gabarito for headlines, Figtree for text, Caveat for the handwritten notes */
h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: var(--text);
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
h1 { font-size: clamp(46px, 7.2vw, 88px); }

/* Header */
.site-header { position: relative; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--body); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--orange); color: var(--night);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--cream); color: var(--night); transform: translateY(-1px); }

.store-badge { display: inline-block; border-radius: 12px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 58px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -76px;              /* run the sky behind the header */
  padding: 140px 0 120px;
  background: linear-gradient(180deg, var(--night) 0%, var(--sky) 100%);
  overflow: hidden;
}
.sky {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/stars-far.svg") 0 0 / 1000px 1000px repeat;
  opacity: .8;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/stars-near.svg") 120px 60px / 700px 700px repeat;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
/* "What's that bright dot?": the question, an arrow, and the dot itself */
.sky-question {
  position: relative; margin: -96px 0 64px; align-self: flex-end;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--hand); font-weight: 600; font-size: 30px; line-height: 1;
  color: var(--cream);
}
.sky-question span:first-child { white-space: nowrap; }
.sky-question svg { width: 120px; height: 60px; flex: none; margin-left: 36px; }
.sky-question path { fill: none; stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bright-dot {
  position: absolute; left: 166px; bottom: -6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0 35%, #ffe2a8 60%, rgba(255, 210, 150, 0) 72%);
  box-shadow: 0 0 14px 5px rgba(255, 214, 150, .55), 0 0 44px 16px rgba(255, 180, 90, .22);
  animation: glow 3.2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 12px 4px rgba(255, 214, 150, .45), 0 0 36px 12px rgba(255, 180, 90, .18); }
  to   { box-shadow: 0 0 18px 7px rgba(255, 214, 150, .65), 0 0 56px 20px rgba(255, 180, 90, .28); }
}
.lead { margin: 0; font-size: 20px; color: var(--soft); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 6px; }
.cta-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.hero-visual {
  flex: 1 1 320px; position: relative; display: flex; justify-content: center;
  padding-top: 40px; z-index: 1;
}
.fan {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 560px; max-width: 150%;
}
.fan path { fill: var(--fan); stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .85; }

/* Screenshots are pre-framed in the real iPhone 17 frame (design/store/input) */
.phone {
  position: relative; z-index: 1; width: 310px;
  filter: drop-shadow(0 40px 60px rgba(3, 6, 20, .55));
}
.phone img { width: 100%; }

/* Hand-written annotation */
.note {
  position: absolute; margin: 0; display: flex; align-items: flex-start; gap: 2px;
  font-family: var(--hand); font-weight: 600; font-size: 29px; line-height: 1;
  color: var(--gold);
  white-space: nowrap;
}
.note svg { width: 90px; height: 90px; flex: none; }
.note span { padding-bottom: 2px; }
.note path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.note-hero { right: calc(50% + 92px); top: 583px; z-index: 3; flex-direction: row-reverse; align-items: flex-end; text-align: right; }
.note-hero span { margin-bottom: -18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.footer-row p { margin: 0; }
.footer-row a { color: var(--muted); padding: 10px 0; }
.footer-row a:hover { color: var(--text); }

/* ---------- Small screens ---------- */

/* Narrower screens: the spoiler sits centred under the phone, arrow pointing up into the card */
@media (max-width: 1180px) {
  .note-hero {
    left: 50%; right: auto; top: auto; bottom: -38px; transform: translateX(-50%);
    flex-direction: column; align-items: center; text-align: center;
  }
  .note-hero svg { width: 70px; height: 70px; margin-left: 40px; }
  .note-hero span { margin: 0; }
  .note-hero br { display: none; }
  .hero-visual { margin-bottom: 40px; }
}

@media (max-width: 720px) {
  .hero { padding: 120px 0 90px; }
  .phone { width: 260px; }
  .sky-question { font-size: 25px; margin: -28px 0 28px; }
  .sky-question svg { width: 90px; height: 46px; margin-left: 30px; }
  .bright-dot { left: 126px; bottom: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
