/* ════════════════════════════════════════
   PNT.OS — base styles + boot log
════════════════════════════════════════ */
:root {
  --bg:        #080b14;
  --bg-alt:    #0c1020;
  --panel:     #0e1222;
  --panel-hi:  #141a2e;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);
  --red:       #ff334d;
  --red-dim:   rgba(255,51,77,0.12);
  --red-glow:  rgba(255,51,77,0.3);
  --orange:    #ff8c42;
  --green:     #4ade80;
  --text:      #dde3ef;
  --text-muted:#6b7799;
  --text-dim:  #3d4a66;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Outfit', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--red); }
strong { font-weight: 600; color: #fff; }

:focus-visible { outline: 1px dashed var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100000;
  padding: 8px 14px;
  background: var(--red);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

/* Faint grid + scanlines shared by both screens */
.os-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(255,51,77,0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,140,66,0.05), transparent 70%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}
.os-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--red); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 28px var(--red-glow); }

/* ════════════════════════════════════════
   BOOT SCREEN
════════════════════════════════════════ */
.boot-title {
  margin-bottom: 28px;
  color: var(--red);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}
.boot-log { min-height: 15em; white-space: pre-wrap; }
.boot-log .ok   { color: var(--green); }
.boot-log .warn { color: var(--orange); }
.boot-log .hi   { color: #fff; }
.boot-progress {
  margin-top: 24px;
  width: min(420px, 100%);
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.boot-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transition: width 0.25s linear;
}
.boot-skip {
  position: absolute;
  right: max(24px, 4vw);
  bottom: 32px;
  padding: 8px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.boot-skip:hover { color: #fff; border-color: var(--red); }
.boot-caret {
  display: inline-block;
  width: 0.6em; height: 1.1em;
  vertical-align: text-bottom;
  background: var(--red);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
