@property --fx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root,
[data-theme="dark"] {
  --fx-blur: blur(24px) saturate(190%) brightness(1.04);
  --fx-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fx-noise-opacity: 0.03;
  --fx-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 46%, rgba(255, 255, 255, 0.03) 100%), rgba(9, 18, 24, 0.56);
  --fx-rim: linear-gradient(140deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.16) 22%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.02) 70%, rgba(124, 181, 237, 0.22) 100%);
  --fx-elev: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --fx-elev-hover: inset 0 1px 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.06), 0 34px 64px -14px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(124, 181, 237, 0.08);
  --fx-spot-surface: rgba(124, 181, 237, 0.13);
  --fx-spot-rim: rgba(160, 205, 245, 0.95);
  --fx-beam-a: #34EE9D;
  --fx-beam-b: #7CB5ED;
  --fx-aurora-opacity: 0.85;
}

[data-theme="light"] {
  --fx-blur: blur(24px) saturate(170%) brightness(1.06);
  --fx-noise-opacity: 0.025;
  --fx-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.66) 100%), rgba(240, 246, 252, 0.42);
  --fx-rim: linear-gradient(140deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 26%, rgba(30, 102, 176, 0.1) 60%, rgba(30, 102, 176, 0.22) 100%);
  --fx-elev: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 1px 0 rgba(30, 102, 176, 0.06), 0 24px 48px -16px rgba(16, 42, 67, 0.22);
  --fx-elev-hover: inset 0 1px 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 1px 0 rgba(30, 102, 176, 0.08), 0 34px 60px -18px rgba(16, 42, 67, 0.3);
  --fx-spot-surface: rgba(58, 133, 206, 0.1);
  --fx-spot-rim: rgba(58, 133, 206, 0.85);
  --fx-beam-a: #00733F;
  --fx-beam-b: #3A85CE;
  --fx-aurora-opacity: 0.7;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html .ambient-mesh-engine {
  display: block !important;
  opacity: var(--fx-aurora-opacity);
  contain: strict;
}

html .ambient-mesh-engine .mesh-blob {
  filter: blur(90px);
  animation-name: fxDrift1;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  backface-visibility: hidden;
}

html .ambient-mesh-engine .mesh-blob--blue { animation-duration: 26s; }
html .ambient-mesh-engine .mesh-blob--green { animation-name: fxDrift2; animation-duration: 32s; }
html .ambient-mesh-engine .mesh-blob--yellow { animation-name: fxDrift3; animation-duration: 22s; }
html .ambient-mesh-engine .mesh-blob--blue2 { animation-name: fxDrift2; animation-duration: 38s; animation-delay: -9s; }
html .ambient-mesh-engine .mesh-blob--green2 { animation-name: fxDrift1; animation-duration: 44s; animation-delay: -14s; }

@keyframes fxDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(12vw, 8vh, 0) scale(1.18); opacity: 0.72; }
  100% { transform: translate3d(-6vw, 16vh, 0) scale(0.92); opacity: 0.95; }
}

@keyframes fxDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.9; }
  50% { transform: translate3d(-14vw, -6vh, 0) scale(0.9); opacity: 1; }
  100% { transform: translate3d(6vw, -14vh, 0) scale(1.2); opacity: 0.7; }
}

@keyframes fxDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.55; }
  100% { transform: translate3d(10vw, -10vh, 0) scale(1.15); opacity: 0.9; }
}

html .card-spotlight {
  --spotlight-x: -999px;
  --spotlight-y: -999px;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(520px circle at var(--spotlight-x) var(--spotlight-y), var(--fx-spot-surface), transparent 48%),
    var(--fx-noise),
    var(--fx-surface);
  background-size: auto, 160px 160px, auto;
  -webkit-backdrop-filter: var(--fx-blur);
  backdrop-filter: var(--fx-blur);
  box-shadow: var(--fx-elev);
}

[data-theme="light"] .card-spotlight {
  border-color: rgba(30, 102, 176, 0.08);
}

html .card-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(220px circle at var(--spotlight-x) var(--spotlight-y), var(--fx-spot-rim), transparent 62%),
    var(--fx-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  html .card-spotlight:hover {
    box-shadow: var(--fx-elev-hover);
    border-color: rgba(124, 181, 237, 0.14);
  }
}

html .bento-card.bento-wide.card-spotlight::before,
html .dl-card.card-spotlight::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1.5px;
  border-radius: inherit;
  opacity: 1 !important;
  background: conic-gradient(from var(--fx-angle), transparent 0deg, transparent 262deg, var(--fx-beam-a) 300deg, var(--fx-beam-b) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fxBeam 7s linear infinite;
  pointer-events: none;
}

@keyframes fxBeam {
  to { --fx-angle: 360deg; }
}

html .announcement-bar,
html .compare-table-wrapper {
  -webkit-backdrop-filter: var(--fx-blur);
  backdrop-filter: var(--fx-blur);
}

html .announcement-bar {
  box-shadow: var(--fx-elev);
}

html .compare-table-wrapper {
  box-shadow: var(--fx-elev);
  background: var(--fx-noise), var(--fx-surface);
  background-size: 160px 160px, auto;
}

.fx-line-mask {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.fx-line {
  display: block;
  transform-origin: 50% 100%;
  will-change: transform;
}

.fx-split-ready .fx-line {
  backface-visibility: hidden;
}

.fx-magnetic,
.fx-tilt {
  will-change: transform;
}

.fx-tilt {
  transition-property: box-shadow, border-color, background !important;
}

.fx-magnetic {
  transition-property: background, border-color, color, box-shadow, filter, opacity !important;
}

.fx-depth {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html .ambient-mesh-engine .mesh-blob,
  html .bento-card.bento-wide.card-spotlight::before,
  html .dl-card.card-spotlight::before {
    animation: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  html .card-spotlight {
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
  }
}

.floating-btn-support {
  display: none !important;
  position: relative;
  font: inherit;
}

html.gk-crisp .floating-btn-support {
  display: inline-flex !important;
}

.floating-btn-support svg {
  color: #f59e0b;
  flex-shrink: 0;
}

[data-theme="light"] .floating-btn-support svg {
  color: #b45309;
}

html .floating-actions-dock .floating-btn.floating-btn-support {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
}

html .floating-actions-dock .floating-btn-support .floating-btn-text {
  display: inline;
}

.floating-btn-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--bg, #060b0e);
}

html.gk-crisp-unread .floating-btn-dot {
  display: block;
}

html.gk-crisp-open .floating-actions-dock {
  visibility: hidden;
}

@media (max-width: 640px) {
  html:has(.announcement-bar:not(.is-dismissed):not(.is-away)) .floating-actions-dock .floating-btn.floating-btn-support {
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 0;
    justify-content: center;
  }

  html:has(.announcement-bar:not(.is-dismissed):not(.is-away)) .floating-actions-dock .floating-btn-support .floating-btn-text {
    display: none;
  }
}
