/* acompiled OS: the site's shared visual language, loaded after every other sheet.
   A near-black base lit by slow gold, indigo and violet light; gold as the primary
   accent; neon cyan and magenta for hover, focus and glow; windows, docks and
   bracket-cornered callouts. Motion lives in os.js; this sheet works without it. */

:root {
  --ink-950: #07070c;
  --ink-900: #0c0c14;
  --surface: rgba(20, 19, 31, .72);
  --surface-2: rgba(28, 26, 42, .82);
  --surface-3: #2a2740;
  --line: rgba(255, 236, 200, .10);
  --line-strong: rgba(255, 236, 200, .2);
  --text: #f5f2ea;
  --muted: #aaa6b8;
  --subtle: #8f8ba0;
  --code-bg: rgba(9, 9, 16, .7);
  --gold: #f5c451;
  --gold-2: #ffe29a;
  --gold-deep: #c88f22;
  --indigo: #5d6cff;
  --violet: #a37dff;
  --neon: #4ff3ff;
  --magenta: #ff4fd8;
  --cyan: #5fe6ff;
  --amber: #f5c451;
  --gold-text: linear-gradient(100deg, #fff1c4 0%, #f5c451 38%, #ffb347 62%, #ffe29a 100%);
  --sunset: linear-gradient(100deg, #ff4fd8, #ff8a5c 50%, #f5c451);
  --glass: rgba(14, 13, 23, .62);
  --shadow: 0 30px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 236, 200, .04);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .72, .18, 1);
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: os-page-out .22s var(--ease) both; }
::view-transition-new(root) { animation: os-page-in .42s var(--ease) both; }
::view-transition-group(os-topbar), ::view-transition-group(os-dock) { animation-duration: .4s; }
@keyframes os-page-out { to { opacity: 0; transform: translateY(-6px) scale(.995); filter: blur(4px); } }
@keyframes os-page-in { from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(6px); } }

html { background: var(--ink-950); overflow-x: clip; }
body { overflow-x: clip; }
body { background: var(--ink-950); font-family: var(--sans); }
::selection { color: #120c00; background: var(--gold); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

/* The light behind everything: three slow orbs, a cursor glow, and a faint grain of grid. */
.ambient { display: none; }
.os-sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.os-orb { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .22; will-change: transform; }
.os-orb.gold { top: -18vmax; left: -10vmax; background: radial-gradient(circle, #f5c451, transparent 65%); animation: os-drift-a 34s ease-in-out infinite alternate; }
.os-orb.indigo { top: 20vh; right: -18vmax; background: radial-gradient(circle, #4b55ff, transparent 65%); animation: os-drift-b 41s ease-in-out infinite alternate; }
.os-orb.violet { bottom: -26vmax; left: 22vw; background: radial-gradient(circle, #9b5cff, transparent 65%); opacity: .16; animation: os-drift-c 47s ease-in-out infinite alternate; }
.os-sky::after { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(255, 236, 200, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 236, 200, .025) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
.os-glow { position: fixed; z-index: -1; top: 0; left: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(245, 196, 81, .09), rgba(163, 125, 255, .05) 40%, transparent 68%); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.os-js .os-glow.on { opacity: 1; }
@keyframes os-drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes os-drift-b { to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes os-drift-c { to { transform: translate(-16vw, -12vh) scale(1.1); } }

/* The menu bar: a floating sheet of glass that stays as you scroll. */
.topbar { position: sticky; top: 12px; z-index: 15; height: 60px; margin-top: 12px; padding: 0 12px 0 16px; gap: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); view-transition-name: os-topbar; transition: box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.os-scrolled .topbar { border-color: var(--line-strong); background: rgba(12, 11, 20, .8); box-shadow: 0 18px 60px rgba(0, 0, 0, .5); }
.brand { gap: 11px; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand > span:last-child { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 26px; height: 26px; border-color: rgba(245, 196, 81, .55); border-radius: 8px; background: radial-gradient(circle at 30% 20%, rgba(245, 196, 81, .35), rgba(245, 196, 81, .05)); box-shadow: 0 0 18px rgba(245, 196, 81, .25); transition: transform .5s var(--spring), box-shadow .3s ease; }
.brand-mark span { width: 3.5px; background: var(--gold); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.12); box-shadow: 0 0 28px rgba(245, 196, 81, .5); }
.brand:hover .brand-mark span { animation: os-eq .9s ease-in-out infinite alternate; }
.brand:hover .brand-mark span:nth-child(2) { animation-delay: -.3s; }
.brand:hover .brand-mark span:nth-child(3) { animation-delay: -.6s; }
@keyframes os-eq { 50% { transform: scaleY(.45); } }
.brand-mark span { transform-origin: bottom; }

.primary-nav { position: relative; gap: 4px; align-items: center; }
.nav-link { height: 36px; padding: 0 13px; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 550; transform: translateY(calc(var(--lift, 0) * -3px)) scale(calc(1 + var(--lift, 0) * .14)); transition: color .2s ease, transform .35s var(--spring); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { right: 13px; bottom: 3px; left: 13px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.os-lamp { position: absolute; top: 50%; left: 0; height: 36px; width: 0; margin-top: -18px; border: 1px solid rgba(245, 196, 81, .18); border-radius: 11px; background: linear-gradient(180deg, rgba(245, 196, 81, .12), rgba(245, 196, 81, .03)); pointer-events: none; opacity: 0; transition: transform .45s var(--spring), width .45s var(--spring), opacity .25s ease; }
.primary-nav:hover .os-lamp { opacity: 1; }
.search-trigger { height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .03); transition: border-color .2s ease, box-shadow .3s ease, background .2s ease; }
.search-trigger:hover { border-color: rgba(79, 243, 255, .4); background: rgba(79, 243, 255, .05); box-shadow: 0 0 22px rgba(79, 243, 255, .12); }
.avatar-button { border-radius: 11px; border-color: rgba(245, 196, 81, .45); color: var(--gold); background: rgba(245, 196, 81, .1); transition: transform .4s var(--spring), box-shadow .3s ease; }
.avatar-button:hover { color: var(--gold-2); background: rgba(245, 196, 81, .16); transform: scale(1.08); box-shadow: 0 0 22px rgba(245, 196, 81, .3); }
.demo-note { padding: 12px 4px 0; border-bottom: 0; }

/* The dock: on narrow screens the menu sits at the bottom, like a phone's. */
.os-dock { display: none; }
@media (max-width: 980px) {
  .os-dock { position: fixed; z-index: 16; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; display: flex; gap: 2px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(14, 13, 23, .78); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); transform: translateX(-50%); view-transition-name: os-dock; max-width: calc(100% - 24px); }
  .os-dock a { display: grid; justify-items: center; gap: 2px; min-width: 58px; padding: 7px 6px 6px; border-radius: 16px; color: var(--muted); font-size: 12px; font-weight: 600; transition: transform .35s var(--spring), color .2s ease, background .2s ease; }
  .os-dock a i { font-style: normal; font-size: 17px; line-height: 1; }
  .os-dock a.active { color: var(--gold); background: rgba(245, 196, 81, .1); }
  .os-dock a:active { transform: scale(.9); }
  main { padding-bottom: 120px; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 420px) { .os-dock { gap: 0; padding: 5px; } .os-dock a { min-width: 0; flex: 1; padding: 7px 5px 6px; letter-spacing: -.02em; } }

/* Type: gold display headlines with the short dash above them, as in the trailers. */
h1, h2, h3, .page-title { font-family: var(--display); }
h1 em, .page-title em, .os-gold { background: var(--gold-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; animation: os-sheen 9s ease-in-out infinite; }
@keyframes os-sheen { 50% { background-position: 100% 0; } }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .22em; }
.eyebrow-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 196, 81, .12), 0 0 14px var(--gold); animation: os-breathe 2.6s ease-in-out infinite; }
@keyframes os-breathe { 50% { box-shadow: 0 0 0 7px rgba(245, 196, 81, .04), 0 0 22px var(--gold); } }
.page-intro { position: relative; padding: 64px 0 34px; }
.page-intro::before, .os-dash::before { display: block; width: 34px; height: 3px; margin-bottom: 22px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 16px rgba(245, 196, 81, .6); content: ""; }
.page-title { letter-spacing: -.045em; }
.proof-line { background: var(--gold); }
a:not([class]) { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(245, 196, 81, .35); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
a:not([class]):hover { color: var(--neon); text-decoration-color: var(--neon); }

/* Buttons: gold that glows, outlines that light up neon, and a press that gives. */
.button { position: relative; overflow: hidden; isolation: isolate; white-space: nowrap; border-radius: 12px; transition: transform .35s var(--spring), box-shadow .3s ease, background .2s ease, border-color .2s ease, color .2s ease; transform: translate(var(--tx, 0), var(--ty, 0)); }
.button:hover { transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 2px)); }
.button:active { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.96); transition-duration: .08s; }
.button-primary { color: #1a1100; background: linear-gradient(180deg, #ffe08f, #f5c451 55%, #e0a632); box-shadow: 0 10px 30px rgba(245, 196, 81, .25), inset 0 1px 0 rgba(255, 255, 255, .55); }
.button-primary:hover { background: linear-gradient(180deg, #fff0bf, #ffd166 55%, #ebb23f); box-shadow: 0 14px 44px rgba(245, 196, 81, .42), 0 0 0 4px rgba(245, 196, 81, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
.button-outline { border-color: rgba(79, 243, 255, .4); color: var(--neon); background: rgba(79, 243, 255, .05); }
.button-outline:hover { border-color: var(--neon); background: rgba(79, 243, 255, .1); box-shadow: 0 0 26px rgba(79, 243, 255, .28), inset 0 0 12px rgba(79, 243, 255, .1); }
.button-quiet:hover { color: var(--gold-2); }
.button-ghost { border-radius: 10px; background: rgba(255, 255, 255, .03); }
.button-ghost:hover { border-color: rgba(255, 79, 216, .45); box-shadow: 0 0 18px rgba(255, 79, 216, .18); }
.button span[aria-hidden] { transition: transform .35s var(--spring); }
.button:hover span[aria-hidden] { transform: translateX(3px); }
.os-ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: os-ripple .6s var(--ease) forwards; }
@keyframes os-ripple { to { transform: scale(28); opacity: 0; } }
.text-button:hover, .browse-link:hover, .panel-link:hover { color: var(--gold); }

/* Windows: panels and cards are lit from where the pointer is and lean toward it. */
.panel, .project-card, .os-window, .closing-band, .agc-publisher, .product-notice {
  --mx: 50%; --my: 50%;
  border-color: var(--line);
  border-radius: var(--radius);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(245, 196, 81, var(--spot, 0)), transparent 45%), var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s ease, box-shadow .4s ease, transform .5s var(--spring), --spot .3s ease;
}
.os-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transform-style: preserve-3d; will-change: transform; }
.os-tilt.os-tilting { transition: border-color .3s ease, box-shadow .4s ease, transform .12s linear; }
.panel:hover, .project-card:hover, .agc-publisher:hover { --spot: .09; --lift: -3px; border-color: rgba(245, 196, 81, .28); box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(245, 196, 81, .06); }
.project-card:hover { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(245, 196, 81, .1), transparent 45%), var(--surface-2); }
@property --spot { syntax: "<number>"; inherits: true; initial-value: 0; }
.project-signal { background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 196, 81, .1), 0 0 12px var(--gold); }
.project-signal.cyan { background: var(--neon); box-shadow: 0 0 0 4px rgba(79, 243, 255, .1), 0 0 12px var(--neon); }
.project-card:hover .project-signal { animation: os-breathe 1.4s ease-in-out infinite; }
.project-title { font-family: var(--display); transition: color .2s ease; }
.project-card:hover .project-title { color: var(--gold-2); }
.closing-band { border-color: rgba(245, 196, 81, .2); background: radial-gradient(600px circle at var(--mx) var(--my), rgba(245, 196, 81, .12), transparent 50%), linear-gradient(120deg, rgba(93, 108, 255, .12), rgba(163, 125, 255, .08) 50%, rgba(245, 196, 81, .08)); }
.closing-band .eyebrow { color: var(--gold); }

/* A window frame: three lights and a mono title, for anything that is an app. */
.os-window { overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.os-titlebar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--subtle); background: rgba(255, 255, 255, .02); font: 12px var(--mono); }
.os-lights { display: flex; gap: 6px; }
.os-lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3648; transition: background .2s ease, transform .3s var(--spring); }
.os-window:hover .os-lights i:nth-child(1) { background: #ff5f57; }
.os-window:hover .os-lights i:nth-child(2) { background: #febc2e; }
.os-window:hover .os-lights i:nth-child(3) { background: #28c840; }
.os-lights i:hover { transform: scale(1.25); }
.os-titlebar strong { color: var(--muted); font-weight: 500; }
.os-titlebar .os-right { margin-left: auto; }

/* Callouts with bracket corners, numbered, checked off one after another. */
.os-callout { position: relative; padding: 16px 18px; }
.os-callout::before, .os-callout::after { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(245, 196, 81, .7); content: ""; transition: width .4s var(--spring), height .4s var(--spring), border-color .3s ease; }
.os-callout::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.os-callout::after { right: -1px; bottom: -1px; border-top: 0; border-left: 0; border-bottom-right-radius: 6px; }
.os-callout:hover::before, .os-callout:hover::after { width: 30px; height: 30px; border-color: var(--neon); }
.os-num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border: 1px solid rgba(245, 196, 81, .5); border-radius: 8px; color: var(--gold); font: 700 12px var(--mono); box-shadow: 0 0 14px rgba(245, 196, 81, .15); }
.os-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--code-bg); font: 11px var(--mono); }
.os-chip b { padding: 2px 7px; border-radius: 999px; color: #1a1100; background: var(--gold); font-weight: 700; letter-spacing: .06em; }
.os-chip code { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

/* Sparks from a click. */
.os-sparks { position: fixed; z-index: 60; inset: 0; pointer-events: none; overflow: hidden; }
.os-spark { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 10px var(--c, var(--gold)); animation: os-spark .7s var(--ease) forwards; }
.os-ring { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--gold); border-radius: 50%; animation: os-ring .55s var(--ease) forwards; }
@keyframes os-spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes os-ring { to { transform: scale(6); opacity: 0; border-width: 1px; } }

/* Scroll reveals: hidden only once the script is running, so nothing is lost without it. */
.os-js .os-reveal { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(5px); transition: opacity .7s var(--ease), transform .8s var(--spring), filter .7s var(--ease); transition-delay: var(--d, 0s); }
.os-js .os-reveal.os-in { opacity: 1; transform: none; filter: none; }
.os-js .os-reveal.os-in.os-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.os-js .os-reveal.os-in.os-settled { transition-delay: 0s; }

/* Forms and fields share the glass. */
.agc-form input, .agc-inline input, .agc-inline select, .agc-search input, .copy-field { border-radius: 10px; transition: border-color .2s ease, box-shadow .3s ease; }
.agc-form input:focus, .agc-inline input:focus, .agc-inline select:focus, .agc-search input:focus, .copy-field:focus-within { border-color: rgba(79, 243, 255, .6); outline: 0; box-shadow: 0 0 0 4px rgba(79, 243, 255, .1), 0 0 22px rgba(79, 243, 255, .12); }
.copy-button { transition: transform .35s var(--spring), color .2s ease; }
.copy-button:hover { color: var(--gold); transform: scale(1.15); }
.empty-note { border-radius: var(--radius); }
code { color: inherit; }

/* Dialogs open like windows. */
.search-dialog, .auth-dialog { border-radius: 20px; background: rgba(16, 15, 26, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.search-overlay:not([hidden]) .search-dialog, .auth-overlay:not([hidden]) .auth-dialog { animation: os-window-open .45s var(--spring) both; }
@keyframes os-window-open { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(6px); } }
.search-input-wrap { border-color: rgba(245, 196, 81, .38); border-radius: 12px; }
.search-input-wrap > span { color: var(--gold); }
.search-input-wrap:focus-within { outline-color: var(--neon); }
.auth-mark { border-color: rgba(245, 196, 81, .6); background: rgba(245, 196, 81, .08); }
.auth-mark span { background: var(--gold); }
.auth-dialog .eyebrow { color: var(--gold); }
.sso-button { border-radius: 12px; transition: transform .35s var(--spring), border-color .2s ease, box-shadow .3s ease; }
.sso-button:hover { border-color: rgba(245, 196, 81, .4); box-shadow: 0 0 24px rgba(245, 196, 81, .12); transform: translateY(-2px); }
.toast { border-color: rgba(245, 196, 81, .4); border-radius: 12px; backdrop-filter: blur(16px); }
.footer a:hover { color: var(--gold); }

/* The assembly pages share the language: their terminal is a window too. */
.hero-terminal { border-radius: 18px; border-color: var(--line-strong); background: rgba(16, 15, 26, .9); box-shadow: var(--shadow), 0 0 80px rgba(93, 108, 255, .08); }
.hero-terminal:hover { border-color: rgba(245, 196, 81, .3); }
.terminal-state, .result-check.passed, .project-status { color: #7ff0a8; }
.signal-strip { border-color: var(--line); }

@media (max-width: 980px) {
  .topbar { top: 8px; margin-top: 8px; }
}
@media (max-width: 680px) {
  .topbar { height: 54px; border-radius: 16px; padding: 0 8px 0 12px; }
  .brand { font-size: 13px; letter-spacing: .12em; }
  .page-intro { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .os-orb, h1 em, .page-title em, .os-gold, .eyebrow-dot { animation: none !important; }
  .os-js .os-reveal { opacity: 1; transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .os-glow { display: none; }
}
