:root {
  --bg: #06131f;
  --bg-soft: rgba(11, 27, 41, 0.8);
  --panel: rgba(10, 25, 38, 0.56);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --accent: #0a4492;
  --accent-2: #2f6fc4;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  --container: 1200px;
  --header-height: 36px;
  --pointer-x: 50%;
  --pointer-y: 30%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(47, 111, 196, 0.5), transparent 10%),
    radial-gradient(circle at calc(var(--pointer-x) + 1.5%) calc(var(--pointer-y) + 2%), rgba(10, 68, 146, 0.34), transparent 18%),
    linear-gradient(180deg, #07131f 0%, #081624 38%, #07111b 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite;
}

.orb-1 {
  width: 32rem;
  height: 32rem;
  background: rgba(10, 68, 146, 0.24);
  top: -6rem;
  left: -8rem;
}

.orb-2 {
  width: 26rem;
  height: 26rem;
  background: rgba(47, 111, 196, 0.16);
  top: 18rem;
  right: -4rem;
  animation-delay: -6s;
}

.orb-3 {
  width: 24rem;
  height: 24rem;
  background: rgba(66, 115, 186, 0.14);
  bottom: 8rem;
  left: 20%;
  animation-delay: -12s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 7rem 7rem;
  mask-image: radial-gradient(circle at center, black 34%, transparent 85%);
  opacity: 0.24;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 19, 31, 0.72), rgba(6, 19, 31, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 0;
  padding-bottom: 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-img {
  width: 312px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(255, 255, 255, 0.12));
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

body.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero,
.subpage-hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero-grid,
.showcase,
.contact-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: 1fr;
  gap: 28px;
  justify-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.65rem);
  max-width: none;
}

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

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

h1 {
  font-family: "Satoshi", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
  max-width: 12ch;
}

h2 {
  font-family: "Satoshi", "Manrope", sans-serif;
  font-size: clamp(1.95rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h3 {
  font-family: "Satoshi", "Manrope", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text,
.intro-panel p,
.cta-panel p {
  font-size: 1.4rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2f6fc4 0%, #0a4492 100%);
  color: #f5f7fb;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(10, 68, 146, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(10, 68, 146, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  width: min(920px, 100%);
}

.hero-stats article,
.glass-panel,
.intro-panel,
.cta-panel,
.feature-card,
.floating-card,
.device-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 1.28rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.device-shell {
  position: relative;
  width: min(1480px, calc(100vw - 48px));
  min-height: 760px;
  padding: 36px 42px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(10, 68, 146, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(7, 20, 31, 0.94), rgba(7, 20, 31, 0.7));
  border: 1px solid rgba(10, 68, 146, 0.26);
}

.device-glow {
  position: absolute;
  inset: auto auto 8% 50%;
  width: 22rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(10, 68, 146, 0.32), transparent 68%);
  transform: translateX(-50%);
  filter: blur(18px);
}

.device-image {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: contain;
  border-radius: 0;
  border: none;
}

.device-image-product {
  background: transparent;
  padding: 0;
  transform: none;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.34));
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  max-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
}

.card-top {
  top: 28px;
  right: 18px;
}

.card-bottom {
  left: 18px;
  bottom: 28px;
}

.mini-label,
.panel-kicker {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 800;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  animation: marquee 24s linear infinite;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

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

.intro-panel,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 32px;
}

.intro-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  justify-items: stretch;
  text-align: left;
  min-height: 260px;
}

.intro-panel-clean {
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
}

.intro-panel-main {
  max-width: 1120px;
  width: 100%;
  text-align: left;
  align-self: center;
  justify-self: end;
}

.intro-panel .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
}

.intro-panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  max-width: 36ch;
  margin: 0;
  text-align: left;
}

.intro-panel-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
}

.intro-mobile-image {
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.38));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.references-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.references-list-panel {
  padding: 26px 28px;
}

.references-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  position: relative;
  isolation: isolate;
}

.references-list article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  position: relative;
  z-index: 1;
}

.reference-item {
  position: relative;
}

.references-list article:hover {
  border-color: rgba(10, 68, 146, 0.42);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  z-index: 20;
}

.references-list strong {
  font-size: 0.95rem;
  color: var(--text);
}

.references-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.reference-hover-preview {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  width: 640px;
  height: 440px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 20, 31, 0.98), rgba(7, 20, 31, 0.96)),
    radial-gradient(circle at top, rgba(10, 68, 146, 0.18), transparent 55%);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transform: translate(8px, -50%) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.references-list article:nth-child(even) .reference-hover-preview {
  left: auto;
  right: calc(100% + 18px);
  transform: translate(-8px, -50%) scale(0.98);
}

.reference-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-item:hover .reference-hover-preview {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
  border-color: rgba(10, 68, 146, 0.36);
}

.references-gallery-wrap {
  overflow: hidden;
  padding: 10px 0 0;
}

.references-gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.reference-shot {
  margin: 0;
  width: 520px;
  height: 360px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.03);
}

.reference-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-showcase {
  margin-top: -14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.services-hero-image {
  width: 100%;
  height: clamp(300px, 38vw, 480px);
  object-fit: cover;
}

.services-heading-block {
  padding: 0 0 30px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  min-height: 100%;
}

.feature-link-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
  border-color: rgba(10, 68, 146, 0.32);
}

.feature-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card-large {
  display: flex;
  align-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(10, 68, 146, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--text);
  font-weight: 700;
}

.stack-cards {
  display: grid;
  gap: 18px;
  align-content: start;
}

.glass-panel {
  padding: 32px;
  border-radius: 30px;
}

.cta-panel {
  text-align: center;
  grid-template-columns: 1fr;
  justify-items: center;
}

.subpage-hero .container {
  max-width: 1120px;
  text-align: center;
}

.subpage-hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.subpage-body .section {
  padding-top: 8px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-info-panel {
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 247, 251, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(10, 68, 146, 0.46);
  box-shadow: 0 0 0 4px rgba(10, 68, 146, 0.12);
}

.site-footer {
  padding: 24px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

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

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

.reveal-delay {
  transition-delay: 140ms;
}

.reveal-delay-2 {
  transition-delay: 260ms;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .showcase,
  .feature-grid,
  .contact-grid,
  .two-col,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    justify-items: center;
    text-align: center;
  }

  .intro-panel-main {
    max-width: 980px;
    text-align: center;
  }

  .intro-panel h2 {
    margin: 0 auto;
    text-align: center;
  }

  .feature-card-large {
    min-height: 380px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .references-list {
    grid-template-columns: 1fr;
  }

  .reference-hover-preview {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border-radius: 24px;
    background: rgba(8, 21, 32, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .device-shell {
    min-height: auto;
    width: min(540px, 100%);
    padding: 28px 22px;
  }

  .device-image {
    min-height: 460px;
  }

  .device-image-product {
    padding: 0;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

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

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

  .header-inner {
    gap: 12px;
  }

  .feature-card img {
    height: 280px;
  }

  .reference-shot {
    width: 360px;
    height: 250px;
  }

  .logo-img {
    width: 250px;
  }

  .hero,
  .subpage-hero,
  .section {
    padding-block: 64px;
  }

  .hero-actions,
  .footer-inner,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .marquee-track {
    gap: 28px;
    font-size: 0.7rem;
  }
}
