:root {
  --color-primary: #2563eb;
  --color-accent: #14b8a6;
  --color-bg: #f6f8fc;
  --color-text: #122033;
  --color-card: #ffffff;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --border: rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 92px;
}

.section-alt {
  background: #eef4ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(37, 99, 235, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.hero {
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 2rem;
  align-items: center;
}

.hero-content,
.hero-card,
.preview-card,
.info-card,
.pricing-card,
.step-card,
.product-card,
.page-card,
.page-hero > *,
.footer-grid > *,
.card-grid > *,
.features-grid > *,
.steps-grid > *,
.catalog-grid > *,
.before-after-grid > * {
  min-width: 0;
}

.eyebrow {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.06rem;
  color: #42536c;
  max-width: 680px;
  overflow-wrap: anywhere;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  min-height: 52px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: rgba(18, 32, 51, 0.12);
}

.hero-card,
.preview-card,
.info-card,
.pricing-card,
.step-card,
.product-card,
.page-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 140px;
  height: 140px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 50%;
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.hero-list li {
  padding-left: 1.2rem;
  position: relative;
  color: #42536c;
}

.hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.preview-card,
.info-card,
.pricing-card,
.product-card,
.page-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.preview-card,
.info-card,
.pricing-card,
.step-card,
.page-card,
.product-card {
  overflow-wrap: anywhere;
}

.preview-card .button {
  margin-top: auto;
}

.preview-card:hover,
.info-card:hover,
.pricing-card:hover,
.product-card:hover,
.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.card-meta,
.price {
  font-weight: 800;
  color: var(--color-primary);
  margin: 0.8rem 0 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill-list span {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: minmax(280px, 440px);
  justify-content: start;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pricing-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.pricing-card li {
  padding: 0.3rem 0;
  color: #42536c;
}

.pricing-card.featured {
  border: 2px solid rgba(37, 99, 235, 0.15);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1.25rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  background: #0f172a;
  color: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.site-footer a {
  color: #bfdbfe;
}

.page-header {
  padding: 2rem 0 0.5rem;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-subtitle {
  max-width: 700px;
  color: #42536c;
  font-size: 1.02rem;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.page-hero .hero-card {
  min-height: 100%;
}

.section-card {
  padding: 2rem 0;
}

.service-list,
.benefit-list,
.faq-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.service-list li,
.benefit-list li,
.faq-list li {
  color: #42536c;
}

.price-list {
  display: grid;
  gap: 0.8rem;
}

.price-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
}

.price-list-item strong {
  white-space: nowrap;
}

.quote-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.filter-btn {
  background: #fff;
  border: 1px solid rgba(18, 32, 51, 0.12);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card img {
  border-radius: 14px;
  margin-bottom: 1rem;
  background: #eef4ff;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.before-after-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.before-after-card h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero,
  .features-grid,
  .steps-grid,
  .catalog-grid,
  .before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 220px;
    border: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .page-nav {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .card-grid,
  .hero-grid,
  .page-hero,
  .pricing-grid,
  .features-grid,
  .steps-grid,
  .catalog-grid,
  .before-after-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
    white-space: normal;
  }

  .site-footer {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1180px, calc(100% - 1rem));
  }

  .section {
    padding: 44px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: 1.72rem;
  }

  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.58rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero-actions,
  .button-row {
    gap: 0.65rem;
  }

  .hero-card,
  .preview-card,
  .info-card,
  .pricing-card,
  .step-card,
  .product-card,
  .page-card,
  .before-after-card {
    padding: 1rem;
  }

  .price-list-item {
    flex-direction: column;
    gap: 0.2rem;
  }
}
