/* ============================================================
   LYNX TMS — Coming Soon
   Design tokens reconstructed from the Lynx.fig system.
   Font: Roboto (self-hosted subset).
   ============================================================ */

/* ---- Self-hosted font -------------------------------------- */
/* Roboto: subset variable font (weight axis 400–700, normal width). */
@font-face {
  font-family: 'Roboto';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/roboto-var.woff2') format('woff2');
}

/* ============================================================
   TOKENS — the "ink" brand palette + foundations
   ============================================================ */
:root {
  /* ---- Brand ---- */
  --gold: #E0A52E;

  /* ---- Surface / text (ink theme) ---- */
  --page-bg-1:  #1c1e1c;
  --page-bg-2:  #0c0d0c;
  --page-fg:    #FDFDFD;
  --page-muted: rgba(253,253,253,0.56);
  --page-faint: rgba(253,253,253,0.40);
  --logo-color: #FDFDFD;
  --hair-strong: rgba(255,255,255,0.16);
  --surface:    rgba(255,255,255,0.04);
  --glow-a:     rgba(224,165,46,0.20);
  --glow-b:     rgba(224,165,46,0.05);
  --grid-line:  rgba(255,255,255,0.035);

  /* ---- Foundations ---- */
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page-bg-2);
  color: var(--page-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   STAGE
   ============================================================ */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* Content centers in the 1fr track; the footer always sits in the auto row
     at the bottom — in normal flow, so it can never overlap the content. */
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 64px);
  background: radial-gradient(120% 90% at 50% 0%, var(--page-bg-1) 0%, var(--page-bg-2) 70%);
  overflow: hidden;
}
/* faint engineering grid */
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 42%, #000 0%, transparent 78%);
          mask-image: radial-gradient(80% 70% at 50% 42%, #000 0%, transparent 78%);
  pointer-events: none;
}
/* drifting gold glow */
.glow {
  position: absolute;
  left: 50%; top: 38%;
  width: min(960px, 120vw); height: min(960px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, var(--glow-a) 0%, var(--glow-b) 38%, transparent 66%);
  filter: blur(8px);
  pointer-events: none;
  animation: breathe 11s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -52%) scale(1.08); }
}

/* ============================================================
   CONTENT
   ============================================================ */
.panel {
  position: relative;
  z-index: 2;
  place-self: center;       /* centered within the 1fr grid track */
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lockup {
  display: flex; align-items: center; justify-content: center;
  color: var(--logo-color);
  margin-bottom: clamp(30px, 5vw, 46px);
}
.logo-svg {
  width: clamp(232px, 40vw, 340px);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.20));
}

/* eyebrow status pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-fg);
  backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  position: relative;
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,165,46,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(224,165,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,165,46,0); }
}

h1.headline {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: clamp(22px, 3.4vw, 30px) 0 0;
  color: var(--page-fg);
  text-wrap: balance;
}
h1.headline .accent { color: var(--gold); }

p.sub {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.62;
  color: var(--page-muted);
  margin: clamp(16px, 2.2vw, 22px) auto 0;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  grid-row: 2;
  z-index: 2;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 4px 8px;
  padding: 20px 16px 0;
  text-align: center;
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--page-faint);
}
.foot .sep { opacity: 0.5; }

/* ============================================================
   ENTRANCE
   Visible by default — safe even if the animation never ticks.
   Fade-in is a progressive enhancement gated on motion preference.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 760ms var(--ease) forwards; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .glow, .dot, .reveal { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Phones: tighten the subtitle measure and keep the headline from running edge
   to edge. Layout itself is fluid (clamp + grid), so this is just polish. */
@media (max-width: 480px) {
  p.sub { max-width: 34ch; }
}

/* Landscape / very short viewports: shrink the vertical rhythm so everything
   still fits without the footer crowding the content. */
@media (max-height: 560px) {
  .lockup { margin-bottom: clamp(16px, 4vw, 30px); }
  .stage { padding-top: clamp(20px, 4vh, 40px); }
}
