/* ════════════════════════════════════════════════════════════════
   Supergrover brand surface — the access gate.
   Tokens lifted from the Supergrover design system. The demo itself
   (Meridian Media) is a separate, fictional product identity.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;           /* variable axis wght 200–800 */
  font-display: block;
  src: url("../assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
}

:root {
  --sg-white: #FAFAF8;
  --sg-cream: #F3F0EA;
  --sg-ink: #111318;
  --sg-steel: #5A6275;
  --sg-rule: #E4E2DC;
  --sg-hero-blue: #1A56DB;
  --sg-hero-blue-hover: #1447C0;
  --sg-hero-red: #C8202F;
  --sg-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sg-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  background: #0d1018;
  font-family: var(--sg-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Gate shell ─────────────────────────────────────────────── */
#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-white);
  overflow: hidden;
  transition: opacity .45s var(--sg-ease);
}
#gate.out { opacity: 0; pointer-events: none; }

/* faint 12-column structural grid, per brand */
.gate-grid {
  position: absolute; inset: 0;
  max-width: 1200px; margin: 0 auto;
  background-image: repeating-linear-gradient(
    to right,
    var(--sg-rule) 0 1px,
    transparent 1px calc(100% / 12)
  );
  opacity: .5;
}

/* low-opacity blue + red aura — the one place both accents meet */
.gate-aura {
  position: absolute;
  width: 1100px; height: 1100px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 42%, rgba(26, 86, 219, .13), transparent 58%),
    radial-gradient(circle at 64% 60%, rgba(200, 32, 47, .07), transparent 55%);
  pointer-events: none;
}

/* ── Card ───────────────────────────────────────────────────── */
.gate-card {
  position: relative;
  width: 460px;
  padding: 44px 44px 36px;
  background: #fff;
  border: 1px solid var(--sg-rule);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(17, 19, 24, .06), 0 24px 64px rgba(17, 19, 24, .10);
  text-align: left;
  animation: gateIn .6s var(--sg-ease) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.gate-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sg-hero-blue);
}
.gate-rule { width: 32px; height: 2px; background: var(--sg-ink); margin: 14px 0 18px; }

.gate-title {
  font-size: 38px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  color: var(--sg-ink);
}
.gate-sub {
  margin-top: 14px;
  font-size: 15px; line-height: 1.6;
  color: var(--sg-steel);
}

/* ── Form ───────────────────────────────────────────────────── */
.gate-form { display: flex; gap: 10px; margin-top: 28px; }

.gate-input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 15px;
  color: var(--sg-ink);
  padding: 13px 18px;
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 9999px;
  outline: none;
  transition: border-color .2s var(--sg-ease), box-shadow .2s var(--sg-ease);
}
.gate-input::placeholder { color: #9aa1b0; }
.gate-input:focus { border-color: var(--sg-hero-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }

.gate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .04em;
  color: #fff; background: var(--sg-hero-blue);
  border: 0; border-radius: 9999px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background .2s var(--sg-ease);
}
.gate-btn:hover { background: var(--sg-hero-blue-hover); }
.gate-btn:hover .gate-btn-arrow { transform: translateX(3px); }
.gate-btn-arrow {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--sg-ease);
}

/* ── Error + footer ─────────────────────────────────────────── */
.gate-err {
  margin-top: 14px;
  font-size: 13px; font-weight: 600;
  color: var(--sg-hero-red);
  opacity: 0;
  transition: opacity .2s var(--sg-ease);
}
.gate-err.show { opacity: 1; }
.gate-card.shake { animation: shake .4s var(--sg-ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.gate-foot {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--sg-rule);
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--sg-steel);
  display: flex; align-items: center; gap: 9px;
}
.sg-mark {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  color: var(--sg-hero-blue);
}

@media (prefers-reduced-motion: reduce) {
  .gate-card, .gate-btn-arrow, #gate { animation: none !important; transition: none !important; }
}
