:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #070d2d;
  --muted: #59627a;
  --line: #dce5f6;
  --blue: #2457ff;
  --blue-deep: #102e95;
  --green: #23b26d;
  --orange: #ff9e2c;
  --violet: #8b5cf6;
  --teal: #14b8a6;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(37, 70, 150, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 66% 9%, rgba(36, 87, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 58%, #eef4ff 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body.dark {
  --bg: #0b1020;
  --surface: #11182d;
  --surface-soft: #16213d;
  --text: #f7f9ff;
  --muted: #aeb8d3;
  --line: #263353;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

body.dark .site-header {
  background: rgba(11, 16, 32, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand strong::first-letter {
  color: var(--blue);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #224cff, #7c5cff);
  box-shadow: 0 12px 28px rgba(36, 87, 255, 0.26);
}

.brand-mark span {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.86);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  width: 100%;
  font-weight: 760;
}

.nav-links a,
.text-link {
  color: var(--text);
  transition: color 160ms ease;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 820;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: transparent;
  color: var(--text);
  border-left: 1px solid var(--line);
}

svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  padding: 0 28px;
  box-shadow: 0 18px 34px rgba(36, 87, 255, 0.2);
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4838ff);
}

.secondary-button {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(37, 70, 150, 0.08);
}

.primary-button.small {
  min-height: 46px;
  padding-inline: 22px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(46px, 8vw, 92px) clamp(18px, 6vw, 96px) 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 6.6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.hero-subtitle {
  max-width: 620px;
  margin: 26px 0 32px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 0;
  max-width: 740px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row div {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.trust-row div:last-child {
  border-right: 0;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 1.2rem;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.device {
  position: absolute;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dce5f6;
  color: #071033;
  box-shadow: var(--shadow);
}

.laptop {
  left: 3%;
  top: 3%;
  width: 77%;
  min-height: 430px;
  padding: 28px;
  border-radius: 18px;
  transform: perspective(1100px) rotateY(-9deg) rotateX(2deg);
}

.device-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.mini-logo {
  width: 18px;
  height: 24px;
  border-radius: 4px;
  background: var(--blue);
}

.device-top em {
  padding: 6px 10px;
  color: #fff;
  font-size: 0.76rem;
  font-style: normal;
  border-radius: 999px;
  background: var(--green);
}

.range-card {
  padding: 24px;
  border: 1px solid #dce5f6;
  border-radius: var(--radius);
  background: #fff;
}

.range-card p {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.price-range {
  position: relative;
  height: 16px;
  margin: 8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue), #ff6d3a);
}

.price-range span,
.price-range i,
.price-range b {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
}

.price-range span {
  left: 38%;
}

.price-range i {
  left: 53%;
}

.price-range b {
  left: 66%;
}

.range-labels,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.range-labels {
  margin-top: 12px;
  color: #39446a;
  font-size: 0.82rem;
}

.range-labels strong {
  color: var(--blue);
  text-align: center;
}

.range-labels span:last-child {
  text-align: right;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
}

.metric-grid div {
  min-height: 76px;
  padding: 14px 10px;
  border-radius: var(--radius);
  background: #f0f4ff;
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  color: #6b7390;
  font-size: 0.74rem;
}

.laptop button,
.phone button {
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
}

.phone {
  right: 5%;
  bottom: 4%;
  width: 220px;
  min-height: 390px;
  padding: 44px 20px 18px;
  border-radius: 30px;
}

.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #070d2d;
  transform: translateX(-50%);
}

.phone small,
.phone strong,
.phone span {
  display: block;
}

.phone strong {
  margin: 14px 0 22px;
  color: var(--blue);
  font-size: 2rem;
}

.phone span,
.floating-paper span {
  height: 9px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #dfe6fb;
}

.phone span:nth-of-type(2),
.floating-paper span:nth-of-type(2) {
  width: 76%;
}

.phone span:nth-of-type(3),
.floating-paper span:nth-of-type(3) {
  width: 54%;
}

.phone button {
  width: 100%;
  margin-top: 22px;
}

.floating-paper {
  position: absolute;
  z-index: 2;
  width: 180px;
  padding: 22px;
  border: 1px solid #dce5f6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: #071033;
  box-shadow: 0 22px 44px rgba(37, 70, 150, 0.14);
}

.quote-paper {
  top: 4%;
  right: 3%;
}

.invoice-paper {
  right: 0;
  top: 43%;
  transform: rotate(6deg);
}

.floating-paper small,
.floating-paper strong,
.floating-paper b {
  display: block;
}

.floating-paper strong {
  margin: 12px 0;
  color: var(--blue);
  font-size: 1.6rem;
}

.floating-paper b {
  width: max-content;
  margin: 8px 0 12px;
  padding: 5px 10px;
  color: #13784d;
  border-radius: 999px;
  background: #dff8eb;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.compact {
  margin-inline: 0;
  text-align: left;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  text-align: left;
}

.section-heading.split p:not(.eyebrow) {
  max-width: 380px;
  margin: 12px 0 0;
}

.calculator-band,
.card-section,
.feature-section,
.templates-section,
.pricing-section,
.resources-section {
  margin: 0 clamp(18px, 4vw, 64px) 22px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 38px rgba(37, 70, 150, 0.08);
}

body.dark .calculator-band,
body.dark .card-section,
body.dark .feature-section,
body.dark .templates-section,
body.dark .pricing-section,
body.dark .resources-section {
  background: rgba(17, 24, 45, 0.74);
}

.calculator-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.calculator-panel label,
.quote-output {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.calculator-panel label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.calculator-panel input,
.calculator-panel select {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0 12px;
}

.calculator-panel label:nth-child(5),
.quote-output {
  grid-column: span 2;
}

.quote-output strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.quote-output small {
  color: var(--muted);
}

.calculator-grid,
.feature-grid,
.template-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.calculator-grid {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.mini-card,
.feature-grid article,
.template-card,
.pricing-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(37, 70, 150, 0.08);
}

.mini-card {
  min-height: 180px;
  padding: 22px;
}

.mini-card h3,
.feature-grid h3,
.pricing-grid h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.mini-card p,
.feature-grid p,
.pricing-grid p,
.pricing-grid li,
.template-card small {
  color: var(--muted);
  font-size: 0.94rem;
}

.mini-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 820;
}

.card-icon,
.feature-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.card-icon.blue,
.feature-icon.calculator {
  background: linear-gradient(145deg, #7fb2ff, var(--blue));
}

.card-icon.violet,
.feature-icon.contract {
  background: linear-gradient(145deg, #c4a7ff, var(--violet));
}

.card-icon.green,
.feature-icon.invoice {
  background: linear-gradient(145deg, #77e7a8, var(--green));
}

.card-icon.orange,
.feature-icon.quote {
  background: linear-gradient(145deg, #ffd49a, var(--orange));
}

.card-icon.teal,
.feature-icon.clients {
  background: linear-gradient(145deg, #80f1e3, var(--teal));
}

.card-icon.pink {
  background: linear-gradient(145deg, #ffb0d8, var(--pink));
}

.card-icon.indigo,
.feature-icon.currency {
  background: linear-gradient(145deg, #a8b7ff, #4f46e5);
}

.feature-grid {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.feature-grid article {
  min-height: 174px;
  padding: 22px;
}

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

.template-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 26px;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 87, 255, 0.45);
}

.template-card span {
  width: max-content;
  padding: 7px 11px;
  color: var(--blue);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

.template-card strong {
  font-size: 1.42rem;
  line-height: 1.12;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid article {
  padding: 28px;
}

.pricing-grid strong {
  display: block;
  margin: 18px 0;
  font-size: 2.6rem;
  line-height: 1;
}

.pricing-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.featured-plan {
  border-color: rgba(36, 87, 255, 0.5) !important;
  background: linear-gradient(180deg, rgba(36, 87, 255, 0.08), var(--surface)) !important;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.roadmap div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.roadmap strong {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
}

.roadmap span {
  font-weight: 780;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 4vw, 64px);
  padding: 34px 0 48px;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--text);
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .calculator-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .calculator-grid,
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .text-link {
    display: none;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .trust-row,
  .calculator-panel,
  .calculator-grid,
  .feature-grid,
  .template-grid,
  .pricing-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .trust-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-row div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 520px;
    overflow: hidden;
  }

  .laptop {
    left: 0;
    width: 100%;
    min-height: 390px;
    padding: 18px;
    transform: none;
  }

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

  .phone {
    right: 4%;
    bottom: 0;
    width: 168px;
    min-height: 300px;
    padding-inline: 14px;
  }

  .floating-paper {
    display: none;
  }

  .calculator-panel label:nth-child(5),
  .quote-output {
    grid-column: span 1;
  }

  .section-heading.split {
    display: block;
  }

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

@media (max-width: 480px) {
  .brand strong {
    font-size: 1.28rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    grid-template-columns: repeat(2, 8px);
    gap: 4px;
  }

  .hero-copy h1 {
    font-size: 2.72rem;
  }

  .calculator-band,
  .card-section,
  .feature-section,
  .templates-section,
  .pricing-section,
  .resources-section {
    padding: 22px;
  }

  .range-card p {
    font-size: 1.8rem;
  }

  .phone {
    display: none;
  }
}
