/* ============================================================
   Black Nebula — landing page styles
   Matte black surface, glossy black logo, cinematic restraint.
   ============================================================ */

:root {
  /* Surface */
  --bg: #050505;
  --bg-elev: #0b0b0c;
  --ink: #e9e7e2;
  --ink-muted: #8a8884;
  --ink-faint: #4a4844;
  --rule: rgba(255, 255, 255, 0.08);

  /* Accent (nebula plum) — used sparingly */
  --accent: #b89cff;
  --accent-glow: rgba(184, 156, 255, 0.35);

  /* Type */
  --font-display: "Cabinet Grotesk", "General Sans", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "General Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  overscroll-behavior: none;
}

/* Skip link for keyboard users */
.skip-link {
  position: fixed;
  top: -40px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Canvas + overlays
   ============================================================ */

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: radial-gradient(
      120% 80% at 50% 30%,
      #0c0a14 0%,
      #050507 55%,
      #020203 100%
    ),
    #000;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      80% 60% at 50% 38%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.55) 90%
    );
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Shell + content
   ============================================================ */

.shell {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(22px, 4.2vw, 48px);
  padding-bottom: clamp(28px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.shell--logo-only {
  min-height: 100dvh;
  max-width: none;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.shell--logo-only .brand {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

.shell--logo-only .mark {
  width: min(520px, 72vw);
}

/* ============================================================
   Brand mark (off-white on matte black)
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(18px, 5vh, 56px);
}

.mark {
  position: relative;
  width: min(420px, 64vw);
  aspect-ratio: 547 / 368;
  filter: drop-shadow(0 0 44px rgba(238, 234, 224, 0.16));
}

.mark__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.88));
  opacity: 0;
}

/* Solid off-white mark layer — no gradient, no sheen */
.mark__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #eeeae0;
  -webkit-mask: url("./assets/logo.png") center / contain no-repeat;
  mask: url("./assets/logo.png") center / contain no-repeat;
  mix-blend-mode: normal;
  opacity: 1;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 22px rgba(238, 234, 224, 0.18))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.9));
}

/* Disabled by request: no gradient/rim treatment on the mark */
.mark__rim {
  display: none;
}

/* ============================================================
   Hero copy
   ============================================================ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-top: clamp(24px, 5.5vh, 60px);
  max-width: 720px;
  align-self: center;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.64);
  box-shadow: 0 0 24px rgba(5, 5, 5, 0.7);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 234, 224, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.title__line {
  display: block;
}
.title__line--em {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(
    180deg,
    #f6f4ee 0%,
    #d6cfc1 70%,
    #948c7e 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* CTA */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* touch target */
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: transform 200ms var(--ease-out),
    border-color 200ms var(--ease-out), background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.btn--primary {
  background: linear-gradient(180deg, #1a1820 0%, #0a0a0c 100%);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 30px rgba(184, 156, 255, 0.08);
}
.btn--primary:hover {
  border-color: rgba(184, 156, 255, 0.45);
  transform: translateY(-1px);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  color: var(--ink);
}

/* ============================================================
   Footer meta
   ============================================================ */

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}

.meta__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.meta__link:hover {
  border-bottom-color: var(--accent);
}
.meta__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ============================================================
   Hint
   ============================================================ */

.hint {
  position: fixed;
  left: 50%;
  top: clamp(20px, 4vw, 36px);
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(233, 231, 226, 0.34);
  pointer-events: none;
  transition: opacity 800ms var(--ease-out);
  white-space: nowrap;
}
.hint.is-faded {
  opacity: 0;
}
@media (max-width: 480px) {
  .hint {
    top: 16px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
