:root {
  --bg-0: #0b1018;
  --bg-1: #142031;
  --bg-2: #1a2a3f;
  --text-primary: #f2f6fb;
  --text-secondary: #bcc8d9;
  --panel-bg: rgba(19, 30, 45, 0.72);
  --panel-border: rgba(255, 255, 255, 0.16);
  --accent-blue: rgba(134, 170, 220, 0.34);
  --accent-cyan: rgba(78, 182, 170, 0.24);
  --accent-teal-soft: rgba(132, 224, 210, 0.14);
  --shift-x: 0px;
  --shift-y: 0px;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  padding-top: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-top));
  padding-right: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right));
  padding-bottom: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-bottom));
  padding-left: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left));
  overflow: hidden;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 540px at 50% -24%, rgba(137, 169, 217, 0.16), transparent 78%),
    radial-gradient(920px 480px at 105% 106%, rgba(80, 183, 171, 0.1), transparent 82%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 57%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px 360px at calc(50% + var(--shift-x)) calc(44% + var(--shift-y)),
    var(--accent-teal-soft),
    transparent 78%
  );
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.2) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 77% 74%, rgba(255, 255, 255, 0.16) 0 0.8px, transparent 1.2px);
  background-size:
    260px 260px,
    230px 230px;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
}

.ambient-a {
  top: -8%;
  left: -8%;
  width: min(48vw, 600px);
  height: min(34vw, 430px);
  background: radial-gradient(circle, var(--accent-blue), rgba(134, 170, 220, 0));
  transform: translate(calc(var(--shift-x) * 0.18), calc(var(--shift-y) * 0.18));
}

.ambient-b {
  right: -10%;
  bottom: -9%;
  width: min(42vw, 520px);
  height: min(30vw, 380px);
  background: radial-gradient(circle, var(--accent-cyan), rgba(78, 182, 170, 0));
  transform: translate(calc(var(--shift-x) * -0.14), calc(var(--shift-y) * -0.14));
}

.structure-lines {
  position: absolute;
  inset: 8% 5% 8% 5%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  opacity: 0.3;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(171, 191, 218, 0.12) 0,
      rgba(171, 191, 218, 0.12) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(171, 191, 218, 0.08) 0,
      rgba(171, 191, 218, 0.08) 1px,
      transparent 1px,
      transparent 92px
    );
  transform: translate(calc(var(--shift-x) * 0.08), calc(var(--shift-y) * 0.08));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
}

.light-sweep {
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  opacity: 0.12;
  background: radial-gradient(
    circle at 50% 52%,
    rgba(178, 211, 244, 0.08) 0%,
    rgba(130, 208, 200, 0.06) 28%,
    rgba(130, 208, 200, 0.02) 50%,
    rgba(130, 208, 200, 0) 76%
  );
  transform: translate(calc(var(--shift-x) * 0.06), calc(var(--shift-y) * 0.06)) scale(1);
  animation: tide-breathe 30s ease-in-out infinite;
}

.light-sweep::before {
  content: "";
  position: absolute;
  inset: 10% 14%;
  border-radius: 50%;
  border: 1px solid rgba(146, 220, 209, 0.08);
  opacity: 0.2;
  transform: scale(0.96);
  animation: tide-ring 34s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 3;
  flex: 1;
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 62px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 38%),
    var(--panel-bg);
  box-shadow:
    0 18px 44px rgba(7, 13, 22, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(132, 164, 210, 0.12) inset;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .hero-panel {
    -webkit-backdrop-filter: blur(10px) saturate(106%);
    backdrop-filter: blur(10px) saturate(106%);
  }
}

@supports not ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .hero-panel {
    background: rgba(20, 31, 46, 0.9);
  }
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -18%, rgba(159, 194, 239, 0.2), transparent 58%);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.logo-shell {
  position: relative;
  width: min(300px, 78%);
  margin: 0 auto 16px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(41, 76, 123, 0.18));
}

.logo-glow {
  position: absolute;
  inset: -14% -6%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(145, 180, 224, 0.22), rgba(145, 180, 224, 0));
  filter: blur(12px);
  animation: logo-breathe 8s ease-in-out infinite;
}

.company-name {
  margin: 18px auto 10px;
  color: var(--text-secondary);
  font-size: clamp(0.72rem, 1.15vw, 0.94rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: -0.014em;
  font-weight: 650;
  color: var(--text-primary);
  padding-bottom: 0.08em;
  text-shadow:
    0 0 14px rgba(255, 227, 249, 0.34),
    0 0 30px rgba(222, 182, 255, 0.24),
    0 0 54px rgba(208, 168, 255, 0.16);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    background-image: linear-gradient(
      108deg,
      #fff5ff 0%,
      #ffe2f8 18%,
      #ffffff 34%,
      #f8d2ff 48%,
      #e1c1ff 64%,
      #ffffff 78%,
      #ffe9fb 100%
    );
    background-size: 220% 220%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow:
      0 0 14px rgba(255, 230, 250, 0.4),
      0 0 30px rgba(237, 190, 255, 0.3),
      0 0 56px rgba(208, 170, 255, 0.2);
    animation: heading-gradient 10s ease-in-out infinite,
      heading-glow 4.8s ease-in-out infinite;
  }
}

.subtitle {
  margin: 14px auto 8px;
  max-width: 620px;
  color: #d5dfed;
  font-size: clamp(0.95rem, 1.75vw, 1.2rem);
  font-weight: 430;
  letter-spacing: 0.01em;
}

.loading-dots {
  margin: 22px auto 0;
  display: inline-flex;
  gap: 10px;
}

.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(178, 201, 229, 0.92);
  box-shadow: 0 0 6px rgba(145, 180, 224, 0.28);
  animation: dot-fade 1.5s infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.site-footer {
  position: relative;
  z-index: 3;
  margin-top: clamp(12px, 3vh, 24px);
  text-align: center;
  color: rgba(182, 196, 216, 0.86);
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  letter-spacing: 0.05em;
}

@keyframes tide-breathe {
  0%,
  100% {
    transform: translate(calc(var(--shift-x) * 0.06), calc(var(--shift-y) * 0.06)) scale(0.99);
    opacity: 0.09;
  }
  50% {
    transform: translate(calc(var(--shift-x) * 0.06), calc(var(--shift-y) * 0.06)) scale(1.02);
    opacity: 0.15;
  }
}

@keyframes tide-ring {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.14;
  }
  50% {
    transform: scale(1.01);
    opacity: 0.2;
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.52;
    transform: scale(1.01);
  }
}

@keyframes dot-fade {
  0%,
  85%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 0.95;
    transform: translateY(-3px);
  }
}

@keyframes heading-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes heading-glow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 230, 250, 0.26),
      0 0 22px rgba(237, 190, 255, 0.2),
      0 0 40px rgba(208, 170, 255, 0.14);
  }
  50% {
    text-shadow:
      0 0 18px rgba(255, 234, 252, 0.52),
      0 0 42px rgba(240, 195, 255, 0.4),
      0 0 76px rgba(214, 176, 255, 0.3);
  }
}

@media (max-width: 1024px) {
  .structure-lines {
    inset: 8% 3.5% 8% 3.5%;
  }

  .light-sweep {
    inset: 14% 8%;
    animation-duration: 34s;
  }
}

@media (max-width: 700px) {
  body {
    overflow-y: auto;
  }

  .structure-lines {
    inset: 8% 2% 8% 2%;
    border-radius: 20px;
    opacity: 0.22;
  }

  .hero-panel {
    border-radius: 24px;
    padding: 28px 20px 34px;
  }

  .company-name {
    letter-spacing: 0.11em;
  }

  .site-footer {
    letter-spacing: 0.02em;
  }
}

@media (max-height: 720px) {
  body {
    overflow-y: auto;
  }

  .hero-panel {
    padding: 24px 20px 28px;
  }

  .company-name {
    margin-top: 12px;
  }

  .subtitle {
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  h1 {
    letter-spacing: -0.01em;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(20, 31, 46, 0.88);
  }

  .light-sweep {
    inset: 18% 8%;
    opacity: 0.09;
    animation-duration: 42s;
  }

  .light-sweep::before {
    opacity: 0.12;
    animation-duration: 46s;
  }

  .noise-layer {
    opacity: 0.03;
  }

  .ambient {
    filter: blur(34px);
  }

  .logo-glow {
    animation: none;
    opacity: 0.35;
  }

  .loading-dots span {
    animation-duration: 1.8s;
  }
}

@supports not ((-webkit-mask-image: linear-gradient(black, transparent)) or (mask-image: linear-gradient(black, transparent))) {
  .structure-lines {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.18;
  }
}

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

  :root {
    --shift-x: 0px;
    --shift-y: 0px;
  }

  .light-sweep,
  .light-sweep::before,
  h1,
  .logo-glow,
  .loading-dots span {
    animation: none !important;
  }
}
