/* Lunar Ridge - a night scene: ink sky, a pale moon setting behind layered ridgelines. Solid colours only, one committed (dark) theme. */
:root {
  --sky: #0d1530;          /* the sky, and the page ground */
  --ground: #0a1128;       /* page background */
  --deep: #070c1d;         /* the darker bands */
  --ridge-far: #1d2b57;
  --ridge-mid: #121c3e;
  --ridge-near: #0a1128;
  --moon: #e9e7dc;
  --text: #dde3f1;
  --muted: #9aa7c7;
  --line: #24325f;
  --glacier: #86c1d3;      /* the one accent: links, buttons, the small marks */
  --glacier-ink: #08111f;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--glacier); text-underline-offset: 3px; }
a:hover { color: #b7dde8; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0 0 1rem; max-width: 62ch; }

/* top bar sits over the scene */
.top {
  position: absolute; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px max(16px, 4vw);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--moon); text-decoration: none;
  font: 600 1rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-size: .95rem; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--moon); }
.top nav a.btn { color: var(--glacier-ink); }

/* hero */
.hero { position: relative; min-height: 640px; height: min(84vh, 760px); background: var(--sky); overflow: hidden; display: flex; align-items: flex-end; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon { animation: set 2.6s cubic-bezier(.3,.6,.2,1) both; }
@keyframes set { from { transform: translateY(-90px); } to { transform: translateY(0); } }
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, 4vw) clamp(40px, 9vh, 96px); }
.eyebrow { font: 600 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--glacier); margin-bottom: .9rem; }
.hero h1 { font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.9rem); max-width: 18ch; color: #f3f1e8; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); margin: 1.2rem 0 1.6rem; max-width: 52ch; }

.btn { display: inline-block; background: var(--glacier); color: var(--glacier-ink); text-decoration: none;
  font: 600 1rem var(--body); padding: .8rem 1.4rem; border-radius: 999px; }
.btn:hover { background: #b7dde8; color: var(--glacier-ink); }
.btn-small { padding: .45rem 1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--glacier); border: 2px solid var(--glacier); }
.btn-ghost:hover { background: var(--glacier); color: var(--glacier-ink); }

/* bands */
.band { padding: clamp(56px, 9vw, 112px) 0; background: var(--ground); }
.band-deep { background: var(--deep); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, 4vw); }
.band h2 { font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 2rem; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); margin: 0; }
.services > div { border-top: 1px solid var(--line); padding: 1.4rem 0 1.8rem; }
.services dt { font: 600 1.2rem var(--display); color: var(--moon); margin-bottom: .5rem; }
.services dd { margin: 0; color: var(--text); max-width: 46ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.steps li::before { content: counter(step); display: block; font: 600 2rem var(--display); color: var(--glacier); margin-bottom: .6rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .6rem; color: var(--moon); }
.steps p { color: var(--muted); }

.product { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); padding-top: 2rem; }
.product > div { max-width: 62ch; }
.product h2 { margin-bottom: 1rem; }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0; }

.contact h2 { margin-bottom: 1rem; }
.foot { background: var(--deep); border-top: 1px solid var(--line); padding: 22px max(16px, 4vw); color: var(--muted); font-size: .9rem; }
.foot p { margin: 0 auto; max-width: 1120px; }

@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .services, .steps { grid-template-columns: 1fr; }
  /* on a phone the scene sits above the text, not behind it, so the moon never runs under the words */
  .hero { display: block; height: auto; min-height: 0; background: var(--ground); }
  .scene { position: relative; display: block; height: 340px; }
  .hero-copy { padding-top: 8px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moon { animation: none; }
}
