:root {
  color-scheme: dark;
  --bg: #060b16;
  --bg-soft: #101d31;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f4f7fb;
  --muted: #9bb0c8;
  --accent: #55d2ff;
  --accent-strong: #2b93ff;
  --accent-alt: #7c5cff;
  --border: rgba(255, 255, 255, 0.12);
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::before,
body::after,
body::selection {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(135deg, #0b1427 0%, var(--bg) 45%, #050814 100%);
  filter: saturate(1.15) contrast(1.08);
}

body::after {
  background: transparent;
}

.background-geometry {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out;
}

.geometry-shape {
  position: absolute;
  border-radius: 42% 58% 62% 38% / 41% 40% 60% 59%;
  filter: blur(2px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: morphShape 18s ease-in-out infinite alternate;
  transform: translate3d(var(--shape-x, 0px), var(--shape-y, 0px), 0) scale(var(--shape-scale, 1));
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, filter 0.18s ease-out, box-shadow 0.18s ease-out;
}

.shape-a {
  width: 26rem;
  height: 26rem;
  background: linear-gradient(135deg, rgba(85, 210, 255, 0.36), rgba(43, 147, 255, 0.08));
  left: -8rem;
  top: 8rem;
  animation-duration: 16s;
  animation-delay: -2s;
}

.shape-b {
  width: 22rem;
  height: 22rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.34), rgba(85, 210, 255, 0.06));
  right: -7rem;
  top: 20rem;
  animation-duration: 20s;
  animation-delay: -6s;
}

.shape-c {
  width: 18rem;
  height: 18rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(0,255,200,0.08));
  left: 24%;
  bottom: 8rem;
  animation-duration: 14s;
  animation-delay: -10s;
}

.shape-d {
  width: 15rem;
  height: 15rem;
  background: linear-gradient(135deg, rgba(85, 210, 255, 0.2), rgba(124, 92, 255, 0.16));
  right: 20%;
  bottom: 18rem;
  animation-duration: 22s;
  animation-delay: -12s;
}

.shape-e {
  width: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(43, 147, 255, 0.12));
  left: 48%;
  top: 5rem;
  animation-duration: 17s;
  animation-delay: -4s;
}

.shape-f {
  width: 20rem;
  height: 20rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255,255,255,0.08));
  left: 60%;
  top: 2rem;
  animation-duration: 19s;
  animation-delay: -8s;
}

@keyframes morphShape {
  0% {
    border-radius: 42% 58% 62% 38% / 41% 40% 60% 59%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    border-radius: 58% 42% 48% 52% / 54% 45% 55% 46%;
    transform: translate3d(3vw, 2vh, 0) scale(1.05);
  }
  50% {
    border-radius: 37% 63% 54% 46% / 58% 51% 49% 42%;
    transform: translate3d(-2vw, 3vh, 0) scale(0.95);
  }
  75% {
    border-radius: 63% 37% 44% 56% / 40% 60% 40% 60%;
    transform: translate3d(2vw, -2vh, 0) scale(1.08);
  }
  100% {
    border-radius: 48% 52% 60% 40% / 53% 44% 56% 47%;
    transform: translate3d(-1vw, -3vh, 0) scale(1.02);
  }
}

body::-webkit-scrollbar {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt), #ffffff);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: var(--scroll-progress-opacity, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  box-shadow: 0 0 18px rgba(85, 210, 255, 0.4);
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(var(--orb-translate-x, 0px), var(--orb-translate-y, 0px), 0) scale(var(--orb-scale, 1));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  mix-blend-mode: screen;
}

.orb-one {
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(85, 210, 255, 0.9) 28%, rgba(43, 147, 255, 0.1) 70%, transparent 100%);
  top: 4rem;
  left: -6rem;
  filter: blur(110px);
}

.orb-two {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(124, 92, 255, 0.95) 25%, rgba(85, 210, 255, 0.08) 70%, transparent 100%);
  right: -8rem;
  top: 24rem;
  filter: blur(120px);
}

.hero {
  min-height: 100vh;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  position: relative;
  z-index: 2;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(85, 210, 255, 0.16);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-top: 4rem;
  position: relative;
  z-index: 1;
  perspective: 1400px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  max-width: 700px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.lead,
.section-heading p,
.contact-box p,
.quote-box p,
.card p,
.feature-box p,
.feature-card p,
.hero-card li,
.split p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 16px 30px rgba(43, 147, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111f;
  box-shadow: 0 12px 24px rgba(43, 147, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-pill {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.trust-pill:not(:last-child) {
  margin-right: 0.75rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-card,
.card,
.quote-box,
.contact-box,
.feature-box,
.feature-card,
.story-step {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.35rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.hero-card {
  padding: 1.6rem;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
}

.hero-card ul {
  padding-left: 1rem;
  margin: 0;
}

.section {
  padding: 6.2rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent 25%, transparent 75%, rgba(255,255,255,0.02));
  pointer-events: none;
  opacity: 0.8;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
}

.section-heading {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover,
.feature-card:hover,
.story-step:hover,
.quote-box:hover,
.contact-box:hover,
.feature-box:hover,
.hero-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(85, 210, 255, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.card-icon {
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 0.7rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-box {
  padding: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.1rem;
}

.story-section {
  padding-top: 2rem;
}

.story-intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.story-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.story-step {
  padding: 1.35rem;
  min-height: 220px;
  position: relative;
  z-index: 1;
}

.story-step:nth-child(2) {
  transform: translateY(18px);
}

.story-step:nth-child(3) {
  transform: translateY(32px);
}

.story-step span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pulseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pulseIn {
  0% {
    transform: translateY(28px) scale(0.97);
    opacity: 0;
  }
  60% {
    transform: translateY(-6px) scale(1.01);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.quote-box {
  padding: 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-box {
  position: relative;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.contact-box.disabled {
  pointer-events: none;
}

.contact-box.disabled .contact-form,
.contact-box.disabled .contact-details {
  opacity: 0.18;
  filter: blur(0.35px);
}

.form-popup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform: translateY(12px);
  z-index: 20;
}

.form-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.form-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 1.35rem;
}

.form-popup-panel {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding: 1.75rem 1.5rem;
  background: rgba(10, 18, 34, 0.98);
  border: 1px solid rgba(85, 210, 255, 0.22);
  border-radius: 1.35rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.form-popup-panel h4 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.form-popup-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-field span {
  color: var(--text);
}

.form-field small {
  color: var(--muted);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(85, 210, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(85, 210, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.35rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
}

.contact-details p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero-content,
  .split,
  .card-grid,
  .feature-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-shell,
  .contact-box,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }
}
