:root {
  color-scheme: dark;
  --color-white: #ffffff;
  --color-ink: #231f20;
  --color-navy: #081f45;
  --color-night: #07162d;
  --color-night-deep: #030b19;
  --color-blue: #00aae0;
  --color-blue-bright: #36d5ff;
  --color-blue-action: #63ddff;
  --color-blue-wash: #e4f6fc;
  --color-canvas: #07162d;
  --color-line: rgba(255, 255, 255, 0.14);
  --color-muted: #a9b8cc;
  --color-success: #67efbd;
  --color-danger: #ff9b98;
  --glass-fill: rgba(255, 255, 255, 0.085);
  --glass-fill-strong: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.19);
  --glass-highlight: rgba(255, 255, 255, 0.42);
  --shadow-sm: 0 8px 24px rgba(0, 8, 24, 0.2);
  --shadow-md: 0 24px 70px rgba(0, 8, 24, 0.34);
  --shadow-glass:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 32px 90px rgba(0, 8, 24, 0.32);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --transition-fast: 160ms ease;
  --transition-base: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: Raleway, "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-night-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-night);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-white);
  letter-spacing: -0.04em;
}

p {
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--color-blue-action);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-night);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transform: translateY(-170%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-blue-action);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #8ae7ff;
}

.status-error {
  color: var(--color-danger);
  font-weight: 750;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glass-surface {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035) 46%, rgba(255, 255, 255, 0.075)),
    var(--glass-fill);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.glass-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--card-x, 20%) var(--card-y, 0%), rgba(255, 255, 255, 0.19), transparent 34%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.12), transparent 25% 76%, rgba(54, 213, 255, 0.08));
  pointer-events: none;
}

.liquid-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 38%, rgba(0, 170, 224, 0.18), transparent 26%),
    radial-gradient(circle at 62% 4%, rgba(36, 98, 204, 0.2), transparent 31%),
    linear-gradient(148deg, #06142b 0%, #081f45 46%, #030b19 100%);
}

.liquid-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 48%, rgba(255, 255, 255, 0.025) 50%, transparent 52% 100%);
  background-size: 180px 180px;
  opacity: 0.5;
}

.liquid-backdrop__orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.8;
  transform: translate3d(var(--depth-x, 0), var(--depth-y, 0), 0);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-backdrop__orb--one {
  top: -18vw;
  right: -8vw;
  width: clamp(420px, 52vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 32% 36%, rgba(105, 229, 255, 0.5), rgba(0, 137, 184, 0.19) 34%, rgba(0, 170, 224, 0) 68%);
}

.liquid-backdrop__orb--two {
  bottom: -34vw;
  left: -15vw;
  width: clamp(560px, 70vw, 1100px);
  aspect-ratio: 1;
  border: 1px solid rgba(106, 222, 255, 0.16);
  background: radial-gradient(circle at 58% 42%, rgba(0, 170, 224, 0.18), rgba(21, 70, 143, 0.1) 42%, transparent 70%);
}

.liquid-backdrop__orb--three {
  top: 36%;
  left: 45%;
  width: clamp(220px, 26vw, 460px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(13, 237, 166, 0.1), transparent 67%);
  filter: blur(24px);
}

.liquid-backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), transparent 78%);
  opacity: 0.34;
}

.status-beacon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 5px rgba(103, 239, 189, 0.11), 0 0 20px rgba(103, 239, 189, 0.55);
}

[data-reveal] {
  animation: reveal-up 620ms var(--ease-emphasized) backwards;
}

.auth-topbar,
.app-header {
  animation-delay: 0ms;
}

.auth-hero__copy,
.welcome {
  animation-delay: 70ms;
}

.access-panel-wrap,
.systems {
  animation-delay: 140ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface {
    background: rgba(13, 35, 70, 0.96);
  }
}

@media (max-width: 620px) {
  .glass-surface {
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
  }

  .liquid-backdrop__grid {
    background-size: 52px 52px;
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
