:root {
  --primary: #982598;
  --primary-deep: #560764;
  --navy: #15173d;
  --text: #1e293b;
  --light: #f8fafc;
  --surface: #ffffff;
  --muted: #55657d;
  --border: #dde5f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Red Hat Text", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--light);
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: "Red Hat Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

p {
  margin: 0;
}

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

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

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6ebf5;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  width: 58px;
  height: 58px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #495873;
  transition: color 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active {
  color: var(--primary);
}

.main-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
}

.main-nav .nav-cta:hover {
  color: #fff;
  background: var(--primary);
}

.menu-toggle {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 120px 0 96px;
  isolation: isolate;
}

.hero-parallax,
.section-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
}

.layer-glow {
  background:
    radial-gradient(circle at 8% 20%, rgba(181, 69, 181, 0.3), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(152, 37, 152, 0.22), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  padding: 8px 12px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 6.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy,
.lead-copy {
  margin-top: 24px;
  max-width: 740px;
  color: #d3d9e8;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #b545b5;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark-outline {
  border: 1px solid #cdd7e8;
  color: var(--text);
  background: #fff;
}

.btn-dark-outline:hover {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}

.hero-trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #98a7c0;
  font-size: 13px;
}

.hero-trust .dot {
  color: var(--primary);
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-light {
  background: var(--surface);
}

.section-soft {
  background: #f3f7fc;
}

.section-dark {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.04;
}

.split-head {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: end;
}

.lead-muted {
  color: var(--muted);
  line-height: 1.75;
}

.issue-grid,
.service-grid,
.logo-grid,
.testimonial-grid,
.metrics-grid,
.phase-grid,
.cards-3,
.cards-2,
.stats-grid,
.usecase-grid {
  display: grid;
  gap: 14px;
}

.issue-grid,
.service-grid,
.logo-grid,
.cards-3,
.stats-grid,
.usecase-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid,
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.issue-card,
.service-card,
.metric-card,
.phase-card,
.soft-card,
.testimonial,
.case-card,
.contact-card,
.faq-column,
.legal-card,
.form-card,
.comparison-card {
  background: #fff;
  border: 1px solid var(--border);
}

.issue-card,
.service-card,
.metric-card,
.phase-card,
.soft-card,
.testimonial,
.case-card,
.contact-card,
.faq-column,
.legal-card,
.form-card,
.comparison-card {
  padding: 24px;
}

.issue-card h3,
.service-card h3,
.soft-card h3,
.case-card h3,
.faq-column h3,
.comparison-card h3 {
  font-size: 1.35rem;
}

.issue-card p,
.service-card p,
.soft-card p,
.phase-card p,
.case-card p,
.testimonial p,
.comparison-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.issue-card:hover,
.service-card:hover {
  border-color: var(--primary-deep);
}

.section-dark .service-card,
.section-dark .comparison-card,
.section-dark .contact-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .service-card p,
.section-dark .comparison-card p,
.section-dark .contact-card p {
  color: #d5dbeb;
}

.logo-grid .logo-chip {
  background: #fff;
  border: 1px solid #dbe3f1;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #33445f;
}

.testimonial strong {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metrics-grid,
.phase-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: "Red Hat Display", sans-serif;
  color: var(--navy);
}

.metric-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-dark .metric-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.section-dark .metric-card strong {
  color: #fff;
}

.section-dark .metric-card span {
  color: #d5dbeb;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  line-height: 1.6;
}

.section-dark .feature-list li {
  color: #d5dbeb;
}

.section-parallax.orb {
  inset: auto -120px -100px auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(152, 37, 152, 0.35), transparent 70%);
}

.section-parallax.stripes {
  opacity: 0.14;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, transparent 40%),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255, 255, 255, 0.08) 25px, transparent 26px);
}

.quiz-wrap {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  align-items: start;
}

.quiz-panel,
.quiz-side {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.option-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.option-btn {
  border: 1px solid #d4deee;
  background: #f8fbff;
  color: #22314b;
  text-align: left;
  padding: 13px 14px;
  font-family: inherit;
  cursor: pointer;
}

.option-btn.selected,
.option-btn:hover {
  border-color: var(--primary-deep);
  background: #fff;
}

.quiz-controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-email {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9eb;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
}

.small-note {
  margin-top: 10px;
  font-size: 13px;
  color: #6a7890;
}

.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  border-top: 1px solid #ebf0f7;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 0;
  padding-right: 30px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2a3d;
  position: relative;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-weight: 900;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding: 0 0 14px;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 92px 0 72px;
}

.page-hero .hero-copy {
  max-width: 820px;
}

.table-like {
  margin-top: 18px;
  border: 1px solid #d8e2f0;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  border-top: 1px solid #e4eaf3;
}

.table-row:first-child {
  border-top: 0;
}

.table-row > div {
  padding: 12px;
  line-height: 1.6;
}

.table-row.header {
  background: #f2f6fc;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9eb;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 10px;
}

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

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.legal-nav a {
  border: 1px solid #d4dceb;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
}

.legal-nav a.active,
.legal-nav a:hover {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}

.legal-section {
  display: none;
}

.legal-section.active {
  display: block;
}

.legal-section h3 {
  margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
  line-height: 1.75;
  color: #4f607b;
}

.legal-section ul {
  margin: 10px 0 0;
}

.site-footer {
  background: #080c1f;
  color: #adb9cf;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  padding: 34px 0 20px;
}

.footer-logo {
  width: 42px;
  height: 42px;
}

.footer-main {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 18px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-name {
  color: #fff;
  font-family: "Red Hat Display", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: #a5b1c8;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  color: #aeb8cb;
  line-height: 1.55;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  font-size: 13px;
  color: #93a0b9;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  color: #c0c9dc;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .split-head,
  .two-col,
  .quiz-wrap,
  .contact-layout,
  .faq-columns {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .phase-grid,
  .service-grid,
  .logo-grid,
  .cards-3,
  .stats-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .container {
    width: min(1200px, 100% - 32px);
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 10px;
  }

  .issue-grid,
  .metrics-grid,
  .phase-grid,
  .service-grid,
  .logo-grid,
  .testimonial-grid,
  .cards-2,
  .cards-3,
  .stats-grid,
  .usecase-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 90px;
  }

  .section {
    padding: 72px 0;
  }

  .footer-wrap {
    padding: 24px 0 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
