:root {
  color-scheme: dark;
  --bg: #020611;
  --panel: rgba(5, 12, 28, 0.62);
  --panel-border: rgba(117, 150, 255, 0.18);
  --text: #f5f8ff;
  --muted: #aeb8cc;
  --cyan: #0fd2ff;
  --blue: #126cff;
  --violet: #9e55ff;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 52%, rgba(0, 107, 255, 0.12), transparent 31%),
    radial-gradient(circle at 84% 55%, rgba(149, 46, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #02040b 0%, #04091a 55%, #02050d 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 80%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  pointer-events: none;
}

.space-glow,
.mesh {
  position: fixed;
  pointer-events: none;
  z-index: -2;
  will-change: transform;
}

.space-glow {
  width: min(55vw, 820px);
  aspect-ratio: 1;
  filter: blur(26px);
  opacity: 0.7;
  border-radius: 50%;
}

.space-glow--blue {
  left: -18vw;
  top: 17vh;
  background:
    radial-gradient(circle at 48% 48%, rgba(0, 178, 255, 0.30) 0 2%, transparent 13%),
    radial-gradient(circle, rgba(0, 87, 255, 0.25), transparent 62%);
}

.space-glow--violet {
  right: -17vw;
  top: 24vh;
  background:
    radial-gradient(circle at 48% 48%, rgba(229, 69, 255, 0.30) 0 2%, transparent 12%),
    radial-gradient(circle, rgba(133, 48, 255, 0.26), transparent 62%);
}

.mesh {
  width: 38vw;
  max-width: 580px;
  aspect-ratio: 1;
  top: 28vh;
  opacity: 0.28;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(80, 192, 255, 0.48) 49%, transparent 51%),
    linear-gradient(-32deg, transparent 48%, rgba(145, 105, 255, 0.34) 49%, transparent 51%);
  background-size: 68px 68px, 84px 84px;
  mask-image: radial-gradient(circle, #000 0 33%, transparent 72%);
}

.mesh--left { left: -11vw; transform: rotate(10deg); }
.mesh--right { right: -10vw; transform: rotate(-8deg); }

.page-shell {
  width: min(calc(100% - 64px), var(--max-width));
  height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 1;
}

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand,
.hero-logo {
  color: #f4f5f8;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-decoration: none;
  line-height: 1;
  text-shadow: 0 0 22px rgba(26, 111, 255, 0.16);
}

.brand {
  font-size: clamp(1.65rem, 2.2vw, 2.55rem);
}

.brand span,
.hero-logo span,
.footer-mark {
  color: transparent;
  background: linear-gradient(180deg, #18d8ff 0%, #076cff 51%, #173fc0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 15px rgba(24, 146, 255, 0.24));
}

.hero {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
  padding: 0 0 6px;
}

.hero-copy {
  will-change: transform;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: clamp(0.68rem, 1vw, 0.95rem);
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  font-weight: 500;
}

.hero-logo {
  font-size: clamp(3rem, 6vw, 6.1rem);
  margin-bottom: clamp(14px, 2vh, 25px);
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 5.05rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(24, 73, 160, 0.14);
}

.success-line {
  margin: 9px 0 0;
  font-size: clamp(1rem, 2.15vw, 2.35rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  font-weight: 300;
}

.success-line strong {
  color: #1588ff;
  font-weight: 600;
}

.light-rule {
  position: relative;
  width: min(52vw, 570px);
  height: 1px;
  margin: clamp(18px, 2.5vh, 31px) auto clamp(18px, 2.2vh, 27px);
  background: linear-gradient(90deg, transparent, rgba(33, 107, 255, 0.55) 25%, rgba(35, 211, 255, 0.95) 50%, rgba(66, 97, 255, 0.55) 75%, transparent);
}

.light-rule::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 16px;
  left: calc(50% - 45px);
  top: -8px;
  background: radial-gradient(ellipse, rgba(63, 225, 255, 0.72), transparent 65%);
}

.intro {
  margin: 0;
  color: #c3cad8;
  line-height: 1.55;
  font-size: clamp(0.82rem, 1vw, 1.1rem);
}

.services {
  width: min(750px, 78vw);
  margin-top: clamp(28px, 4vh, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 175px;
  padding: 25px 22px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 15, 34, 0.76), rgba(3, 9, 22, 0.60));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 16px 45px rgba(0,0,0,0.16);
  backdrop-filter: blur(13px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.service-card:hover {
  border-color: rgba(42, 185, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 28px rgba(31, 118, 255, 0.09);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(15, 210, 255, 0.45));
}

.service-icon--violet {
  color: #925dff;
  filter: drop-shadow(0 0 8px rgba(146, 93, 255, 0.45));
}

.service-icon--blend {
  color: #6f80ff;
  filter: drop-shadow(0 0 8px rgba(93, 130, 255, 0.48));
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.site-footer {
  align-self: end;
  padding: 5px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 20px;
  align-items: center;
  color: rgba(188, 199, 221, 0.68);
  text-align: center;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 132, 255, 0.28));
}

.footer-line:nth-of-type(2) {
  background: linear-gradient(90deg, rgba(62, 132, 255, 0.28), transparent);
}

.footer-mark {
  font-weight: 900;
  font-size: 1.35rem;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (max-height: 780px) and (min-width: 721px) {
  .site-header { min-height: 72px; }
  .hero-logo { font-size: clamp(2.7rem, 5vw, 4.8rem); margin-bottom: 10px; }
  h1 { font-size: clamp(2rem, 3.8vw, 4.2rem); }
  .light-rule { margin-top: 14px; margin-bottom: 14px; }
  .service-card { min-height: 150px; padding-top: 17px; }
  .service-icon { width: 38px; height: 38px; margin-bottom: 8px; }
  .site-footer { padding-bottom: 12px; }
}

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

  .page-shell {
    width: min(calc(100% - 34px), 720px);
    height: auto;
    min-height: 100svh;
  }

  .site-header {
    min-height: 76px;
  }

  .hero {
    padding: 5vh 0 22px;
  }

  .services {
    width: min(620px, 100%);
  }

  .service-card {
    padding-inline: 14px;
  }
}

@media (max-width: 620px) {
  .eyebrow {
    font-size: 0.62rem;
  }

  .hero-logo {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3.15rem);
  }

  .success-line {
    font-size: clamp(0.92rem, 4vw, 1.25rem);
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .desktop-break {
    display: none;
  }

  .services {
    grid-template-columns: 1fr;
    width: min(390px, 100%);
  }

  .service-card {
    min-height: 0;
    padding: 18px 20px;
  }

  .service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 7px;
  }

  .site-footer {
    padding-top: 24px;
  }
}

@media (max-width: 410px) {
  .site-header {
    align-items: flex-start;
    padding-top: 20px;
  }

}

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

  .parallax,
  .service-card {
    transition: none !important;
    transform: none !important;
  }
}
