/* ============================================================
   Opt-in gate — original LearnRevitAPI presentation brand
   (kept as-is per Erik; the guide + dash use styles.css /
   Warm Carbon instead).
   ============================================================ */
:root {
  --bg:        #0a0a0b;
  --bg-2:      #0f0f12;
  --bg-elev:   #1c1c22;
  --bg-card:   #1f1f26;
  --fg:        #fafafa;
  --fg-dim:    #9a9aa3;
  --fg-dimmer: #55555c;
  --accent:        #FF9A2E;
  --accent-bright: #FFB056;
  --accent-dark:   #d47815;
  --accent-dim:    rgba(255,154,46,0.12);
  --border:        #24242b;
  --border-bright: #33333d;
  --green:    #4ade80;
  --red:      #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--accent); color: #000; }
.mono { font-family: 'JetBrains Mono', monospace; }

.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;
}

/* Atmosphere */
.stage { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 0%, #000 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 0%, #000 22%, transparent 72%);
}
.glow-orb {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,154,46,0.14) 0%, rgba(255,154,46,0.06) 40%, transparent 70%);
  filter: blur(40px);
  animation: orbDrift 14s ease-in-out infinite;
  pointer-events: none;
}
.orb-a { top: -22vw; right: -16vw; }
.orb-b { bottom: -26vw; left: -18vw; animation-delay: -7s; opacity: 0.7; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: 0.85; }
  50%       { transform: translate(-3vw, 3vh) scale(1.08); opacity: 1; }
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Primitives used by the gate */
.kicker {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.kicker strong { color: var(--accent); font-weight: 600; }
.kicker .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: live 1.8s infinite;
}
@keyframes live { 50% { opacity: 0.3; } }

.highlight {
  color: var(--accent); font-style: italic; font-weight: 500;
  position: relative; white-space: nowrap;
}
.highlight::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 4px;
  height: 0.22em; background: var(--accent-dim); z-index: -1; transform: skew(-6deg);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  border-radius: 12px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 34px -10px rgba(255,154,46,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255,154,46,0.7); }

/* Gate card */
.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 18px; }
.gate-card {
  width: min(500px, 94vw);
  text-align: center;
  background: linear-gradient(155deg, var(--bg-elev), var(--bg-2));
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
}
.gate-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.gate-card > * { position: relative; }
.gate-brand { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; margin-bottom: 26px; }
.gate-card .kicker { margin-bottom: 22px; }
.gate-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.gate-card h1 .hl { color: var(--accent); }
.gate-lead { color: var(--fg-dim); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.gate-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 4px 0 28px;
}
.gate-tags span {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}
.gate-form { display: grid; gap: 12px; }
.gate-form input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.gate-err { color: var(--red); font-size: 12.5px; text-align: left; }
.gate-micro { margin-top: 18px; font-size: 12px; color: var(--fg-dim); letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  .glow-orb, .kicker .live { animation: none; }
}
@media (max-width: 900px) {
  .gate-card { padding: 38px 26px; }
}
