:root {
  --bg: #0a0a0f;
  --bg-elev: #101018;
  --bg-card: #12121c;
  --indigo: #5b4eff;
  --indigo-soft: rgba(91, 78, 255, 0.14);
  --cyan: #00e5cc;
  --cyan-soft: rgba(0, 229, 204, 0.12);
  --white: #f4f4f8;
  --gray: #8a8a9a;
  --gray-dim: #5a5a68;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  overflow-x: hidden;
  color: var(--white);
  background: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.mono-label,
.logo-text,
.btn {
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
}

::selection {
  color: #fff;
  background: var(--indigo);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.mono-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 10, 15, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 2.5px;
}

.logo-mark span {
  width: 4px;
  height: 4px;
  background: var(--indigo);
  border-radius: 1px;
}

.logo-mark span:nth-child(1),
.logo-mark span:nth-child(5),
.logo-mark span:nth-child(9) {
  background: var(--cyan);
}

.logo-mark span:nth-child(2),
.logo-mark span:nth-child(4),
.logo-mark span:nth-child(6),
.logo-mark span:nth-child(8) {
  opacity: 0.55;
}

.logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: var(--indigo);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px -8px rgba(91, 78, 255, 0.65);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(0, 229, 204, 0.5);
  box-shadow: 0 0 26px -10px rgba(0, 229, 204, 0.5);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 10px 18px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(91, 78, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 70%, rgba(0, 229, 204, 0.08), transparent 70%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 32px;
}

.hero .eyebrow {
  margin-bottom: 28px;
  color: var(--cyan);
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 .dim {
  color: var(--gray);
}

.hero-sub {
  max-width: 500px;
  margin: 0 auto 38px;
  color: var(--gray);
  font-size: clamp(16px, 1.5vw, 18px);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 15px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  padding-top: 26px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.trust-item {
  position: relative;
  padding: 0 22px;
  color: var(--gray);
  font-size: 13px;
}

.trust-item b {
  color: var(--white);
  font-weight: 600;
}

.trust-item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 14px;
  content: "";
  background: var(--line-strong);
  transform: translateY(-50%);
}

section {
  position: relative;
}

.section-pad {
  padding: 110px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
  color: var(--cyan);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.problem {
  padding: 90px 0;
}

.problem-card {
  position: relative;
  padding: 72px 60px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card), #0d0d15);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-card::before {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 60%;
  height: 80%;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse, rgba(91, 78, 255, 0.12), transparent 70%);
  transform: translateX(-50%);
}

.problem-statement {
  position: relative;
  max-width: 880px;
  margin: 0 auto 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  text-wrap: balance;
}

.problem-statement .hl {
  color: var(--cyan);
}

.problem-statement .hl-i {
  color: var(--indigo);
}

.problem-body {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 16px;
}

.verticals-scroll {
  display: flex;
  gap: 18px;
  padding: 6px 32px 24px;
  margin: 0 -32px;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.verticals-scroll::-webkit-scrollbar {
  height: 6px;
}

.verticals-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.vert-card {
  flex: 0 0 268px;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.vert-card:hover {
  background: #14141f;
  border-color: rgba(91, 78, 255, 0.5);
  box-shadow: 0 18px 50px -22px rgba(91, 78, 255, 0.7);
  transform: translateY(-5px);
}

.vert-icon,
.service-icon {
  display: block;
  color: var(--cyan);
}

.vert-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}

.vert-icon svg,
.service-icon svg {
  width: 100%;
  height: 100%;
}

.vert-card h3,
.service-card h3,
.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.vert-card p {
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.5;
}

.scroll-hint {
  margin-top: 14px;
  color: var(--gray-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 30px 28px 32px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card .accent-line {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.9);
  transform: translateY(-4px);
}

.service-card:hover .accent-line {
  transform: scaleX(1);
}

.service-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
}

.service-card p,
.step p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

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

.step {
  position: relative;
  padding: 0 22px;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 22px;
  right: -6px;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}

.step-line {
  position: absolute;
  top: 27px;
  right: 0;
  left: 60%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}

.step:last-child .step-line {
  display: none;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  position: relative;
  padding: 44px 36px;
  overflow: hidden;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(91, 78, 255, 0.5), transparent 45%, rgba(0, 229, 204, 0.4));
  border-radius: inherit;
  opacity: 0.6;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

.stat-card:hover {
  box-shadow: 0 24px 60px -30px rgba(91, 78, 255, 0.55);
  transform: translateY(-5px);
}

.stat-num {
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, #fff, var(--cyan));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.stat-context {
  color: var(--gray);
  font-size: 13.5px;
}

.quote-block {
  max-width: 760px;
  padding: 8px 0 8px 28px;
  margin: 0 auto;
  text-align: center;
  border-left: 2px solid var(--indigo);
}

.quote-block blockquote {
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
}

.quote-block figcaption {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.cta-section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 600px;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse, rgba(91, 78, 255, 0.22), transparent 65%);
  transform: translate(-50%, -50%);
}

.cta-section h2 {
  position: relative;
  margin-bottom: 20px;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.cta-section p {
  position: relative;
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--gray);
  font-size: 17px;
}

.cta-note {
  margin-top: 22px;
  color: var(--gray-dim);
  font-size: 13px;
}

.btn-xl {
  position: relative;
  padding: 18px 34px;
  font-size: 16px;
}

.audit-form {
  position: relative;
  max-width: 560px;
  padding: 36px 34px;
  margin: 0 auto;
  text-align: left;
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--gray);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field label span {
  color: var(--gray-dim);
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--white);
  font: 14.5px "Inter", sans-serif;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field select {
  padding-right: 38px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238A8A9A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--indigo);
  outline: none;
  box-shadow: 0 0 0 3px var(--indigo-soft);
}

.audit-form .btn {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.form-success {
  padding: 24px 0;
  text-align: center;
}

.form-success .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
}

.form-success .check svg {
  width: 26px;
  height: 26px;
}

.form-success h3 {
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.form-success p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 15px;
}

footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a,
.footer-right a {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-right a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 24px;
  color: var(--gray-dim);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .step:not(:last-child)::after,
  .step-line {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .wrap,
  .nav-inner {
    padding: 0 20px;
  }

  .section-pad {
    padding: 80px 0;
  }

  .services-grid,
  .stats-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .problem-card {
    padding: 48px 28px;
  }

  .trust-item {
    padding: 6px 16px;
  }

  .trust-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 0 20px;
  }

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

  .audit-form {
    padding: 28px 22px;
  }
}

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