:root {
  color-scheme: dark;
  --workai-bg: #050608;
  --workai-surface: rgba(16, 19, 25, 0.76);
  --workai-surface-strong: rgba(21, 25, 33, 0.9);
  --workai-line: rgba(233, 240, 248, 0.11);
  --workai-copy: #f5f7fa;
  --workai-muted: #a5adba;
  --workai-cyan: #9fe8f4;
  --workai-blue: #b8c8ff;
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  overflow-x: clip;
  background: var(--workai-bg);
  color: var(--workai-copy);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#root {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}

#root::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 4%, rgba(73, 126, 154, 0.14), transparent 31rem),
    radial-gradient(ellipse at 88% 22%, rgba(103, 108, 163, 0.1), transparent 34rem),
    linear-gradient(180deg, #07090d 0%, #050608 50%, #07090c 100%);
  content: "";
  pointer-events: none;
}

main {
  position: relative;
}

main section {
  scroll-margin-top: 5rem;
}

header[class*="fixed"] {
  border-color: rgba(237, 243, 250, 0.09) !important;
  background: rgba(7, 9, 13, 0.72) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

header.relative.min-h-screen {
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(119, 188, 211, 0.1), transparent 34rem),
    radial-gradient(ellipse at 82% 38%, rgba(125, 130, 190, 0.08), transparent 26rem);
}

.workai-parallax {
  view-timeline-name: --workai-hero;
  view-timeline-axis: block;
}

.workai-parallax::before {
  position: absolute;
  z-index: 0;
  inset: -7rem -4rem;
  background: radial-gradient(ellipse at 50% 36%, rgba(151, 209, 232, 0.1), transparent 47%);
  content: "";
  pointer-events: none;
}

@keyframes workai-parallax-drift {
  from {
    transform: translate3d(0, -2.5%, 0) scale(0.98);
  }

  to {
    transform: translate3d(0, 5%, 0) scale(1.04);
  }
}

@supports (animation-timeline: view()) {
  .workai-parallax::before {
    animation: workai-parallax-drift linear both;
    animation-timeline: --workai-hero;
    animation-range: exit 0% exit 100%;
  }
}

.text-gradient-neon {
  background-image: linear-gradient(112deg, #ffffff 5%, #d9e5f0 43%, #a8eaf2 76%, #d1d7fb 100%);
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}

.text-shadow-glow {
  text-shadow: 0 0 55px rgba(182, 218, 238, 0.12);
}

.text-neon,
.text-neon-soft {
  color: var(--workai-cyan) !important;
}

.kicker {
  border-color: rgba(226, 238, 249, 0.13) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)) !important;
  color: #c5ccd7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 30px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background: linear-gradient(180deg, #f7fafc, #dce5ed) !important;
  color: #0b1016 !important;
  box-shadow: 0 10px 35px rgba(178, 215, 230, 0.15), inset 0 1px 0 #fff;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff, #e7eef4) !important;
  box-shadow: 0 14px 42px rgba(178, 215, 230, 0.22), inset 0 1px 0 #fff;
  transform: translateY(-2px);
}

.btn-soft,
.btn-ghost {
  border: 1px solid rgba(238, 244, 250, 0.15) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #edf2f7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.btn-soft:hover,
.btn-ghost:hover {
  border-color: rgba(224, 239, 249, 0.28) !important;
  background: rgba(255, 255, 255, 0.085) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.glass,
.border-glow {
  border-color: var(--workai-line) !important;
  background-color: var(--workai-surface) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 24px 70px -38px rgba(0, 0, 0, 0.8),
    0 0 48px -34px rgba(151, 209, 232, 0.26);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.glass {
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 62%) !important;
}

.border-glow::before {
  background: linear-gradient(132deg, rgba(217, 236, 249, 0.28), rgba(156, 205, 227, 0.06) 42%, transparent 68%) !important;
}

.border-glow {
  perspective: 1100px;
  transform-style: preserve-3d;
  transition:
    transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1),
    border-color 300ms ease,
    box-shadow 420ms ease;
}

.border-glow:hover {
  border-color: rgba(223, 239, 249, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 30px 75px -38px rgba(0, 0, 0, 0.9),
    0 0 55px -32px rgba(151, 209, 232, 0.36);
}

.grid-lines {
  background-image:
    linear-gradient(rgba(231, 241, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 241, 248, 0.055) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.shadow-card {
  box-shadow: 0 24px 72px -40px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

::selection {
  background: rgba(151, 209, 232, 0.28);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(159, 232, 244, 0.9);
  outline-offset: 3px;
}

.workai-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.workai-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.workai-reveal.workai-tilting {
  transform:
    perspective(1000px)
    rotateX(var(--workai-rotate-x, 0deg))
    rotateY(var(--workai-rotate-y, 0deg))
    translate3d(0, -3px, 0);
}

@media (max-width: 767px) {
  .glass,
  .border-glow {
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
  }

  .workai-reveal {
    transform: translate3d(0, 12px, 0);
    transition-duration: 460ms;
  }
}

@media (hover: hover) and (pointer: fine) {
  .border-glow:hover:not(.workai-tilting) {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1.25deg) translate3d(0, -3px, 0);
  }

  .workai-tilting {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .workai-reveal,
  .workai-reveal.is-visible,
  .workai-reveal.workai-tilting,
  .border-glow,
  .workai-parallax::before,
  .btn-primary,
  .btn-soft,
  .btn-ghost {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
