:root {
  --night: #000000;
  --deep: #07142e;
  --beam: #2f8bff;
  --beam-soft: #8fc2ff;
  --white: #ffffff;
  --mist: #a7b3c7;
  --line: #1c2b47;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.15;
  margin: 0;
}

a { color: var(--beam-soft); text-underline-offset: 3px; }
a:hover { color: var(--white); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--beam-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { height: 72px; width: auto; mix-blend-mode: screen; }
.site-header nav a {
  color: var(--mist);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--white); }

/* Hero: the lighthouse beam is the one memorable element */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -20%;
  width: 140%;
  height: 120%;
  background: conic-gradient(
    from 88deg at 22% 18%,
    transparent 0deg,
    rgba(47, 139, 255, 0.28) 8deg,
    rgba(47, 139, 255, 0.08) 22deg,
    transparent 34deg
  );
  pointer-events: none;
  animation: beam-in 1.6s ease-out both;
}
@keyframes beam-in {
  from { opacity: 0; transform: rotate(-4deg); }
  to { opacity: 1; transform: rotate(0); }
}
.hero .wrap { position: relative; }
.hero-logo { width: min(460px, 100%); margin: -24px 0 32px -12px; mix-blend-mode: screen; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  max-width: 18ch;
  letter-spacing: -0.01em;
}
.hero p {
  color: var(--mist);
  font-size: 1.2rem;
  max-width: 56ch;
  margin: 20px 0 32px;
}
.button {
  display: inline-block;
  background: var(--beam);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 6px;
}
.button:hover { background: #1f74e0; color: var(--white); }

/* Steps: a real sequence, so numbers are meaningful */
.steps {
  background: var(--deep);
  padding: 72px 0;
}
.steps h2 { font-size: 1.9rem; margin-bottom: 36px; }
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--beam);
  line-height: 1;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--mist); margin: 0; max-width: 40ch; }

.contact { padding: 72px 0; }
.contact h2 { font-size: 1.9rem; margin-bottom: 12px; }
.contact p { color: var(--mist); max-width: 56ch; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal article { max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--mist); margin: 0 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #d6dde8; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--mist);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--mist); margin-left: 16px; }
.site-footer a:first-child { margin-left: 0; }

@media (max-width: 600px) {
  .brand img { height: 44px; }
  .site-header nav a { margin-left: 14px; font-size: 0.875rem; }
  .hero { padding: 48px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
