:root {
  --brand-red: #be1a1b;
  --brand-yellow: #ffda00;
  --brand-teal: #007791;
  --neutral-900: #111111;
  --neutral-800: #1b1b1b;
  --neutral-700: #2b2b2b;
  --neutral-600: #575756;
  --neutral-300: #c9ccd1;
  --neutral-200: #e8eaed;
  --neutral-100: #f7f8fa;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(17, 17, 17, 0.12);
  --shadow-card: 0 20px 45px rgba(0, 119, 145, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--neutral-900);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 218, 0, 0.18), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(0, 119, 145, 0.12), transparent 20%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(180deg, #fbfbfc 0%, #f6f8fa 38%, #f2f5f7 68%, #eef2f5 100%);
}

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

img {
  max-width: 100%;
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 251, 252, 0.78);
  border-bottom: 1px solid rgba(87, 87, 86, 0.08);
  transform: translateZ(0);
  will-change: transform;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 82px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.85rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  color: var(--neutral-600);
  font-weight: 600;
}

.site-header .brand {
  position: absolute;
  left: 0;
}

.header-cta {
  position: absolute;
  right: 0;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--brand-red);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.8rem;
  padding-inline: 1rem;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-red), #951416);
  box-shadow: 0 16px 35px rgba(190, 26, 27, 0.24);
}

.button-secondary {
  border-color: rgba(0, 119, 145, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-teal);
}

.button-ghost {
  border-color: rgba(87, 87, 86, 0.14);
  background: rgba(255, 255, 255, 0.66);
  color: var(--neutral-900);
}

.button-secondary.light {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-section,
.value-section,
.services-section,
.process-section,
.use-cases-section,
.technology-section,
.cta-section {
  padding: 5.5rem 0;
  position: relative;
}

.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
  min-height: 760px;
  background: linear-gradient(180deg, #f9fafb 0%, #eef2f5 100%);
  margin-bottom: -2.25rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(249, 250, 251, 0.7) 0%, rgba(249, 250, 251, 0.45) 38%, rgba(249, 250, 251, 0.22) 100%),
    radial-gradient(circle at 18% 20%, rgba(255, 218, 0, 0.16), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(0, 119, 145, 0.12), transparent 26%);
  z-index: 2;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(246, 248, 250, 0), rgba(238, 242, 245, 0.92) 72%, #eef2f5 100%);
  z-index: 2;
}

.hero-background-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02) translateZ(0);
  filter: blur(3px);
  opacity: 0.92;
  will-change: transform;
}

.hero-grid,
.section-grid,
.tech-layout {
  display: grid;
  gap: 2rem;
}

.hero-grid,
.section-grid,
.tech-layout {
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-copy {
  max-width: 760px;
}

.value-section {
  margin-top: 0;
  padding-top: 7.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 1.4rem;
  font-size: 1.12rem;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(87, 87, 86, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.hero-metrics li span {
  flex: 1;
}

.hero-metrics li img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.info-card {
  display: flex;
  flex-direction: column;
}

.info-card p {
  flex: 1;
}

.info-card img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.hero-metrics strong {
  display: block;
  font-size: 1.45rem;
  color: var(--neutral-900);
}

.hero-metrics span {
  display: block;
  margin-top: 0.35rem;
  color: var(--neutral-600);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: center;
}

.info-card,
.service-card,
.step-card,
.use-case-card,
.testimonial-card {
  padding: 1.45rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(87, 87, 86, 0.08);
}

.value-copy {
  display: grid;
  gap: 1.5rem;
}

.benefit-grid,
.services-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

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

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

.section-heading {
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.services-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.34));
}

.service-card,
.step-card,
.info-card,
.use-case-card {
  box-shadow: var(--shadow-card);
}

.step-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(190, 26, 27, 0.1);
  color: var(--brand-red);
  font-weight: 800;
}

.use-case-list {
  display: grid;
  gap: 1rem;
}

.use-case-card {
  position: relative;
  padding-left: 1.7rem;
}

.use-case-card::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 0.9rem;
  width: 0.35rem;
  height: 2.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-red), var(--brand-yellow));
}

.technology-section {
  background:
    radial-gradient(circle at right center, rgba(0, 119, 145, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.18));
}

.tech-copy {
  margin-top: 1rem;
  max-width: 58ch;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tech-stack span {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 119, 145, 0.12);
  color: var(--neutral-700);
  font-weight: 800;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(140px, 0.30fr);
  align-items: start;
  gap: 1.35rem;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 218, 0, 0.25), transparent 26%),
    linear-gradient(135deg, #181818, #232325 55%, #163e46);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.cta-copy {
  display: grid;
  gap: 1rem;
}

.cta-copy-single {
  max-width: none;
}

.cta-actions-side {
  align-self: center;
  justify-content: flex-end;
  margin-top: 0;
}

.diagnostic-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 218, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 218, 0, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.diagnostic-form .cta-actions {
  margin-top: 0.35rem;
}

.diagnostic-form .button {
  cursor: pointer;
}

.form-note,
.form-feedback {
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-note {
  color: rgba(255, 255, 255, 0.62);
}

.form-feedback {
  min-height: 1.4em;
  color: var(--brand-yellow);
}

.diagnostic-page {
  padding: 5.5rem 0;
  min-height: calc(100vh - 12rem);
}

.diagnostic-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.diagnostic-page-copy {
  padding-top: 2rem;
}

.diagnostic-form-shell {
  display: grid;
  justify-items: end;
}

.cta-points {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cta-points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--neutral-800);
}

.cta-points li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(190, 26, 27, 0.08);
}

.diagnostic-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0.9rem;
  color: rgba(17, 17, 17, 0.8);
  opacity: 0.9;
  transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
}

.diagnostic-close:hover {
  transform: translateY(-2px);
  color: var(--brand-red);
  opacity: 1;
}

.diagnostic-close svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagnostic-form-page {
  background:
    radial-gradient(circle at top left, rgba(255, 218, 0, 0.16), transparent 24%),
    linear-gradient(135deg, #181818, #232325 55%, #163e46);
  box-shadow: var(--shadow-soft);
}


.reveal-hidden {
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.is-visible {
  opacity: 1;
}

.cta-panel p,
.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .eyebrow {
  color: var(--brand-yellow);
}

.site-footer {
  padding: 0.5rem 0 2rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(87, 87, 86, 0.12);
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-left {
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-right {
  gap: 0.35rem;
  align-items: flex-start;
}

.footer-brand {
  margin-bottom: 0.1rem;
}

.footer-logo {
  height: 3.7rem;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 10px 16px rgba(0, 119, 145, 0.18));
}

.site-footer p {
  display: block;
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--neutral-600);
}

.site-footer a {
  color: var(--brand-teal);
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-grid,
  .tech-layout,
  .footer-layout,
  .process-grid,
  .cta-panel,
  .diagnostic-page-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-bar,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .brand {
    position: static;
  }

  .header-cta {
    position: static;
  }

  .nav-links {
    margin: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .nav-links {
    width: 100%;
  }

  .hero-section,
  .value-section,
  .services-section,
  .process-section,
  .use-cases-section,
  .testimonials-section,
  .technology-section,
  .cta-section,
  .diagnostic-page {
    padding: 4rem 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
    margin-bottom: -1.5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-visual {
    max-width: 380px;
  }

  .cta-panel {
    padding: 1.6rem;
  }

  .diagnostic-form {
    padding: 1.2rem;
  }

  .diagnostic-form .button,
  .diagnostic-form .cta-actions > a {
    width: 100%;
  }

  .footer-logo {
    height: 3rem;
  }
}
