:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --primary: #0f172a;
  --primary-strong: #111827;
  --accent: #2f6fed;
  --accent-soft: #dfeafe;
  --success: #1ea672;
  --text: #1f2937;
  --muted: #667085;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

section[id],
footer[id],
[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  display: block;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.22);
}

.btn-secondary {
  background: rgba(47, 111, 237, 0.08);
  color: var(--primary);
  border-color: rgba(47, 111, 237, 0.12);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.ai-copy h2 {
  margin: 1rem 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 600px;
}

.hero-copy p,
.ai-copy p,
.step-box p,
.card-body p,
.faq-answer p,
.site-footer p,
.site-footer li {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  color: var(--primary-strong);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.image-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 540px;
}

.image-card img {
  height: 100%;
  object-fit: cover;
}

.floating-box {
  position: absolute;
  left: -1.5rem;
  bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.floating-box strong {
  font-size: 1.75rem;
  color: var(--primary);
}

.floating-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-bar {
  padding: 1rem 0 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.trust-grid > div:last-child {
  border-right: none;
}

.trust-grid strong {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--primary);
}

.trust-grid span {
  color: var(--muted);
  margin-top: 0.35rem;
}

.section {
  padding: 5rem 0;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(219, 232, 255, 0.28), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 700px;
}

.section-heading h2,
.ai-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
}

.product-card img {
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--primary);
}

.card-body ul {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text);
}

.card-body li::before {
  content: "✓";
  color: var(--success);
  margin-right: 0.5rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.price-row strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.price-row a {
  color: var(--accent);
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.step-box span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step-box h3 {
  margin: 0 0 0.65rem;
  color: var(--primary);
}

.contact-section {
  padding-top: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-copy {
  padding-top: 0.5rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 700;
  color: var(--primary);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #f9fafb;
  color: var(--primary);
  resize: vertical;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(47, 111, 237, 0.15);
  border-color: rgba(47, 111, 237, 0.35);
}

.contact-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  z-index: 1000;
  height: 72px;
  transition: height 0.3s ease, box-shadow 0.25s ease;
}

.chat-panel.is-open {
  height: 540px;
  max-height: 640px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.05), rgba(15, 23, 42, 0.02));
}

.chat-header > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.chat-header strong {
  display: block;
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.2;
}

.chat-header small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #2f6fed);
  color: white;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.86rem;
}

.chat-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.chat-toggle:hover {
  background: #edf3ff;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.12);
}

.chat-toggle-icon {
  display: inline-block;
  transform: translateY(-1px);
  font-weight: 800;
  line-height: 1;
}

.chat-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 72px);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.chat-panel.is-open .chat-body {
  max-height: 468px;
  opacity: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
  padding: 0.85rem 0.9rem 0.7rem;
  min-height: 140px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(238, 243, 255, 0.5), rgba(255, 255, 255, 0.7));
}

.message {
  max-width: 88%;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 0.96rem;
}

.message.bot {
  background: #edf3ff;
  color: var(--primary);
  align-self: flex-start;
}

.message.user {
  background: linear-gradient(135deg, #0f172a, #2f6fed);
  color: white;
  align-self: flex-end;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.85rem 0.95rem;
  background: #f9fafb;
  color: var(--primary);
  font-size: 0.95rem;
}

.chat-form button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 104px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.chat-form input:focus {
  outline: 2px solid rgba(47, 111, 237, 0.15);
  border-color: rgba(47, 111, 237, 0.35);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonials blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--primary);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.04);
}

.testimonials footer {
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 1.1rem 1.2rem;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 1.2rem 1.1rem;
  margin: 0;
}

.site-footer {
  background: #0b1220;
  color: white;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.75);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-layout,
  .faq-wrap,
  .card-grid,
  .steps-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .chat-panel {
    right: 12px;
    bottom: 12px;
    width: min(340px, calc(100vw - 16px));
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .floating-box {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
