:root {
  --bg: #071016;
  --bg-soft: #0b171f;
  --panel: rgba(14, 30, 39, 0.78);
  --panel-border: rgba(190, 223, 232, 0.14);
  --text: #f2f7f8;
  --muted: #a6b7be;
  --muted-strong: #cad5d9;
  --accent: #10b5e5;
  --accent-2: #2879b9;
  --max: 1280px;
  --radius: 30px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(40, 121, 185, 0.15), transparent 26rem),
    radial-gradient(circle at 17% 80%, rgba(16, 181, 229, 0.075), transparent 28rem),
    linear-gradient(145deg, #071016 0%, #09151c 48%, #061016 100%);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 48px), var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 0 24px;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient--one {
  top: 5%;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: var(--accent-2);
}

.ambient--two {
  bottom: -8rem;
  left: -7rem;
  width: 22rem;
  height: 22rem;
  background: var(--accent);
  opacity: 0.07;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
}

.brand:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.brand img {
  width: 124px;
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status__dot::after {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(16, 181, 229, 0.46);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.55);
  animation: statusPulse 2.4s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  14% {
    opacity: 0.62;
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  flex: 1;
  padding: clamp(78px, 10vh, 126px) 0;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.35rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--muted);
  font-weight: 520;
}

.lead {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.72;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
}

.services span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.79rem;
  line-height: 1.35;
}

.services span::before {
  width: 18px;
  height: 1px;
  flex: 0 0 18px;
  content: "";
  background: linear-gradient(90deg, var(--accent), rgba(16, 181, 229, 0.18));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  text-decoration: none;
  transition:
    transform 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #061219;
  background: var(--accent);
}

.button--primary:hover {
  background: #35c3ec;
}

.button--ghost {
  border-color: rgba(202, 213, 217, 0.18);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
}

.button--ghost:hover {
  border-color: rgba(16, 181, 229, 0.42);
  color: var(--text);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.visual-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.visual-card::before {
  position: absolute;
  top: -1px;
  left: 9%;
  width: 54%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(16, 181, 229, 0.72), transparent);
}

.visual-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 13px;
  border-bottom: 1px solid rgba(205, 224, 230, 0.08);
  color: #8fa2aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
}

.visual-card__live {
  position: relative;
  padding-left: 13px;
  color: var(--accent-2);
}

.visual-card__live::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  transform: translateY(-50%);
}

.route {
  width: 100%;
  aspect-ratio: 1.27;
  margin-top: 8px;
}

.grid {
  fill: none;
  stroke: rgba(193, 218, 226, 0.065);
  stroke-width: 1;
}

.mountain {
  fill: url(#mountainFade);
}

.mountain--back {
  opacity: 0.42;
  transform: translateY(-18px);
}

.mountain--front {
  opacity: 0.38;
}

.route__line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.route__points circle {
  fill: #0b1820;
  stroke: var(--accent);
  stroke-width: 4;
}

.route__point {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.45);
}

.route__flash {
  fill: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.route__flash--outer {
  stroke: rgba(16, 181, 229, 0.65);
  stroke-width: 2.5;
}

.route__flash--inner {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

@keyframes drawRoute {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@keyframes revealPoint {
  0% {
    opacity: 0;
    transform: scale(0.45);
  }
  60% {
    opacity: 1;
    transform: scale(1.16);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes finishFlashOuter {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes finishFlashInner {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.visual-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
}

.visual-card__metrics div {
  padding: 13px 12px;
  border: 1px solid rgba(202, 213, 217, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.016);
}

.visual-card__metrics strong,
.visual-card__metrics span {
  display: block;
}

.visual-card__metrics strong {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.visual-card__metrics span {
  margin-top: 4px;
  color: #7f949d;
  font-size: 0.67rem;
}

.site-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(202, 213, 217, 0.08);
  color: #71868f;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

.js .hero__copy > *,
.js .hero__visual,
.js .site-header,
.js .site-footer {
  opacity: 0;
  transform: translateY(10px);
}

.js.is-ready .site-header,
.js.is-ready .site-footer,
.js.is-ready .hero__copy > *,
.js.is-ready .hero__visual {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 550ms ease,
    transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.js.is-ready .hero__copy > :nth-child(2) { transition-delay: 50ms; }
.js.is-ready .hero__copy > :nth-child(3) { transition-delay: 100ms; }
.js.is-ready .hero__copy > :nth-child(4) { transition-delay: 150ms; }
.js.is-ready .hero__copy > :nth-child(5) { transition-delay: 200ms; }
.js.is-ready .hero__visual { transition-delay: 110ms; }

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 82px 0 72px;
  }

  .hero__copy {
    max-width: 820px;
  }

  .hero__visual {
    width: min(100%, 760px);
  }

  h1 {
    font-size: clamp(3.25rem, 10.5vw, 6.2rem);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 30px), var(--max));
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 104px;
  }

  .site-header {
    gap: 12px;
  }

  .status {
    display: inline-flex;
    width: auto;
    max-width: 176px;
    margin-left: auto;
    padding-left: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    line-height: 1.35;
  }

  .status__dot {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 0.36em;
  }

  .hero {
    gap: 52px;
    padding: 58px 0 44px;
  }

  .eyebrow {
    max-width: 300px;
    margin-bottom: 14px;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.75rem);
    line-height: 0.95;
  }

  .lead {
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .services {
    display: grid;
    gap: 8px;
    margin-top: 22px;
  }

  .services span {
    width: max-content;
    max-width: 100%;
  }

  .actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .visual-card {
    padding: 12px 12px 11px;
    border-radius: 23px;
  }

  .visual-card__metrics {
    gap: 5px;
  }

  .visual-card__metrics div {
    padding: 10px 8px;
    border-radius: 12px;
  }

  .visual-card__metrics span {
    font-size: 0.6rem;
  }
}



@media (max-width: 420px) {
  .visual-card__metrics {
    grid-template-columns: 1fr;
  }

  .route {
    aspect-ratio: 1.15;
  }
}

.js.is-ready .route__line {
  animation: drawRoute 2.15s cubic-bezier(.25, .75, .2, 1) 280ms forwards;
}

.js.is-ready .route__point--1 { animation: revealPoint 420ms cubic-bezier(.2, .8, .2, 1) 520ms forwards; }
.js.is-ready .route__point--2 { animation: revealPoint 420ms cubic-bezier(.2, .8, .2, 1) 980ms forwards; }
.js.is-ready .route__point--3 { animation: revealPoint 420ms cubic-bezier(.2, .8, .2, 1) 1380ms forwards; }
.js.is-ready .route__point--4 { animation: revealPoint 420ms cubic-bezier(.2, .8, .2, 1) 1760ms forwards; }
.js.is-ready .route__point--5 { animation: revealPoint 520ms cubic-bezier(.18, .9, .2, 1) 2170ms forwards; }

.js.is-ready .route__flash--outer {
  animation: finishFlashOuter 820ms ease-out 2370ms forwards;
}

.js.is-ready .route__flash--inner {
  animation: finishFlashInner 520ms ease-out 2400ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .status__dot::after {
    animation: none;
  }

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