/* Absoluty Lead — tokens e fundo "glass" desfocado. Dois temas: claro (Aurora) e escuro (JARVIS). */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --rail-w: 76px; --rail-w-open: 244px;
  --ok: #17835f; --warn: #a15c07; --bad: #b3261e;
}

html[data-theme="light"], :root {
  color-scheme: light;
  --bg-base: #cdb89f;
  --text: #1c1814; --text-2: #2f2923; --muted: #463e35;
  --glass: rgba(255, 252, 247, .46); --glass-strong: rgba(255, 252, 247, .72); --glass-soft: rgba(255, 255, 255, .28);
  --edge: rgba(255, 255, 255, .62); --edge-soft: rgba(80, 60, 40, .12);
  --shadow: 0 18px 50px rgba(70, 48, 28, .22), inset 0 1px 0 rgba(255, 255, 255, .6);
  --accent: #095640; --accent-2: #b8651b; --accent-ink: #ffffff; --accent-soft: rgba(9, 86, 64, .14);
  --ink-btn: #1c1814; --ink-btn-text: #fffaf3;
  --chart-1: #d9684a; --chart-2: #1c1814; --chart-3: #e0a82e; --chart-4: #4a74d9; --chart-5: #2f9e6b;
  --ok: #0a5638; --warn: #6b3a02; --bad: #8f1a12;
  --orb-1: #f6e8d4; --orb-2: #8a6a4a; --orb-3: #9fc9bb; --orb-4: #e7a566;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #050a14;
  --text: #e8f3ff; --text-2: #bcd0e6; --muted: #a7bbd2;
  --glass: rgba(14, 26, 44, .52); --glass-strong: rgba(12, 22, 38, .8); --glass-soft: rgba(80, 150, 200, .08);
  --edge: rgba(120, 215, 255, .2); --edge-soft: rgba(120, 215, 255, .1);
  --shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(53, 216, 255, .05), inset 0 1px 0 rgba(160, 230, 255, .12);
  --accent: #35d8ff; --accent-2: #ffb347; --accent-ink: #03121a; --accent-soft: rgba(53, 216, 255, .14);
  --ink-btn: #35d8ff; --ink-btn-text: #03121a;
  --chart-1: #ff8a5c; --chart-2: #e8f3ff; --chart-3: #ffc857; --chart-4: #6aa8ff; --chart-5: #4be3a8;
  --ok: #4be3a8; --warn: #ffc857; --bad: #ff9a92;
  --orb-1: #0e4a6b; --orb-2: #08223f; --orb-3: #0b6e7a; --orb-4: #7a4a12;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg-base);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink-btn); color: var(--ink-btn-text); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Cenário desfocado: bokeh de ambiente atrás de tudo */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-base); }
.scene .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; will-change: transform; animation: drift 28s var(--ease) infinite alternate; }
.scene .o1 { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: var(--orb-1); }
.scene .o2 { width: 44vw; height: 60vh; right: -10vw; top: 6vh; background: var(--orb-2); animation-duration: 34s; }
.scene .o3 { width: 36vw; height: 36vw; left: 28vw; bottom: -16vw; background: var(--orb-3); animation-duration: 40s; }
.scene .o4 { width: 26vw; height: 26vw; right: 12vw; bottom: 6vh; background: var(--orb-4); opacity: .6; animation-duration: 31s; }
.scene .shelf { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 0 14%, rgba(255,255,255,.07) 14% 15%, transparent 15% 46%, rgba(0,0,0,.06) 46% 47%, transparent 47% 78%, rgba(255,255,255,.06) 78% 79%, transparent 79%);
  filter: blur(14px); }
html[data-theme="dark"] .scene::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(53,216,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(53,216,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 75%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }

/* Vidro */
.glass { background: var(--glass); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--edge); box-shadow: var(--shadow); border-radius: var(--r-lg); }
.glass-soft { background: var(--glass-soft); border: 1px solid var(--edge-soft); border-radius: var(--r-md); }
.glass-strong { background: var(--glass-strong); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); border: 1px solid var(--edge); border-radius: var(--r-md); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-strong { background: var(--glass-strong); }
}
@media (prefers-reduced-motion: reduce) { .scene .orb { animation: none; } * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (prefers-contrast: more) { :root { --muted: var(--text-2); } .glass { background: var(--glass-strong); } }
