/* Starwonder homepage. Shares the Atlas's colours and type so the two feel like one site. */
:root {
  --bg: #05060a;
  --bg-alt: #0a0c12;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9ecf2;
  --dim: rgba(233, 236, 242, 0.62);
  --faint: rgba(233, 236, 242, 0.38);
  --accent: #7cc4ff;
  --radius: 12px;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand .brand-text { display: none; }
.brand.no-logo .brand-text { display: inline; }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; margin-right: auto; }
.site-nav a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px var(--sans); text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn-small { height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 8px; }
.btn-primary { background: var(--accent); color: #04101c; }
.btn-primary:hover { background: #9dd3ff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); }
.btn-ghost:hover { border-color: rgba(124, 196, 255, 0.6); }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; max-width: 860px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 17px; letter-spacing: -0.01em; }
.lede { margin: 22px 0 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); }
.prose p { margin: 0 0 16px; color: var(--dim); font-size: 17px; }
.section-lede { margin: 12px 0 0; max-width: 620px; color: var(--dim); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 196, 255, 0.14), transparent 70%),
    var(--bg);
}
.hero::before {                       /* a light dusting of stars */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #fff, transparent),
    radial-gradient(1px 1px at 63% 40%, #fff, transparent),
    radial-gradient(1px 1px at 78% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 58%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #fff, transparent),
    radial-gradient(1px 1px at 54% 78%, #fff, transparent);
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-preview {
  position: relative; display: block; margin: 64px auto 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 80px rgba(124, 196, 255, 0.12);
}
.hero-preview::after {                /* fade the bottom into the page */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(transparent, var(--bg));
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 44px 0 40px;
}
.feature {
  padding: 22px 22px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.feature p { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-inner p { margin: 6px 0 0; color: var(--faint); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px !important; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 64px; }
  .hero-preview { margin-top: 44px; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; margin: 32px 0 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .hero-actions { width: 100%; max-width: 360px; }
}
