:root {
  --bg: #03050d;
  --bg-parallax-y: 0px;
  --hero-parallax-y: 0px;
  --bg-soft: #071121;
  --panel: rgba(9, 16, 30, 0.62);
  --panel-strong: rgba(11, 18, 34, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7ff;
  --muted: rgba(226, 234, 255, 0.72);
  --muted-strong: rgba(226, 234, 255, 0.88);
  --blue: rgba(86, 141, 255, 0.95);
  --blue-soft: rgba(74, 129, 246, 0.22);
  --magenta: rgba(236, 97, 255, 0.92);
  --magenta-soft: rgba(236, 97, 255, 0.22);
  --glow: rgba(119, 151, 255, 0.26);
  --radius: 28px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 5, 13, 0.28) 0%, rgba(3, 5, 13, 0.92) 58%, #03050d 100%),
    radial-gradient(circle at 15% 18%, rgba(73, 117, 255, 0.12), transparent 34%),
    radial-gradient(circle at 80% 72%, rgba(229, 87, 248, 0.11), transparent 28%),
    #03050d;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.02), transparent 38%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.015), transparent 45%);
  pointer-events: none;
  z-index: -2;
}

.page-bg-layer {
  position: fixed;
  inset: -2vh 0 0;
  pointer-events: none;
  z-index: 0;
  background: url("assets/bg.webp") center top / cover no-repeat;
  opacity: 0.32;
  transform: translate3d(0, var(--bg-parallax-y), 0) scale(1.035);
  transform-origin: center top;
  will-change: transform;
}


.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(99, 136, 255, 0.08), transparent 20%),
    radial-gradient(circle at 78% 76%, rgba(224, 93, 245, 0.09), transparent 24%);
}

.hero-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: min(72vh, 820px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background: url("assets/background.webp") center top / cover no-repeat;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 52%, rgba(0, 0, 0, 0.28) 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 52%, rgba(0, 0, 0, 0.28) 82%, transparent 100%);
  transform: translate3d(0, var(--hero-parallax-y), 0);
  will-change: transform;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

main,
.site-header {
  position: relative;
  z-index: 2;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  padding-top: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 18px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 126px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.09));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 72px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 0 22px rgba(219, 106, 255, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 26px;
  align-items: stretch;
  min-height: calc(100vh - 108px);
  padding: 44px 0 40px;
}

.hero-copy,
.hero-side {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  justify-content: center;
  gap: 22px;
  padding: 36px 0 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(239, 244, 255, 0.7);
}

.eyebrow span {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 140, 255, 1), rgba(236, 97, 255, 0.95));
  box-shadow: 0 0 18px rgba(236, 97, 255, 0.45);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: 0.93;
  max-width: 10ch;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease, color 0.26s ease;
  will-change: transform, box-shadow;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(236, 97, 255, 0.18), transparent 36%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 97, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(236, 97, 255, 0.08),
    0 10px 34px rgba(8, 11, 24, 0.5),
    0 0 32px rgba(236, 97, 255, 0.26);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(88, 135, 255, 0.32), rgba(236, 97, 255, 0.2));
  box-shadow: 0 12px 32px rgba(20, 34, 78, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  width: min(100%, 620px);
  padding-top: 6px;
  align-content: start;
}

.hero-tech-layer {
  position: relative;
  flex: 1 1 auto;
  min-height: 248px;
  margin-top: 12px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  isolation: isolate;
  contain: layout paint;
}

#hero-tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
}

.hero-tech-overlay {
  display: none;
}

.service-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.hero-side {
  gap: 18px;
  justify-content: center;
}

.feature-panel,
.capability,
.process-card,
.why-card,
.cta-card,
.mini-panel,
.service-pill,
.nav,
.btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.75), rgba(6, 10, 19, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.12), transparent 28%), radial-gradient(circle at 100% 100%, rgba(115, 146, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.11), transparent 28%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.tilt:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow), 0 0 36px rgba(99, 123, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

.radiant::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(236, 97, 255, 0.12), transparent 24%),
    radial-gradient(circle at 84% 86%, rgba(103, 140, 255, 0.1), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 56%);
  opacity: 0.76;
  animation: radiantGlow 6.8s ease-in-out infinite;
}

@keyframes radiantGlow {
  0%, 100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.9;
  }
}

.delivery-panel {
  min-height: 330px;
  border-radius: 34px;
  padding: 26px;
}

.panel-topline,
.mini-label {
  color: rgba(233, 239, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.delivery-panel h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.02;
  margin-top: 12px;
  max-width: 10ch;
}

.delivery-panel p,
.mini-panel p,
.capability p,
.process-card p,
.why-card p,
.cta-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-panel {
  min-height: 188px;
  border-radius: 28px;
  padding: 22px;
}

.mini-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.section {
  padding: 54px 0;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.02;
}

.compact-gap {
  margin-bottom: 22px;
}

.capability-grid,
.process-grid,
.why-grid {
  display: grid;
  gap: 18px;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.capability,
.process-card,
.why-card {
  min-height: 230px;
  border-radius: 28px;
  padding: 22px;
}

.why-card {
  min-height: 0;
  height: auto;
  align-self: start;
  padding: 18px 20px;
}

.why-card p {
  margin-top: 8px;
  line-height: 1.56;
  font-size: 0.98rem;
}

.capability h3,
.process-card h3,
.why-card h3 {
  font-size: 1.32rem;
}

.why-card h3 {
  line-height: 1.14;
}

.process-card {
  min-height: 278px;
}

.process-icon-wrap {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.process-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.process-card h3 {
  margin-top: 18px;
}

.why-section {
  padding-top: 24px;
}

.cta-section {
  padding-top: 18px;
  padding-bottom: 52px;
}

.cta-card {
  border-radius: 34px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .capability-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 800px) {
  .site-header {
    padding-top: 14px;
  }

  .nav {
    border-radius: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    padding-left: 0;
    gap: 8px;
    margin-left: 0;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .hero-mini-grid,
  .capability-grid,
  .process-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 24px, 1180px);
  }

  .delivery-panel,
  .mini-panel,
  .capability,
  .process-card,
  .cta-card {
    padding: 20px;
    border-radius: 24px;
  }

  .why-card {
    min-height: auto;
    padding: 18px 20px;
    border-radius: 24px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .service-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .hero-tech-layer {
    min-height: 220px;
    margin-top: 12px;
  }

  .service-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (pointer: coarse) {
  body {
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }
}

body.mobile-lite #particle-canvas {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .feature-panel,
  .capability,
  .process-card,
  .why-card,
  .cta-card,
  .mini-panel,
  .service-pill,
  .nav,
  .btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .radiant::before {
    animation: none;
    opacity: 0.7;
  }

  .hero-atmosphere {
    mix-blend-mode: normal;
    opacity: 0.38;
  }

  .hero-tech-layer {
    display: none;
    min-height: 0;
    margin-top: 0;
  }

  .hero-copy {
    gap: 18px;
  }
}

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

  .radiant {
    animation: none;
  }

  .tilt,
  .btn,
  .nav-link,
  .glass::after {
    transition-duration: 0.01ms !important;
  }
}

body.mobile-lite .page-bg-layer {
  opacity: 0.9;
  transform: translate3d(0, var(--bg-parallax-y), 0) scale(1.02);
}
