/*
 * Glass skin for the freesaas theme: a shader gradient (assets/scene.js) behind glass cards
 * that tilt towards the pointer. Light palette of the parent; without WebGL (html.fx-off)
 * the static gradient below stays and the cards keep their glass look.
 */
:root {
  --bg1: rgba(255, 255, 255, 0.62);
  --bg-panel: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 30, 45, 0.1);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 18px 46px rgba(15, 40, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-blur: blur(20px) saturate(165%);
}
html {
  background:
    radial-gradient(900px 620px at 86% 12%, rgba(13, 148, 136, 0.26), transparent 62%),
    radial-gradient(900px 700px at 8% 62%, rgba(2, 132, 199, 0.22), transparent 60%),
    radial-gradient(700px 500px at 55% 96%, rgba(124, 92, 232, 0.16), transparent 60%),
    #f1f6fa;
  background-attachment: fixed;
}
body { background: transparent; }
.fx-canvas { transition: opacity 0.8s ease; }
html:not(.fx-on) .fx-canvas { opacity: 0 !important; }

/* Chrome */
.site-header {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.site-footer {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.scene--capabilities { background: transparent; }
.scene { border-bottom-color: rgba(255, 255, 255, 0.55); }

/* Glass cards */
.home-hero__stat,
.why-stage,
button.cap-tile,
.cap-core,
.cap-panel,
.provider-btn,
.catalog-card,
.solution-card,
.case-card {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.why-stage { background: rgba(255, 255, 255, 0.66); }
.cap-panel { background: rgba(255, 255, 255, 0.82); }
button.cap-tile.is-on {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 18px 46px rgba(13, 148, 136, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
button.cap-tile.is-off { background: rgba(255, 255, 255, 0.36); }

/* 3D tilt: scene.js sets --tx/--ty (angles) and --gx/--gy (glare position) on the hovered card */
.cap-grid, .home-hero__stats, .provider-grid, .catalog-grid, .solution-grid { perspective: 1100px; }
.is-tilt {
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(10px) !important;
  transition: transform 0.08s linear, box-shadow 0.28s var(--ease) !important;
  background-image: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.7), transparent 62%) !important;
  box-shadow: 0 26px 60px rgba(15, 40, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  z-index: 2;
}

/* Hero: bigger type on glass, primary action in brand gradient */
.home-hero__cta,
.home-hero__cta:hover {
  background: linear-gradient(100deg, #0d9488, #0284c7);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.28);
}
.home-hero__cta:hover { filter: brightness(1.07); }

/* Floating panes behind the hero (added by scene.js; decorative) */
.fx-panes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  perspective: 1200px;
  overflow: hidden;
  opacity: calc(1 - var(--sc, 0) * 0.9);
}
.fx-pane {
  position: absolute;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
  box-shadow: 0 30px 80px rgba(15, 40, 60, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform;
}
.fx-pane--a {
  width: 21vw; height: 28vw; right: 9vw; top: 16vh;
  transform: translate3d(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -18px - var(--sc, 0) * 160px), 0) rotateX(14deg) rotateY(-26deg) rotateZ(4deg);
}
.fx-pane--b {
  width: 13vw; height: 13vw; right: 26vw; top: 52vh; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(13, 148, 136, 0.22) 55%, rgba(2, 132, 199, 0.16));
  transform: translate3d(calc(var(--px, 0) * 40px), calc(var(--py, 0) * 28px - var(--sc, 0) * 320px), 0);
}
.fx-pane--c {
  width: 15vw; height: 9vw; right: 3vw; top: 60vh;
  transform: translate3d(calc(var(--px, 0) * -52px), calc(var(--py, 0) * -34px - var(--sc, 0) * 240px), 0) rotateX(-18deg) rotateY(-32deg) rotateZ(-8deg);
}
@media (max-width: 900px) {
  .fx-pane--a { width: 46vw; height: 60vw; right: -12vw; top: 8vh; opacity: 0.6; }
  .fx-pane--b { width: 26vw; height: 26vw; right: 58vw; top: 70vh; opacity: 0.6; }
  .fx-pane--c { display: none; }
}
@media (min-width: 1100px) {
  .home-hero__title { max-width: 14.5em; }
}
