:root {
  --void: #080c12;
  --panel: #10161e;
  --raised: #171e28;
  --line: #2a3544;
  --frost: #e8eef4;
  --mute: #8b96a3;
  --signal: #3db8b4;
  --signal-bright: #6ee0db;
  --tungsten: #e8a83a;
  --focus: #6ee0db;
}

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

html {
  scroll-behavior: smooth;
}

section[id],
#dashboard {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--frost);
  font-family: Figtree, system-ui, sans-serif;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--raised);
  color: var(--frost);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.hero-grid {
  background-image: radial-gradient(circle at center, rgba(61, 184, 180, 0.18) 0 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 72%);
}

.glow-tungsten {
  background: radial-gradient(ellipse at center, rgba(232, 168, 58, 0.28), transparent 68%);
}

.glow-signal {
  background: radial-gradient(ellipse at center, rgba(61, 184, 180, 0.16), transparent 70%);
}

.film-gate {
  position: relative;
}

.film-gate::before,
.film-gate::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--signal);
  border-style: solid;
  pointer-events: none;
}

.film-gate::before {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
}

.film-gate::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 2px 2px 0;
}

.phone-frame {
  box-shadow:
    0 0 0 1px rgba(110, 224, 219, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.45);
}

.render-bar {
  width: 72%;
  animation: render-fill 3.6s ease-in-out infinite alternate;
}

@keyframes render-fill {
  from { width: 58%; }
  to { width: 86%; }
}

.float-card {
  animation: float-y 6s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.live-dot {
  animation: pulse-live 1.6s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.doc {
  padding: 56px 0 96px;
}

.doc-inner {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
}

.doc header h1 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.updated {
  margin: 0 0 36px;
  color: var(--mute);
  font-size: 0.92rem;
}

.doc section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.doc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: #d5dde6;
  line-height: 1.7;
}

.doc p {
  margin: 0 0 12px;
}

.doc p:last-child,
.doc ul:last-child {
  margin-bottom: 0;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.doc li {
  margin: 0 0 8px;
}

.doc a {
  color: var(--signal-bright);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .render-bar,
  .float-card,
  .live-dot {
    animation: none;
  }
}
