:root {
  --mx: 0;
  --my: 0;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f7fc;
  --text: #101828;
  --muted: #5b6478;
  --line: #e6ebf5;
  --line-strong: #d4dced;
  --brand: #1663e6;
  --brand-deep: #114bb0;
  --brand-soft: #ecf3ff;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
  --radius-sm: 0.78rem;
  --shadow-sm: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-card: 0 12px 36px rgba(16, 24, 40, 0.07);
  --shadow-md: 0 20px 48px rgba(22, 99, 230, 0.18);
  --container: min(1180px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 94% -14%, #deecff 4%, transparent 38%),
    radial-gradient(circle at 8% -12%, #eef5ff 6%, transparent 34%),
    linear-gradient(180deg, rgba(233, 244, 255, 0.68), transparent 34%),
    var(--bg);
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.container {
  width: var(--container);
  margin-inline: auto;
  position: relative;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    url("../images/bg-grid.svg") center top / 1400px auto no-repeat,
    url("../images/bg-mesh.svg") center top / cover no-repeat,
    radial-gradient(circle at calc(86% + (var(--mx) * 22px)) calc(8% + (var(--my) * 16px)), rgba(64, 138, 255, 0.12), transparent 36%),
    radial-gradient(circle at calc(12% + (var(--mx) * -18px)) calc(4% + (var(--my) * 12px)), rgba(132, 182, 255, 0.12), transparent 34%),
    linear-gradient(172deg, rgba(22, 99, 230, 0.04), transparent 35%);
  opacity: 0.78;
  mix-blend-mode: normal;
  z-index: -1;
  transition: background-position 220ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(212, 220, 237, 0.72);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7eb4ff 0%, #3f88ff 45%, #1663e6 100%);
  opacity: 0.85;
  pointer-events: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: clamp(38px, 4vw, 46px);
  height: clamp(38px, 4vw, 46px);
  object-fit: contain;
}

.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(130deg, var(--brand), #4c84ec);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 99, 230, 0.25);
}

.brand-text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.btn) {
  font-size: 0.93rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.2rem 0;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.site-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.75rem;
  font-weight: 600;
  font-family: inherit;
}

.hero,
.page-main {
  padding-top: 5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.hero-copy {
  max-width: 40rem;
}

.hero-visual-wrap {
  --hx: 0px;
  --hy: 0px;
  position: relative;
  border-radius: calc(var(--radius-lg) + 0.2rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.9));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 380px;
  transform: translate3d(var(--hx), var(--hy), 0);
  transition: transform 260ms ease;
  animation: heroDrift 9s ease-in-out infinite;
}

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(calc(var(--hx) * -0.5), calc(var(--hy) * -0.5), 0) scale(1.01);
  transition: transform 260ms ease;
}

.hero-float-chip {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: #305087;
  border-radius: 999px;
  padding: 0.36rem 0.74rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.chip-top {
  top: 1rem;
  right: 1rem;
  transform: translate3d(calc(var(--hx) * -0.6), calc(var(--hy) * -0.6), 0);
}

.chip-bottom {
  left: 1rem;
  bottom: 1rem;
  transform: translate3d(calc(var(--hx) * 0.55), calc(var(--hy) * 0.55), 0);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5.2vw, 4.25rem);
}

.hero-rotating {
  display: inline-block;
  min-width: 13.5ch;
  color: var(--brand-deep);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.3vw, 3.25rem);
}

.hero p,
.page-hero p {
  margin-top: 1.45rem;
  max-width: 62ch;
  font-size: clamp(1.03rem, 1.25vw, 1.14rem);
  line-height: 1.75;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: #3a588a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  padding: 0.42rem 0.82rem;
  margin-bottom: 1.2rem;
}

.eyebrow {
  padding: 0.35rem 0.68rem;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.88rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0.9rem;
  background: linear-gradient(140deg, var(--brand), #3a7ef0);
  color: #fff;
  padding: 0.82rem 1.3rem;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.012em;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.btn:not(.btn-ghost)::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -35%;
  width: 28%;
  transform: translateX(-220%) skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(22, 99, 230, 0.24);
}

.btn:not(.btn-ghost):hover::after {
  animation: btnSheen 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.magnetic-btn {
  will-change: transform;
}

.btn-sm {
  padding: 0.6rem 0.95rem;
  font-size: 0.86rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.metrics-grid {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.metric-card strong {
  font-size: 0.98rem;
  color: var(--text);
}

.metric-number {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.2em;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-space {
  margin-top: 5.4rem;
}

.section-head {
  max-width: 60ch;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.9vw, 2.75rem);
  line-height: 1.12;
}

.card-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.2rem;
}

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

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.product-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

.feature-card h3,
.product-card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.62rem;
}

.feature-card,
.product-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.1);
}

.feature-card p,
.product-card p {
  font-size: 0.97rem;
  line-height: 1.65;
}

.highlight-panel,
.cta-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #ffffff, #f6f9ff 62%, #eef4ff 100%);
  box-shadow: var(--shadow-card);
}

.highlight-panel {
  padding: clamp(1.55rem, 2.9vw, 2.3rem);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.highlight-panel h2,
.cta-panel h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: start;
}

.chip-stack span {
  padding: 0.52rem 0.78rem;
  border-radius: 0.78rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: #29406e;
  font-weight: 600;
  font-size: 0.84rem;
}

.cta-panel {
  text-align: center;
  padding: clamp(1.9rem, 3.4vw, 2.9rem);
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(126, 180, 255, 0.75), rgba(22, 99, 230, 0.6), rgba(126, 180, 255, 0.75));
  background-size: 220% 220%;
  animation: ctaBorderFlow 9s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-panel p {
  max-width: 64ch;
}

.inline-cta {
  margin-top: 1.35rem;
}

.product-note {
  margin-top: 0.8rem;
  font-size: 0.96rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.1rem;
}

.compact-cards .feature-card {
  padding: 1.1rem;
}

.compact-cards .feature-card h3 {
  font-size: 1rem;
}

.testimonial-panel {
  margin-top: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #ffffff, #f8fbff 58%, #eef5ff 100%);
  box-shadow: var(--shadow-card);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  display: grid;
  gap: 1rem;
}

.testimonial-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.testimonial-brand img {
  width: 60px;
  height: 60px;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.testimonial-brand h3 {
  font-size: 1.1rem;
}

.testimonial-brand p {
  margin-top: 0.18rem;
  font-size: 0.9rem;
}

.testimonial-panel blockquote {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #1a2b4f;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

.testimonial-slider {
  display: grid;
  gap: 0.72rem;
}

.testimonial-quote {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.testimonial-quote.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.testimonial-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  border: 1px solid #9bb9eb;
  background: #dce9ff;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.testimonial-dot:hover {
  transform: scale(1.08);
}

.testimonial-dot.is-active {
  background: var(--brand);
  border-color: var(--brand-deep);
}

.testimonial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.testimonial-points span {
  padding: 0.48rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: #27497f;
  font-weight: 600;
  font-size: 0.84rem;
}

.page-main {
  padding-bottom: 3rem;
}

.page-hero {
  max-width: 68ch;
}

.product-card ul {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
}

.contact-card {
  height: fit-content;
}

.contact-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.62rem;
}

.contact-meta p {
  color: var(--text);
  font-size: 0.94rem;
}

.contact-form {
  display: grid;
  gap: 0.72rem;
}

.contact-form label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8fb0ef;
  box-shadow: 0 0 0 3px rgba(22, 99, 230, 0.14);
}

.form-message {
  margin-top: 0.5rem;
  min-height: 1.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #25539c;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(212, 220, 237, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.footer-wrap {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 750ms cubic-bezier(0.2, 0.65, 0.2, 1), transform 750ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes btnSheen {
  from {
    transform: translateX(-220%) skewX(-20deg);
  }
  to {
    transform: translateX(430%) skewX(-20deg);
  }
}

@keyframes heroDrift {
  0% {
    transform: translate3d(calc(var(--hx) + 0px), calc(var(--hy) + 0px), 0);
  }
  50% {
    transform: translate3d(calc(var(--hx) + 0px), calc(var(--hy) - 6px), 0);
  }
  100% {
    transform: translate3d(calc(var(--hx) + 0px), calc(var(--hy) + 0px), 0);
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual-wrap {
    min-height: auto;
  }

  .section-space {
    margin-top: 4.2rem;
  }

  .four-up,
  .three-up,
  .metrics-grid,
  .contact-grid,
  .highlight-panel {
    grid-template-columns: 1fr;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 4vw;
    left: 4vw;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    transform-origin: top;
    transform: scaleY(0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

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

  .hero,
  .page-main {
    padding-top: 3.4rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1.03rem;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.45rem);
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .testimonial-brand img {
    width: 52px;
    height: 52px;
  }
}

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

  .cta-panel::before {
    animation: none;
  }

  .btn:not(.btn-ghost)::after {
    animation: none !important;
  }

  .hero-visual-wrap {
    animation: none;
    transform: none;
  }

  .hero-visual,
  .chip-top,
  .chip-bottom {
    transform: none;
  }
}
