/* ============================================================
   ONTARIO LABS — LANDING PAGE STYLES
   Handles the full-screen particle canvas layout, brand
   overlay container, and mobile-specific adjustments.
   ============================================================ */

/* ─────────────────────────────────────────────────
   FULL-SCREEN CANVAS LAYER
   Three.js renders into this, positioned behind everything.
   ───────────────────────────────────────────────── */

#gl-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ─────────────────────────────────────────────────
   LANDING BODY OVERRIDES
   ───────────────────────────────────────────────── */

body.landing {
  overflow: hidden;
  height: 100dvh;
}

/* ─────────────────────────────────────────────────
   HERO — root layout for the landing scene
   ───────────────────────────────────────────────── */

.hero {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;    /* let mouse events reach the canvas */
}

/* ─────────────────────────────────────────────────
   BRAND CONTAINER — central logo + tagline card
   pointer-events re-enabled so users can interact with it
   ───────────────────────────────────────────────── */

.brand-container {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);

  padding: 2.5rem 3.5rem;
  text-align: center;

  background: var(--bg-surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  box-shadow:
    0 0 0 1px var(--yellow-faint),
    0 4px 6px  rgba(0, 0, 0, 0.3),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* Entry animation */
  animation: brandFadeIn 1.6s var(--ease-out) 0.4s both;
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   LOGO AREA — wordmark + optional SVG lockup
   ───────────────────────────────────────────────── */

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* Horizontal rule accent below wordmark */
.logo-area::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  margin-top: var(--space-sm);
  opacity: 0.7;
}

.wordmark {
  font-size: clamp(1.25rem, 4vw, 2rem);
  line-height: 1;
}

/* ─────────────────────────────────────────────────
   TAGLINE
   ───────────────────────────────────────────────── */

.tagline {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 1.2em;   /* preserve space while empty */
}

/* ─────────────────────────────────────────────────
   CORNER ACCENTS (decorative lines on brand card)
   ───────────────────────────────────────────────── */

.brand-container::before,
.brand-container::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--yellow);
  border-style: solid;
  opacity: 0.5;
}

.brand-container {
  position: relative;  /* needed for ::before/::after */
}

.brand-container::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.brand-container::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* ─────────────────────────────────────────────────
   GYRO PERMISSION PROMPT (mobile, shown on first load)
   Hidden by default, shown via JS when needed
   ───────────────────────────────────────────────── */

.gyro-prompt {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;

  animation: promptPulse 2.4s var(--ease-out) infinite alternate;
  display: none;
}

.gyro-prompt.visible {
  display: block;
}

@keyframes promptPulse {
  from { border-color: var(--border); }
  to   { border-color: var(--border-strong); }
}

/* ─────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .brand-container {
    padding: 2rem 2rem;
    margin-inline: var(--space-lg);
  }

  .site-nav__links {
    display: none;  /* collapse nav links on mobile landing */
  }
}
