:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-strong: #edf2f9;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(103, 125, 149, 0.18);
  --line-strong: rgba(91, 111, 131, 0.3);
  --text: #16202b;
  --text-soft: #607183;
  --accent: #7390a9;
  --shadow: 0 30px 80px rgba(118, 143, 166, 0.18);
  --shadow-soft: 0 18px 36px rgba(149, 172, 194, 0.2);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --outer-x: 0px;
  --outer-y: 0px;
  --outer-rx: 0deg;
  --outer-ry: 0deg;
  --middle-x: 0px;
  --middle-y: 0px;
  --middle-rx: 0deg;
  --middle-ry: 0deg;
  --inner-x: 0px;
  --inner-y: 0px;
  --inner-rx: 0deg;
  --inner-ry: 0deg;
}

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

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

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(160deg, #fdfefe 0%, var(--bg) 48%, var(--bg-strong) 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.scene {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.scene__canvas,
.scene__grid,
.scene__halo {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene__canvas {
  z-index: -3;
}

.scene__grid {
  z-index: -2;
  opacity: 0.46;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(104, 139, 170, 0.13) 100%),
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(104, 139, 170, 0.13) 100%);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 82%);
  animation: gridDrift 24s linear infinite;
}

.scene__halo {
  z-index: -1;
  opacity: 0.95;
  filter: blur(10px);
}

.scene__halo--primary {
  background:
    radial-gradient(circle at 50% 44%, rgba(141, 184, 219, 0.34), transparent 24%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.9), transparent 30%);
}

.scene__halo--secondary {
  background:
    radial-gradient(circle at 18% 24%, rgba(189, 214, 235, 0.28), transparent 20%),
    radial-gradient(circle at 82% 76%, rgba(186, 204, 231, 0.24), transparent 18%);
}

.hero {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.hero__panel {
  position: relative;
  width: min(900px, 100%);
  padding: 36px;
  border: 1px solid rgba(53, 108, 153, 0.5);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(205, 227, 243, 0.96), rgba(188, 216, 237, 0.9));
  box-shadow:
    0 38px 100px rgba(91, 129, 160, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(125%);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1200px)
    translate3d(var(--outer-x), var(--outer-y), 0)
    rotateX(var(--outer-rx))
    rotateY(var(--outer-ry));
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}

.hero__panel > * {
  position: relative;
  z-index: 2;
}

.hero__panel::before,
.hero__panel::after {
  content: none;
}

.hero__logo-shell {
  position: relative;
  width: min(830px, 100%);
  min-height: 425px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius-xl) - 8px);
  background: linear-gradient(180deg, rgba(239, 248, 254, 0.99), rgba(221, 239, 251, 0.97));
  border: 1px solid rgba(47, 113, 167, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 44px rgba(112, 151, 184, 0.1);
  transform: perspective(1100px)
    translate3d(var(--middle-x), var(--middle-y), 24px)
    rotateX(var(--middle-rx))
    rotateY(var(--middle-ry));
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.hero__logo-shell::after {
  content: none;
}

.hero__logo-frame {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 738 / 360;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(62, 124, 174, 0.38);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(72, 125, 168, 0.2);
  transform: perspective(1000px)
    translate3d(var(--inner-x), var(--inner-y), 36px)
    rotateX(var(--inner-rx))
    rotateY(var(--inner-ry));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.hero__logo-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 10%;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.07) 38%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(208, 232, 249, 0.18) 62%,
    transparent 72%
  );
  transform: translateX(-145%) skewX(-12deg);
  animation: logoLightSweep 2.2s cubic-bezier(.3, .62, .3, 1) 1.35s both;
}

.hero__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 80%;
  height: 80%;
  margin: auto;
  aspect-ratio: 738 / 531;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  animation: logoFadeIn 1.8s ease-out 120ms both;
}

.hero__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 188px;
  min-width: 188px;
  min-height: 58px;
  padding: 13px 22px;
  border: 1px solid rgba(102, 143, 177, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(242, 248, 252, 0.68));
  box-shadow: 0 14px 32px rgba(106, 143, 175, 0.14);
  color: var(--text);
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  text-transform: uppercase;
  transition:
    box-shadow 190ms ease,
    border-color 190ms ease,
    background-color 190ms ease;
}

.contact-link__icon {
  width: 23px;
  height: 23px;
  fill: #587b99;
  filter: drop-shadow(0 4px 8px rgba(90, 131, 166, 0.16));
  transition: fill 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(83, 143, 190, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 19px 38px rgba(90, 139, 179, 0.2),
    0 0 0 4px rgba(125, 178, 219, 0.06);
}

.contact-link:hover .contact-link__icon,
.contact-link:focus-visible .contact-link__icon {
  fill: #366f9d;
  transform: scale(1.06);
}

.contact-link:focus-visible {
  outline: 2px solid rgba(83, 114, 143, 0.6);
  outline-offset: 3px;
}

@keyframes panelArrival {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes logoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes logoLightSweep {
  0% { opacity: 0; transform: translateX(-145%) skewX(-12deg); }
  16% { opacity: 0.38; }
  78% { opacity: 0.28; }
  100% { opacity: 0; transform: translateX(145%) skewX(-12deg); }
}

@keyframes borderOrbit {
  to { transform: rotate(360deg); }
}

@keyframes gridDrift {
  to { background-position: 72px 72px; }
}

@media (max-width: 720px) {
  .hero {
    place-items: center;
    min-height: 100svh;
    padding: 28px 28px 104px;
  }

  .hero__panel {
    padding: 14px;
    border-radius: 26px;
  }

  .hero__logo-shell {
    width: calc(100% - 24px);
    min-height: 160px;
    padding: 14px;
  }

  .hero__logo-frame {
    width: calc(100% - 32px);
    padding: 0;
    border-radius: 16px;
  }

  .hero__logo {
    width: 86%;
    height: 86%;
    border-radius: 10px;
  }

  .hero__links {
    gap: 10px;
    margin-top: 16px;
  }

  .contact-link {
    width: calc(50% - 5px);
    min-width: 0;
    min-height: 52px;
    padding: 10px 12px;
    gap: 9px;
    font-size: 0.72rem;
  }

  .scene__grid {
    background-size: 56px 56px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scene__canvas,
  .scene__halo--primary {
    display: none;
  }

  .hero__panel,
  .hero__logo-shell,
  .hero__logo-frame,
  .contact-link {
    transform: none !important;
  }

  .scene__grid,
  .hero__panel,
  .hero__logo,
  .hero__panel::after {
    animation: none !important;
  }
}
