:root {
  --color-primary: #292c55;
  --color-primary-deep: #111638;
  --color-panel: rgba(31, 38, 82, 0.7);
  --color-panel-strong: rgba(38, 45, 94, 0.86);
  --color-accent: #26c6f3;
  --color-accent-soft: rgba(38, 198, 243, 0.18);
  --color-purple: #8a32be;
  --color-blue: #246fd2;
  --color-text: #e6eaf2;
  --color-muted: #9aa4b2;
  --color-border: rgba(230, 234, 242, 0.13);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 0 42px rgba(0, 212, 255, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1160px;
  --header-height: 128px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 10%, rgba(38, 198, 243, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 20%, rgba(138, 50, 190, 0.14), transparent 22rem),
    linear-gradient(180deg, var(--color-primary-deep), var(--color-primary));
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.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;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-accent), var(--color-purple));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.8);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--color-text);
  background:
    radial-gradient(circle at 50% 45%, rgba(38, 198, 243, 0.2), transparent 18rem),
    radial-gradient(circle at 58% 54%, rgba(138, 50, 190, 0.18), transparent 17rem),
    linear-gradient(145deg, #111638, #292c55 58%, #211b51);
}

.preloader-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 198, 243, 0.34);
  border-radius: 18px;
  background: rgba(41, 44, 85, 0.56);
  box-shadow: 0 0 56px rgba(38, 198, 243, 0.3), 0 0 64px rgba(138, 50, 190, 0.16);
  overflow: hidden;
}

.preloader-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(6, 8, 28, 0.72);
  border-color: var(--color-border);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(100% - 32px, var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: clamp(280px, 34vw, 460px);
  height: clamp(84px, 10vw, 120px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(38, 198, 243, 0.24));
  transition: width 220ms ease, height 220ms ease, filter 220ms ease;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header.scrolled .navbar {
  min-height: 84px;
}

.site-header.scrolled .brand-mark {
  width: clamp(188px, 22vw, 280px);
  height: clamp(56px, 6vw, 72px);
  filter: drop-shadow(0 0 14px rgba(38, 198, 243, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(3) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto;
  height: 34rem;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 68%);
  pointer-events: none;
  transform: translate3d(0, var(--section-bg-y, 0px), 0);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-height) + 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--hero-x, 18%) var(--hero-y, 22%), rgba(38, 198, 243, 0.28), transparent 26rem),
    radial-gradient(circle at calc(100% - var(--hero-x, 18%)) 24%, rgba(138, 50, 190, 0.24), transparent 24rem),
    linear-gradient(120deg, rgba(41, 44, 85, 0.95), rgba(17, 22, 56, 0.88), rgba(33, 27, 81, 0.93));
  background-size: 160% 160%, 150% 150%, 260% 260%;
  animation: gradientShift 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 22, 56, 0.9) 0%, rgba(17, 22, 56, 0.68) 46%, rgba(17, 22, 56, 0.82) 100%),
    radial-gradient(circle at 22% 38%, rgba(38, 198, 243, 0.18), transparent 30rem),
    radial-gradient(circle at 76% 28%, rgba(138, 50, 190, 0.18), transparent 28rem);
}

.hero .container,
.section > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: block;
  align-items: center;
}

.hero-copy {
  max-width: 1040px;
  padding-block: clamp(42px, 8vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
  font-weight: 800;
}

.hero-lead,
.section-intro {
  max-width: 780px;
  color: var(--color-muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.78;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: #061629;
  background: linear-gradient(135deg, #26c6f3 0%, #2487d7 52%, #8a32be 100%);
  box-shadow: 0 12px 34px rgba(0, 212, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 44px rgba(0, 212, 255, 0.44);
}

.btn-secondary {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: var(--shadow-glow);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
  filter: blur(8px);
  will-change: transform;
  animation: floatShape 10s ease-in-out infinite;
}

.orb-one {
  width: 320px;
  height: 320px;
  left: 4%;
  top: 18%;
  background: radial-gradient(circle, rgba(38, 198, 243, 0.32), transparent 68%);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -7%;
  top: 10%;
  background: radial-gradient(circle, rgba(138, 50, 190, 0.3), transparent 70%);
  animation-delay: -3s;
}

.orb-three {
  width: 260px;
  height: 260px;
  right: 20%;
  bottom: 9%;
  background: radial-gradient(circle, rgba(36, 111, 210, 0.28), transparent 68%);
  animation-delay: -6s;
}

.orb-four {
  width: 220px;
  height: 220px;
  left: 42%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(38, 198, 243, 0.18), transparent 70%);
  animation-delay: -8s;
}

.hero-wave {
  position: absolute;
  inset: 10% -16%;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(18px);
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(38, 198, 243, 0.22) 38%, rgba(138, 50, 190, 0.2) 55%, transparent 76%),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(230, 234, 242, 0.05) 35px 36px);
  transform: rotate(-9deg);
  animation: waveDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-wave-two {
  inset: 24% -20% 0;
  opacity: 0.28;
  transform: rotate(8deg);
  animation-duration: 24s;
  animation-delay: -7s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-position: var(--grid-x, 0px) var(--grid-y, 0px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 46% 45%, rgba(0, 0, 0, 0.72), transparent 72%);
  animation: gridMove 16s linear infinite;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.content-stack {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.content-stack p {
  margin-bottom: 20px;
}

.centered {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.contact-form,
.product-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.service-card {
  min-height: 272px;
  padding: 26px;
  will-change: transform;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(0, 212, 255, 0.42);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.service-card p {
  color: var(--color-muted);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 12px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(0, 212, 255, 0.1);
}

.product-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  will-change: transform;
  clip-path: inset(100% 0 0 0 round 16px);
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 74%, rgba(142, 92, 255, 0.18), transparent 30%);
  pointer-events: none;
}

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

.product-copy {
  color: var(--color-muted);
}

.product-copy .btn {
  margin-top: 14px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a {
  color: var(--color-text);
  font-weight: 700;
}

.contact-form {
  padding: clamp(22px, 4vw, 34px);
  clip-path: inset(100% 0 0 0 round 16px);
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(230, 234, 242, 0.14);
  border-radius: 12px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input {
  height: 48px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 212, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: #ff6b91;
}

.error-message {
  min-height: 20px;
  display: block;
  margin-top: 6px;
  color: #ff9bb6;
  font-size: 0.82rem;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--color-accent);
  font-weight: 700;
}

.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  background: rgba(6, 8, 28, 0.54);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
}

.footer-grid p {
  margin-bottom: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.footer-brand img {
  width: clamp(132px, 15vw, 176px);
  height: auto;
  display: block;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 14px;
  color: var(--color-text);
  background: rgba(6, 8, 28, 0.76);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity;
}

.js-hero-kicker,
.js-hero-lead,
.hero-actions,
.js-stagger > *,
.js-card {
  will-change: transform, opacity;
}

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

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

@keyframes floatShape {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@keyframes waveDrift {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-9deg) scale(1);
  }
  100% {
    transform: translate3d(5%, 4%, 0) rotate(7deg) scale(1.08);
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 54px 54px, 54px 54px;
  }
}

@keyframes rotateAura {
  to {
    transform: rotate(1turn);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (max-width: 980px) {
  .two-column,
  .contact-grid,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 96px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(6, 8, 28, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 46px;
    border-radius: 10px;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 36px);
  }

  .site-header.scrolled .navbar {
    min-height: 72px;
  }

  .site-header.scrolled .brand-mark {
    width: min(190px, 42vw);
    height: 56px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  .container,
  .navbar {
    width: min(100% - 24px, var(--container));
  }

  .brand-mark {
    width: min(250px, 58vw);
    height: 72px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .hero-copy {
    padding-block: 24px 54px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
