:root {
  --bg: #f7f8fa;
  --bg-soft: #eef0f5;
  --card: rgba(255, 255, 255, 0.97);
  --text: #18202e;
  --muted: #536078;
  --accent: #2e5bba;
  --accent-soft: #4a78d4;
  --accent-warm: #6b8fd8;
  --line: rgba(100, 120, 160, 0.2);
  --shadow: 0 18px 45px rgba(20, 40, 80, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 14% 8%, #dde5f4 0%, transparent 40%),
    radial-gradient(circle at 86% 0%, #d5dff0 0%, transparent 35%),
    linear-gradient(155deg, var(--bg), #eef1f8 76%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(100, 120, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 120, 160, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 84%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(100, 120, 160, 0.15);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 700;
}

.main-nav {
  display: inline-flex;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

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

.main-nav a:focus-visible,
.brand:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(46, 91, 186, 0.5);
  outline-offset: 2px;
  border-radius: 10px;
}

.hero {
  padding: 6.5rem 0 1.2rem;
}

.hero.compact {
  padding-top: 4rem;
  padding-bottom: 1.3rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  color: var(--accent-warm);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 600;
}

h1,
h2 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  line-height: 1.2;
}

h1 {
  margin: 0.7rem 0 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 6vw, 3.9rem);
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.button {
  display: inline-block;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 91, 186, 0.28);
}

.highlights,
.services-grid,
.process-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.1rem 0 1rem;
}

.card,
.service-card,
.step-card,
.inquiry-form,
.cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.97));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card,
.service-card,
.step-card {
  padding: 1.3rem;
}

.card p,
.service-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
}

.service-card li {
  color: var(--muted);
}

.process {
  padding: 2rem 0 0.5rem;
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
}

.step-title {
  margin: 0 0 0.45rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.benefits {
  padding: 0.4rem 0 0.2rem;
}

.benefits-grid {
  padding-top: 1.2rem;
}

.benefit-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.benefit-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 120, 212, 0.45);
  box-shadow: 0 14px 30px rgba(20, 40, 80, 0.14);
}

.benefit-title {
  margin: 0 0 0.45rem;
}

.benefit-subline {
  color: var(--muted);
}

.timeline-section {
  padding: 1.4rem 0 0.8rem;
}

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

.timeline-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.97));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-step:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 120, 212, 0.45);
  box-shadow: 0 14px 30px rgba(20, 40, 80, 0.14);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.timeline-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
  flex: 0 0 30px;
}

.timeline-connector {
  height: 2px;
  background: rgba(100, 130, 190, 0.35);
  flex: 1;
}

.timeline-step.is-last .timeline-connector {
  display: none;
}

.timeline-title {
  margin: 0 0 0.45rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

.inquiry {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

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

label {
  display: grid;
  gap: 0.38rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(100, 120, 160, 0.3);
  padding: 0.74rem 0.76rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(46, 91, 186, 0.2);
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  align-self: center;
}

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

.service-trigger {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 120, 212, 0.45);
  box-shadow: 0 14px 30px rgba(20, 40, 80, 0.14);
}

.service-trigger:focus-visible {
  outline: 3px solid rgba(46, 91, 186, 0.5);
  outline-offset: 2px;
  border-color: rgba(74, 120, 212, 0.65);
}

.benefits-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.34rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 25, 55, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 255, 0.99));
  border: 1px solid rgba(100, 120, 160, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(20, 40, 90, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(100, 120, 160, 0.18);
}

.modal-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(100, 120, 160, 0.3);
  border-radius: 999px;
  background: rgba(238, 240, 245, 0.9);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: rgba(74, 120, 212, 0.55);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(46, 91, 186, 0.5);
  outline-offset: 2px;
}

.modal-body {
  padding: 1rem 1.2rem 1.2rem;
  overflow: auto;
}

.modal-overview {
  margin: 0 0 1rem;
  color: var(--muted);
}

.modal-section {
  margin-top: 1rem;
}

.modal-section h3 {
  margin: 0 0 0.5rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
}

.modal-outcome {
  margin: 0;
  color: var(--muted);
}

.modal-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.34rem;
}

.modal-list li {
  color: var(--muted);
}

.modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(100, 120, 160, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: var(--text);
  font-size: 0.86rem;
  background: rgba(226, 232, 248, 0.8);
}

body.modal-open {
  overflow: hidden;
}

.cta {
  margin: 2rem auto 4rem;
  padding: 1.5rem;
  text-align: center;
}

.cta p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(100, 120, 160, 0.18);
  background: rgba(238, 240, 245, 0.9);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.stagger:nth-of-type(2) {
  animation-delay: 0.08s;
}

.stagger:nth-of-type(3) {
  animation-delay: 0.16s;
}

.stagger:nth-of-type(4) {
  animation-delay: 0.24s;
}

.stagger:nth-of-type(5) {
  animation-delay: 0.32s;
}

.stagger:nth-of-type(6) {
  animation-delay: 0.4s;
}

.stagger:nth-of-type(7) {
  animation-delay: 0.48s;
}

.stagger:nth-of-type(8) {
  animation-delay: 0.56s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .highlights,
  .benefits-grid,
  .services-grid,
  .process-grid,
  .timeline,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .timeline-head {
    display: block;
    margin-bottom: 0.5rem;
  }

  .timeline-connector {
    width: 2px;
    height: 26px;
    margin: 0.45rem 0 0 14px;
    display: block;
  }

  h1 {
    max-width: 100%;
  }

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

@media (max-width: 560px) {
  .main-nav {
    gap: 0.8rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .container {
    width: min(1080px, calc(100% - 1.4rem));
  }

  .modal-overlay {
    padding: 0.65rem;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100vh - 1.3rem);
  }
}
