/* ══════════════════════════════════════════════════════════════════════════════
   speKset — Splash Page
   Brand tokens: bg #0a0a0f | blue #4A8FFF | white #fff | Syne 800 + DM Mono 500
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Tokens ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060609;
  --bg-panel:  #0d0d12;
  --blue:      #4A8FFF;   /* bracket / UI accent */
  --blue-k:    #3a51a3;   /* K in wordmark — darker navy */
  --blue-dim:  rgba(74, 143, 255, 0.15);
  --blue-glow: rgba(74, 143, 255, 0.45);
  --white:     #ffffff;
  --text:      rgba(255,255,255,0.88);
  --text-dim:  rgba(255,255,255,0.45);
  --border:    rgba(74, 143, 255, 0.28);
  --radius:    12px;
  --font-word: 'Arial Black', Arial, sans-serif;  /* system font — always available */
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

/* ── Background scene ────────────────────────────────────────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Subtle perspective LED grid on the floor */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,143,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,143,255,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(60deg) scale(2.4) translateY(20%);
  transform-origin: 50% 100%;
  opacity: 0.6;
}

/* Big simulated LED wall panel in the background */
.bg-wall {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(72vw, 900px);
  height: min(36vw, 450px);
  border-radius: 4px;
  overflow: hidden;
}

.bg-wall-panels {
  position: absolute;
  inset: 0;
  background:
    /* panel grid */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(12.5% - 1px),
      rgba(74,143,255,0.12) calc(12.5% - 1px),
      rgba(74,143,255,0.12) 12.5%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent calc(16.666% - 1px),
      rgba(74,143,255,0.12) calc(16.666% - 1px),
      rgba(74,143,255,0.12) 16.666%
    ),
    /* base glow gradient simulating a lit screen */
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(74,143,255,0.22) 0%,
      rgba(30,60,140,0.18) 50%,
      rgba(10,10,20,0.85) 100%
    );
  background-color: #08080e;
  animation: wall-breathe 6s ease-in-out infinite;
}

@keyframes wall-breathe {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.bg-wall-glow {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(74,143,255,0.3);
  border-radius: 4px;
  box-shadow:
    0 0 60px 20px rgba(74,143,255,0.12),
    0 0 120px 40px rgba(74,143,255,0.06);
}

/* Vignette to keep focus on the center card */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%,
    transparent 30%,
    rgba(10,10,15,0.7) 70%,
    rgba(10,10,15,0.95) 100%
  );
}

/* ── Main layout ──────────────────────────────────────────────────────────── */
.splash {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 32px;
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo-wrap {
  margin-bottom: 40px;
  animation: fade-up 0.7s ease both;
}

.logo {
  display: block;
  width: clamp(300px, 42vw, 540px);
  height: auto;
}

/* ── Hero text ────────────────────────────────────────────────────────────── */
.hero-text {
  text-align: center;
  max-width: 540px;
  margin-bottom: 40px;
  animation: fade-up 0.7s 0.1s ease both;
}

.hero-headline {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

/* Blue accent on first word */
.hero-headline em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

.feature-pills li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ── Gate card ────────────────────────────────────────────────────────────── */
.gate-card {
  background: rgba(16, 16, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(74,143,255,0.08),
    0 24px 64px rgba(0,0,0,0.6);
  animation: fade-up 0.7s 0.2s ease both;
  transition: box-shadow 0.3s;
}

.gate-card:focus-within {
  box-shadow:
    0 0 0 1px rgba(74,143,255,0.3),
    0 0 30px rgba(74,143,255,0.12),
    0 24px 64px rgba(0,0,0,0.6);
}

.gate-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.gate-form {
  display: flex;
  gap: 8px;
}

.gate-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(74,143,255,0.2);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--white);
  letter-spacing: 0.2em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-size: 13px;
}

.gate-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,143,255,0.15);
}

.gate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.gate-btn:hover {
  background: #6aaeff;
  box-shadow: 0 0 20px rgba(74,143,255,0.4);
}

.gate-btn:active {
  transform: scale(0.97);
}

.gate-error {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff6b6b;
  min-height: 18px;
}

/* Success flash */
.gate-success {
  border-color: rgba(74,143,255,0.6) !important;
  box-shadow:
    0 0 0 1px rgba(74,143,255,0.4),
    0 0 40px rgba(74,143,255,0.25),
    0 24px 64px rgba(0,0,0,0.6) !important;
}

/* Shake animation for wrong password */
.gate-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.splash-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.footer-brand {
  color: var(--blue);
  font-weight: 500;
}

.footer-sep { opacity: 0.4; }

/* ── Entrance animations ──────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .logo { width: 220px; }
  .hero-headline { font-size: 26px; }
  .gate-card { padding: 20px; }
  .bg-wall { top: 4%; width: 95vw; height: 40vw; }
}

@media (max-height: 700px) {
  .splash { justify-content: flex-start; padding-top: 24px; }
  .logo-wrap { margin-bottom: 24px; }
  .hero-text { margin-bottom: 24px; }
}
