:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #06b6d4;
  --background: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 28px 70px rgba(15, 23, 42, 0.14);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-inline: auto;
  min-height: 76px;
  width: min(100% - 40px, var(--container));
}

.brand {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 800;
  gap: 0.7rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--secondary);
}

.hero {
  overflow: hidden;
  padding: 88px 0 72px;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(6, 182, 212, 0.14), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  position: relative;
}

.eyebrow {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--primary);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 760px;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.18rem;
  margin-top: 1.4rem;
  max-width: 600px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn,
.card-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn {
  min-height: 50px;
  padding: 0.85rem 1.3rem;
}

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

.btn-primary {
  background: var(--secondary);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1d4ed8;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero-preview {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  min-height: 390px;
  overflow: hidden;
}

.browser-shell {
  align-items: center;
  background: var(--primary);
  display: flex;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
}

.browser-shell span {
  background: rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.preview-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 0.38fr 1fr;
  padding: 28px;
}

.preview-sidebar,
.preview-line,
.preview-cards div {
  border-radius: 18px;
}

.preview-sidebar {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.16));
  min-height: 260px;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-line {
  background: #e2e8f0;
  height: 18px;
  width: 68%;
}

.preview-line.wide {
  background: var(--primary);
  height: 34px;
  width: 90%;
}

.preview-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.preview-cards div {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.18));
  min-height: 128px;
}

.section {
  padding: 82px 0;
}

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

.section-heading h2,
.contact-cta h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.contact-cta p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 1rem;
}

.category-block {
  margin-top: 58px;
}

.category-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.category-heading h3 {
  color: var(--primary);
  font-size: 1.45rem;
}

.category-heading p {
  color: var(--muted);
  max-width: 520px;
  text-align: right;
}

.template-grid {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.template-card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.template-card:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.template-preview {
  align-items: end;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.18), transparent 45%),
    linear-gradient(135deg, #dbeafe, #cffafe);
  display: flex;
  min-height: 170px;
  padding: 16px;
  position: relative;
}

.template-preview::before,
.template-preview::after {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  content: "";
  position: absolute;
}

.template-preview::before {
  height: 28%;
  left: 16px;
  top: 18px;
  width: 58%;
}

.template-preview::after {
  bottom: 50px;
  height: 34%;
  right: 16px;
  width: 38%;
}

.template-preview span {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.38rem 0.72rem;
  position: relative;
  z-index: 1;
}

.template-preview.education {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.template-preview.healthcare {
  background: linear-gradient(135deg, #dcfce7, #cffafe);
}

.template-preview.restaurant {
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

.template-preview.hotel {
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
}

.template-preview.business {
  background: linear-gradient(135deg, #e2e8f0, #dbeafe);
}

.template-preview.alt {
  filter: saturate(1.08) hue-rotate(10deg);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-content h4 {
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.3;
}

.card-content p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0.7rem 0 1.2rem;
}

.card-btn {
  background: rgba(37, 99, 235, 0.09);
  color: var(--secondary);
  margin-top: auto;
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.card-btn:hover,
.card-btn:focus {
  background: var(--secondary);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
  color: #fff;
}

.why-section {
  background: #fff;
}

.benefit-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.benefit-card {
  align-items: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--primary);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 116px;
  padding: 1rem;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.benefit-card:hover {
  border-color: rgba(6, 182, 212, 0.42);
  transform: translateY(-4px);
}

.contact-cta {
  padding: 82px 0;
}

.cta-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(15, 23, 42, 0.98)),
    var(--primary);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 62px);
}

.cta-panel .eyebrow,
.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  max-width: 650px;
  opacity: 0.82;
}

.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 62px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1.35fr 0.7fr 1fr;
}

.footer-brand {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer address,
.footer-links a {
  color: #cbd5e1;
  font-style: normal;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 42px;
  padding-top: 22px;
  text-align: center;
}

@media (max-width: 1100px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
  }

  .hero {
    padding-top: 56px;
  }

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

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

  .category-heading,
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-heading p {
    text-align: left;
  }

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

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .section,
  .contact-cta {
    padding: 60px 0;
  }

  .template-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .preview-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .preview-sidebar {
    min-height: 110px;
  }

  .preview-cards {
    grid-template-columns: 1fr;
  }

  .preview-cards div {
    min-height: 74px;
  }

  .btn,
  .card-btn {
    width: 100%;
  }
}
