:root {
  --bg: #10162a;
  --bg-soft: #161e35;
  --panel: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #c7cee4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6b489d;
  --accent-soft: #9a7ad0;
  --max-width: 1180px;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(107, 72, 157, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(143, 108, 192, 0.20), transparent 30%),
    linear-gradient(180deg, #0b1020 0%, #10162a 35%, #151d33 100%);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  width: min(var(--max-width), calc(100% - 200px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform-origin: left center;
}

.eyebrow,
.section-label {
  display: inline-block;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 12px 32px rgba(107, 72, 157, 0.28);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b1020;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.78) 0%, rgba(8, 13, 26, 0.58) 35%, rgba(8, 13, 26, 0.26) 62%, rgba(8, 13, 26, 0.10) 100%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.18) 0%, rgba(8, 13, 26, 0.05) 45%, rgba(8, 13, 26, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 120px 0 100px;
  will-change: opacity, transform;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.steps-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.88), rgba(11, 16, 32, 0.96)),
    radial-gradient(circle at 20% 30%, rgba(107, 72, 157, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(80, 140, 255, 0.06), transparent 40%);
  z-index: 1;
}

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

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.problem {
  position: relative;
  margin-top: 0;
  padding-top: 120px;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.58), rgba(11, 16, 32, 0.82)),
    url("../assets/images/problem-quoting.webp") center center / cover no-repeat;
  overflow: hidden;
  z-index: 2;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.problem .container {
  position: relative;
  z-index: 1;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(154, 122, 208, 0.16);
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 1rem;
}

.problem-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.transition {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-split {
  overflow: visible;
}

.feature-split-reverse .feature-text {
  order: 1;
}

.feature-split-reverse .feature-visual {
  order: 2;
}

.feature-visual {
  position: relative;
  z-index: 1;
}

.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(107, 72, 157, 0.18),
    rgba(107, 72, 157, 0.08) 35%,
    transparent 72%
  );
  filter: blur(16px);
}

.feature-visual-step1 img {
  transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
}

.feature-visual-step2 img {
  transform: perspective(1600px) rotateX(2deg);
}

.feature-visual-step3 {
  margin-top: 0;
}

.feature-visual-centered {
  max-width: 980px;
  margin: 38px auto 0;
}

.feature-visual-step3 img {
  transform: perspective(1600px) rotateY(5deg) rotateX(2deg);
}

.feature-visual-step4 img {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
}

.feature-visual-step5 img {
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
}

.feature-visual-step5::before {
  background: radial-gradient(
    circle at center,
    rgba(107, 72, 157, 0.22),
    rgba(80, 140, 255, 0.08) 38%,
    transparent 72%
  );
  filter: blur(18px);
}

.feature-visual-step6 img {
  transform: perspective(1600px) rotateY(5deg) rotateX(2deg);
}

.feature-visual-step6::before {
  background: radial-gradient(
    circle at center,
    rgba(90, 210, 140, 0.12),
    rgba(107, 72, 157, 0.10) 40%,
    transparent 72%
  );
  filter: blur(18px);
}

.feature-text {
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

.feature-text p {
  max-width: 560px;
}

.feature + .feature {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.final-cta {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.final-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
}

.final-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 16, 32, 0.34),
    rgba(11, 16, 32, 0.60)
  );
}

.final-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.final-content p {
  max-width: 760px;
  margin: 0 auto;
}

.final-content .btn {
  margin-top: 32px;
}

.final-cta .btn-primary {
  box-shadow:
    0 14px 36px rgba(107, 72, 157, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-split-reverse .feature-text,
  .feature-split-reverse .feature-visual {
    order: initial;
  }

  .section {
    padding: 90px 0;
  }

  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 0 40px;
  }

  .feature-visual-step1 img,
  .feature-visual-step2 img,
  .feature-visual-step3 img,
  .feature-visual-step4 img,
  .feature-visual-step5 img,
  .feature-visual-step6 img {
    transform: none;
  }

  .feature-visual::before {
    inset: -16px;
  }

  .feature-text {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}