/*
 * Orbit skin for the freesaas theme: dark palette over a Three.js scene (assets/scene.js).
 * Loaded after the parent's site.css, so it only re-declares tokens and the few rules
 * that hard-code light colours. Without WebGL (html.fx-off) the gradient below stays.
 */
:root {
  color-scheme: dark;
  --bg0: #070b14;
  --bg1: rgba(15, 23, 40, 0.78);
  --bg2: rgba(30, 42, 66, 0.72);
  --bg-elev: rgba(255, 255, 255, 0.045);
  --bg-panel: rgba(11, 17, 31, 0.9);
  --line: rgba(148, 178, 214, 0.18);
  --text: #e9eff8;
  --muted: #9aabc2;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-ring: rgba(45, 212, 191, 0.3);
  --warn: #fbbf24;
  --danger: #fb7185;
  --ok: #34d399;
  --btn-primary-fg: #04141b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-a: rgba(45, 212, 191, 0.16);
  --grad-b: rgba(56, 189, 248, 0.12);
  --saas-locked: #94a3b8;
  --saas-bg: rgba(148, 163, 184, 0.16);
}

html {
  background:
    radial-gradient(1100px 700px at 78% 8%, rgba(45, 212, 191, 0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 30%, rgba(56, 189, 248, 0.1), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #070b14 40%, #0a1020 100%);
  background-attachment: fixed;
}
body { background: transparent; }
.fx-canvas { transition: opacity 0.6s ease; }
html:not(.fx-on) .fx-canvas { opacity: 0 !important; }

/* Chrome */
.site-header {
  background: rgba(7, 11, 20, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-mobile { background: rgba(7, 11, 20, 0.97); }
.site-footer { background: rgba(5, 8, 15, 0.82); backdrop-filter: blur(10px); }
.logo:hover .logo-free { color: #5eead4; }
.btn-primary:hover { background: #5eead4; }
.btn-primary { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 10px 30px rgba(45, 212, 191, 0.22); }

/* Hero */
.home-hero__title {
  background: linear-gradient(100deg, #ffffff 0%, #c9f7ef 45%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.home-hero__stat {
  background: rgba(13, 20, 36, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(148, 178, 214, 0.2);
}
.home-hero__cta,
.home-hero__cta:hover {
  background: linear-gradient(100deg, #2dd4bf, #38bdf8);
  color: #04141b;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(45, 212, 191, 0.32);
}
.home-hero__cta:hover { filter: brightness(1.08); }

/* Cards over the scene */
.why-stage {
  background: rgba(11, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.scene--capabilities { background: transparent; }
button.cap-tile {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
button.cap-tile:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.3); }
button.cap-tile.is-on { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.45), 0 0 34px rgba(45, 212, 191, 0.16); }
.cap-tile.is-off .cap-tile__dot { border-color: #5b6b83; }
.cap-panel { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.cap-core {
  background: rgba(20, 30, 50, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 40px rgba(45, 212, 191, 0.12);
}
.dialog-demo .demo-label { background: rgba(11, 17, 31, 0.92); }
dialog.module-dialog::backdrop { background: rgba(2, 4, 10, 0.7); }
.cookie-banner { box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5); }

/* Status chips keep their meaning on dark */
.badge.alpha { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.badge.beta { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.badge.release { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.limit-box { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: #fcd34d; }

/* The «other agent» logo is a dark glyph on the text colour: keep the plate dark, invert the glyph */
.provider-logo.other { background: #1e293b; }
.provider-logo.other img { filter: invert(1); }

input, select, textarea { color-scheme: dark; }
