:root {
  --bg: #0d1420;
  --bg-2: #111c2d;
  --bg-3: #0b121d;
  --text: #f6f8fb;
  --muted: #9aa2b2;
  --muted-2: #6f7787;
  --blue: #5a9cff;
  --button: #2f55c8;
  --button-hover: #3d66e6;
  --border: rgba(255, 255, 255, 0.16);
  --border-blue: rgba(75, 137, 255, 0.32);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 45%, rgba(49, 82, 129, 0.22), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 44%, var(--bg-3) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.site {
  position: relative;
  z-index: 1;
}

.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.top-nav.scrolled {
  background: rgba(13, 20, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: #fff;
}

.nav-mid {
  display: flex;
  gap: 32px;
}

.nav-mid a {
  color: rgba(246, 248, 251, 0.8);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-mid a:hover {
  color: #fff;
}

.nav-btn {
  background: var(--button);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: var(--button-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn-primary {
  background: var(--button);
  color: #fff;
  padding: 17px 28px;
}

.btn-primary:hover {
  background: var(--button-hover);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px 36px 90px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: -10%;
  width: 700px;
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(47, 85, 200, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  z-index: -1;
}

.badge,
.section-kicker,
.kicker {
  display: inline-block;
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  padding: 9px 16px;
  color: #68a8ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 880px;
  margin-bottom: 28px;
}

.hero h1 .hl {
  color: var(--blue);
}

.hero p.sub {
  font-size: 18px;
  color: rgba(198, 205, 216, 0.82);
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.hero-actions .btn {
  width: 100%;
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.strip-label {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.strip-items {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.strip-items span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

section.block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 36px;
}

.block-tight {
  padding-top: 0;
}

h2.title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
}

.svc-head,
.pkg-head,
.proc-head {
  margin-bottom: 50px;
  max-width: 740px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.svc {
  background: rgba(255, 255, 255, 0.015);
  padding: 38px 32px;
  transition: background 0.25s ease;
}

.svc:hover {
  background: rgba(255, 255, 255, 0.03);
}

.svc h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.svc p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

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

.stat {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 22px;
}

.stat .n {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat .l {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.proc {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.proc .pn {
  color: #68a8ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.proc h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.proc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.pkg {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.pkg:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.pkg.featured {
  border-color: rgba(75, 137, 255, 0.45);
  background: rgba(42, 79, 147, 0.16);
}

.pkg .pn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.pkg h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pkg .pd {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

.pkg .btn {
  width: 100%;
}

.needs-calculator {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  padding: 30px;
}

.calc-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calc-preset {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calc-preset:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.calc-preset.is-active {
  border-color: rgba(75, 137, 255, 0.5);
  background: rgba(47, 85, 200, 0.2);
}

.calc-head {
  margin-bottom: 20px;
}

.calc-head h3 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.calc-head p {
  color: var(--muted);
  line-height: 1.6;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field span {
  font-size: 14px;
  color: #c8d8f3;
  font-weight: 600;
}

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

.stepper {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.stepper-btn {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #d8e6ff;
  font-size: 20px;
  cursor: pointer;
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stepper input,
.calc-field select {
  height: 46px;
  border: 0;
  background: transparent;
  color: #f3f7ff;
  font-size: 15px;
  padding: 0 12px;
  text-align: center;
}

.stepper input:focus,
.calc-field select:focus {
  outline: 2px solid rgba(120, 173, 255, 0.5);
  outline-offset: -2px;
}

.segmented {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.segmented label:last-child span {
  border-right: 0;
}

.segmented input:checked + span {
  background: rgba(47, 85, 200, 0.22);
  color: #e9f2ff;
}

.calc-output {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 16px;
}

.calc-summary {
  color: #cdd9eb;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-line;
}

.calc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-actions .btn {
  width: auto;
  min-width: 220px;
}

.quote-wrap {
  max-width: 880px;
}

.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 36px 110px;
}

.cta-box {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.015);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box .cglow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(47, 85, 200, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.65;
  position: relative;
}

.cta-actions {
  display: inline-flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 60px 36px 34px;
}

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.foot-brand .logo {
  display: block;
  margin-bottom: 14px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}

.foot-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.foot-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.foot-bot {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bot p {
  color: var(--muted-2);
  font-size: 13px;
}

.r {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.d1 {
  transition-delay: 0.05s;
}

.d2 {
  transition-delay: 0.1s;
}

.d3 {
  transition-delay: 0.15s;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(2px);
}

.lead-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  border: 1px solid rgba(120, 173, 255, 0.35);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(17, 30, 54, 0.98), rgba(8, 15, 28, 0.98));
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.22s ease;
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #dde9ff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__copy {
  color: var(--muted);
  margin: 8px 0 18px;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label {
  color: #c8d8f3;
  font-size: 14px;
  font-weight: 600;
}

.lead-form input {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #f3f7ff;
  font-size: 16px;
  padding: 0 14px;
}

.lead-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #f3f7ff;
  font-size: 15px;
  padding: 10px 14px;
  resize: vertical;
  min-height: 90px;
}

.lead-form input:focus {
  outline: 2px solid rgba(120, 173, 255, 0.5);
  border-color: rgba(120, 173, 255, 0.85);
}

.lead-form textarea:focus {
  outline: 2px solid rgba(120, 173, 255, 0.5);
  border-color: rgba(120, 173, 255, 0.85);
}

.lead-form__status {
  color: #a9d0ff;
  min-height: 18px;
  font-size: 13px;
}

.lead-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lead-form__actions .btn {
  min-width: 0;
  flex: 1;
}

@keyframes modalIn {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .svc-grid,
  .pkg-grid,
  .proc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-field-full {
    grid-column: auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .top-nav {
    padding: 0 18px;
  }

  .nav-mid {
    display: none;
  }

  .hero {
    padding: 130px 20px 70px;
  }

  section.block {
    padding: 72px 20px;
  }

  .strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }

  .svc-grid,
  .pkg-grid,
  .proc-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .needs-calculator {
    padding: 22px;
  }

  .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented[aria-label="AI automation level"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .calc-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .cta {
    padding: 0 20px 72px;
  }

  .cta-box {
    padding: 52px 22px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .lead-form__actions {
    flex-direction: column;
  }

  footer {
    padding: 48px 20px 28px;
  }

  .foot-top {
    grid-template-columns: 1fr;
  }
}

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

  .r {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
