/* Made From Code theme — ported to plain CSS for the anonymous gate page. */

:root {
  --mfc-bg: #050a16;
  --mfc-surface: #0b1428;
  --mfc-line: rgba(96, 165, 250, 0.14);
  --mfc-sky: #7dd3fc;
  --mfc-blue: #3b82f6;
  --mfc-blue-600: #2563eb;
  --mfc-deep: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--mfc-bg);
  color: #e2e8f0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(59, 130, 246, 0.4); color: #f0f9ff; }

/* Blueprint grid backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
}

/* Floating glow orbs */
.orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-a { left: -8%; top: -10%; width: 26rem; height: 26rem; background: rgba(29, 78, 216, 0.25); }
.orb-b { right: -8%; bottom: -12%; width: 22rem; height: 22rem; background: rgba(14, 165, 233, 0.15); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  background: rgba(5, 10, 22, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }

.logo-mark { width: 2.25rem; height: 2.25rem; }
.logo-mark.small { width: 1.9rem; height: 1.9rem; }

.wordmark {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-100);
}
.wordmark.small { font-size: 1rem; }
.wordmark .accent { color: #38bdf8; }

.header-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

/* ---------- Access card ---------- */

.gate-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
}

.gate-card {
  width: 100%;
  max-width: 30rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, #0d1f42, #0a1630 55%, #081020);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(3, 12, 34, 0.9);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(59, 130, 246, 0.1);
  color: var(--mfc-sky);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.gate-badge svg { width: 0.95rem; height: 0.95rem; }

.gate-title {
  margin: 1.25rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-50);
  line-height: 1.2;
}

.gate-sub {
  margin: 0.75rem 0 0;
  color: var(--slate-400);
  font-size: 1rem;
  line-height: 1.5;
}

.gate-form {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.6rem;
}

.gate-form input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 16, 32, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 0.65rem;
  padding: 0.8rem 1rem;
  color: var(--slate-100);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate-form input::placeholder { color: var(--slate-500); }
.gate-form input:focus {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.gate-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mfc-blue-600);
  color: #fff;
  border: none;
  border-radius: 0.65rem;
  padding: 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(29, 78, 216, 0.7);
  transition: background 0.15s ease, transform 0.05s ease;
}
.gate-form button:hover:not(:disabled) { background: var(--mfc-blue); }
.gate-form button:active:not(:disabled) { transform: translateY(1px); }
.gate-form button:disabled { opacity: 0.6; cursor: default; }
.btn-arrow { width: 1.05rem; height: 1.05rem; }

.gate-error {
  min-height: 1.2rem;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

.gate-note {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate-600);
}

/* Shake on rejected code */
.gate-card.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(96, 165, 250, 0.1);
  padding: 2.25rem 0;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copy { margin: 0; font-size: 0.85rem; color: var(--slate-500); }
.footer-url { margin: 0; font-family: var(--mono); font-size: 0.72rem; color: var(--slate-600); }

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate-card.shake { animation: none; }
}
