/* astrobyorlando.com — one dark theme, deliberately: it is a night-sky site.
   Layout is a single centred column; every section is one of two shapes, a
   full-width band or a two-column split that stacks on narrow screens. */

:root {
  --bg: #070b14;
  --bg-soft: #0c1120;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --muted: #949fb5;
  --accent: #6fa8ff;
  --accent-ink: #061020;
  --radius: 14px;
  --gutter: 16px;
  --measure: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Starfield =======================================================
   One element, a generated box-shadow list (see app.js). Fixed and behind
   everything, so scrolling never repaints it. */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
  z-index: 0;
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 0.95; } }

/* ===== Shell ===== */
.page { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.lede { color: var(--muted); max-width: 58ch; }

/* A quiet line for the things that do not deserve a button of their own. */
.aside { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 150px) 0 clamp(64px, 9vw, 104px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/galaxy.jpg") center/cover no-repeat;
  opacity: 0.75;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(7, 11, 20, 0.15) 0%, rgba(7, 11, 20, 0.7) 58%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.8) 0%, rgba(7, 11, 20, 0.25) 60%, rgba(7, 11, 20, 0.45) 100%);
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.hero .lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: #c3cbdb;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--panel-hover); border-color: rgba(255, 255, 255, 0.2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn.primary:hover { background: #8dbaff; border-color: #8dbaff; }

/* ===== Social row ===== */
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); }
.socials svg { width: 19px; height: 19px; }

/* ===== Feature photo =====
   One image doing the work a grid of thumbnails used to. The image itself is
   the link, which keeps a second button out of the text below it. */
.feature {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature:hover img { transform: scale(1.02); }

.feature-text { margin-top: 28px; }

/* ===== Split rows ===== */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.flip .split-media { order: -1; }
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-text p { color: var(--muted); margin-bottom: 22px; }

/* The mockup is a transparent PNG of a device, so it gets no frame and is not
   cropped to a ratio; a drop-shadow does the lifting a border would have done. */
.split-media.device img {
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
  object-fit: contain;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.split-media.portrait img { aspect-ratio: 4 / 5; max-width: 340px; }

/* The logo carries dark navy type, so it needs a light plate to sit on rather
   than the page's own background. It stands in for that section's kicker. */
.wordmark {
  display: inline-block;
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff;
  line-height: 0;
  transition: transform 0.18s ease;
}
.wordmark:hover { transform: translateY(-2px); }
.wordmark img { width: 190px; height: auto; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.87rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

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