/* ============================================================
   Luminent — stealth coming-soon page
   Dark, minimal, premium. Plain CSS, no dependencies.
   ============================================================ */

:root {
  --bg: #050507;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.46);
  --faint: rgba(245, 245, 247, 0.12);

  /* luminous accent (cool moonlight → violet) */
  --glow-a: #8fb4ff;
  --glow-b: #c9a8ff;
  --glow-c: #7ef0ff;

  --maxw: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: none;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%; /* stop iOS auto-inflating text */
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Ambient aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* parallax targets, set from JS */
  --px: 0;
  --py: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb--one {
  width: 52vmax;
  height: 52vmax;
  left: 50%;
  top: 46%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--glow-a),
    rgba(143, 180, 255, 0) 62%
  );
  transform: translate(-50%, -50%)
    translate(calc(var(--px) * 28px), calc(var(--py) * 28px));
  animation: breathe 11s var(--ease) infinite alternate;
}

.orb--two {
  width: 38vmax;
  height: 38vmax;
  left: 42%;
  top: 56%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--glow-b),
    rgba(201, 168, 255, 0) 60%
  );
  transform: translate(-50%, -50%)
    translate(calc(var(--px) * -38px), calc(var(--py) * -22px));
  animation: drift 14s var(--ease) infinite alternate;
  opacity: 0.4;
}

@keyframes breathe {
  from {
    transform: translate(-50%, -50%)
      translate(calc(var(--px) * 28px), calc(var(--py) * 28px)) scale(0.92);
    opacity: 0.42;
  }
  to {
    transform: translate(-50%, -50%)
      translate(calc(var(--px) * 28px), calc(var(--py) * 28px)) scale(1.08);
    opacity: 0.62;
  }
}

@keyframes drift {
  from {
    transform: translate(-50%, -50%)
      translate(calc(var(--px) * -38px), calc(var(--py) * -22px)) scale(1.05);
  }
  to {
    transform: translate(-50%, -50%)
      translate(calc(var(--px) * -38px + 4vmax), calc(var(--py) * -22px - 3vmax))
      scale(0.9);
  }
}

/* vignette to keep edges deep */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(5, 5, 7, 0) 38%,
    rgba(5, 5, 7, 0.72) 100%
  );
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* base padding plus device safe-area insets (notch / home bar) */
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-top: calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-top));
  padding-bottom: calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-bottom));
  padding-left: calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-left));
  padding-right: calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-right));
}

.topline,
.footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow-c);
  box-shadow: 0 0 0 0 rgba(126, 240, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 240, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(126, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 240, 255, 0);
  }
}

/* ---------- Hero ---------- */
.hero {
  align-self: center;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.logo {
  display: block;
  margin: 0 auto;
  line-height: 0;
}

.logo__mark {
  display: block;
  width: clamp(220px, 46vw, 440px);
  height: auto;
  margin: 0 auto;
}

.tagline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

.lede {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 1.1rem auto 0;
}

/* staged entrance */
.status,
.logo,
.tagline,
.lede,
.footline__mark,
.footline__year {
  animation-duration: 1.2s;
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}
.logo {
  animation: rise 1.4s var(--ease) both;
}
.status {
  animation: rise 1.2s var(--ease) both;
}
.tagline {
  animation: rise 1.2s var(--ease) 0.18s both;
}
.lede {
  animation: rise 1.2s var(--ease) 0.32s both;
}
.footline__mark,
.footline__year {
  animation: fade 1.4s var(--ease) 0.6s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Footer ---------- */
.footline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footline__year {
  font-variant-numeric: tabular-nums;
}

/* ---------- Responsive ---------- */

/* Phones (portrait) */
@media (max-width: 600px) {
  .status,
  .footline {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
  .lede {
    max-width: 36ch;
  }
  /* Heavy blur is GPU-expensive on phones — dial it back to avoid jank
     while keeping the same soft glow. */
  .orb {
    filter: blur(64px);
  }
  .orb--one {
    width: 80vmax;
    height: 80vmax;
  }
  .orb--two {
    width: 62vmax;
    height: 62vmax;
  }
}

/* Narrow / older phones */
@media (max-width: 360px) {
  .logo__mark {
    width: clamp(180px, 60vw, 280px);
  }
  .status__label {
    letter-spacing: 0.14em;
  }
  /* Stack the footer so the year never collides with the domain */
  .footline {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

/* Short landscape (phones turned sideways) — keep everything on one screen */
@media (max-height: 480px) and (orientation: landscape) {
  .stage {
    grid-template-rows: auto 1fr auto;
  }
  .hero {
    padding: 0.5rem 0;
  }
  .logo__mark {
    width: clamp(180px, 32vh, 320px);
  }
  .lede {
    display: none; /* protect vertical space on tiny landscape viewports */
  }
}

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