:root {
  --bg: #05070b;
  --elevated: #0b1220;
  --blue: #1a73e8;
  --deep: #0056d2;
  --blue-glow: rgba(26, 115, 232, 0.38);
  --ink: #e8eef7;
  --mute: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  color-scheme: dark;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: color-mix(in srgb, var(--blue) 45%, transparent);
  color: white;
}

:focus-visible {
  outline: 2px solid rgba(26, 115, 232, 0.85);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  border-radius: 0.5rem;
  background: var(--blue);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: rgba(5, 7, 11, 0.28);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.62);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.site-header-menu {
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.nav-link {
  position: relative;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--mute);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--deep));
}

.mobile-link {
  border-radius: 0.5rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mute);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-link:hover,
.mobile-link:focus-visible,
.mobile-link.is-active {
  color: var(--ink);
  background: rgba(26, 115, 232, 0.12);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ink);
}

/* Hero atmosphere */
.hero-plane {
  background: #05070b;
}

.hero-dots {
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.18) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 10%, transparent 75%);
  opacity: 0.55;
}

.hero-glow {
  background:
    radial-gradient(ellipse 55% 50% at 12% 55%, rgba(26, 115, 232, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 40% at 88% 30%, rgba(0, 86, 210, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(26, 115, 232, 0.1), transparent 55%);
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.28;
  pointer-events: none;
}

.hero-accent {
  margin-top: 0.15em;
  background: linear-gradient(120deg, #5aa2f5 0%, var(--blue) 45%, var(--deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.65rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease,
    border-color 0.25s ease, background 0.25s ease, opacity 0.2s ease;
}

.btn-primary:disabled,
.btn-ghost:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue) 0%, var(--deep) 100%);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.35), 0 10px 30px rgba(26, 115, 232, 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.5), 0 14px 36px rgba(26, 115, 232, 0.38);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 11, 0.45);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(26, 115, 232, 0.5);
  background: rgba(26, 115, 232, 0.1);
  transform: translateY(-2px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease,
    color 0.25s ease;
}

.hero-badge:hover {
  border-color: rgba(26, 115, 232, 0.55);
  background: rgba(26, 115, 232, 0.12);
  color: var(--ink);
  transform: translateY(-1px);
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
}

.pulse-dot::before,
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--blue);
}

.pulse-dot::before {
  animation: pulse-ring 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pulse-dot::after {
  box-shadow: 0 0 8px rgba(26, 115, 232, 0.75);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(2.45);
    opacity: 0;
  }
  100% {
    transform: scale(2.45);
    opacity: 0;
  }
}

.hero-stats {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1rem;
  padding: 1.15rem 0.85rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.hero-stat {
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-stat-value {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.hero-stat-label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 10;
  display: flex;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.3s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 1.6rem;
  background: linear-gradient(to bottom, #64748b, transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.service-panel,
.feature-tile,
.process-step,
.value-card,
.region-card,
.contact-panel {
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
}

.service-panel:hover,
.feature-tile:hover,
.process-step:hover,
.value-card:hover,
.region-card:hover {
  border-color: rgba(26, 115, 232, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.contact-panel:focus-within {
  border-color: rgba(26, 115, 232, 0.35);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.15);
}

.field {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  padding: 0.85rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color-scheme: dark;
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.field:focus {
  border-color: rgba(26, 115, 232, 0.7);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.field.is-invalid {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field::placeholder {
  color: #64748b;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}
.reveal.delay-2 {
  transition-delay: 0.18s;
}
.reveal.delay-3 {
  transition-delay: 0.26s;
}
.reveal.delay-4 {
  transition-delay: 0.34s;
}

#menu-btn .menu-icon span {
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}
#menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

@media (max-width: 379px) {
  .hero-badge {
    font-size: 0.72rem;
    padding-inline: 0.75rem;
  }

  .hero-stats {
    padding-inline: 0.35rem;
  }

  .hero-stat-label {
    letter-spacing: 0.1em;
    font-size: 0.58rem;
  }
}

@media (max-width: 639px) {
  .scroll-cue {
    bottom: 0.85rem;
  }
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 18, 32, 0.85);
  color: var(--ink);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(26, 115, 232, 0.5);
  background: rgba(26, 115, 232, 0.18);
}

@media (min-width: 640px) {
  .back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

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

  .pulse-dot::before,
  .scroll-cue-line,
  .reveal,
  .back-to-top {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .back-to-top:not(.is-visible) {
    opacity: 0;
  }
}
