:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --ink: #1f2937;
  --muted: #5f6b7a;
  --accent: #1d4ed8;
  --accent-strong: #1e3a8a;
  --line: #d8e1ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, #edf4ff 0%, rgba(237, 244, 255, 0.2) 35%, transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fb 55%, #f1f4f9 100%);
  color: var(--ink);
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  line-height: 1.2;
  margin: 0;
  color: #0f172a;
}

p,
ul {
  margin: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: rgba(29, 78, 216, 0.17);
  top: -120px;
  right: 8%;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.12);
  left: 6%;
  top: 45%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(216, 225, 239, 0.75);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

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

.nav-links a {
  color: #334155;
  font-weight: 600;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-strong);
  background: #e8f0ff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
  padding: 5.5rem 0 2.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 52ch;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.72rem 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #0f57d1);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.btn.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.33);
}

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

.btn-small {
  padding: 0.58rem 0.9rem;
}

.hero-meta {
  list-style: none;
  margin-top: 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: #334155;
}

.hero-meta li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: #38bdf8;
}

.hero-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-preview img {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.hero-preview figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.section-contrast {
  background: linear-gradient(180deg, rgba(226, 237, 255, 0.4), rgba(219, 233, 255, 0.18));
  border-top: 1px solid #dce8ff;
  border-bottom: 1px solid #dce8ff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  font-size: 1.15rem;
}

.step-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

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

.preview-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.8rem;
}

.preview-card img {
  border-radius: 10px;
}

.preview-card figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-box {
  background: #f8fbff;
  border: 1px solid #d9e7ff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.privacy-box ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: #334155;
  display: grid;
  gap: 0.5rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  float: right;
  color: #64748b;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-answer p {
  overflow: hidden;
  padding: 0 1rem;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding: 0 1rem 1rem;
}

.cta-band {
  padding-top: 1rem;
}

.cta-band-inner {
  border-radius: var(--radius-lg);
  border: 1px solid #cbddff;
  background: linear-gradient(130deg, #e7f1ff, #f2f7ff 55%, #eaf8ff);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.site-footer {
  padding: 2.1rem 0;
  border-top: 1px solid #d9e2ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-link-btn:hover {
  color: var(--accent-strong);
}

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 30;
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.contact-modal-dialog {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  padding: 1.2rem;
}

.contact-modal-dialog h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.install-modal-dialog {
  width: min(620px, 100%);
}

.install-modal-lead {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.install-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: #0f172a;
  display: grid;
  gap: 0.4rem;
}

.install-modal-note {
  margin-top: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.install-modal-actions {
  margin-top: 1rem;
}

.install-modal-actions .btn {
  min-width: 130px;
}

.contact-modal-close {
  float: right;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.contact-modal-close:hover {
  border-color: #b8c7df;
}

.field-label {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-weight: 700;
  color: #0f172a;
}

.field-input,
.field-textarea {
  width: 100%;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.field-textarea {
  min-height: 132px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  outline: 2px solid rgba(29, 78, 216, 0.25);
  border-color: var(--accent);
}

.field-input.invalid,
.field-textarea.invalid {
  border-color: #dc2626;
  background: #fff8f8;
}

.field-input.invalid:focus,
.field-textarea.invalid:focus {
  outline: 2px solid rgba(220, 38, 38, 0.22);
  border-color: #dc2626;
}

.field-meta {
  margin-top: 0.35rem;
  text-align: right;
  font-size: 0.82rem;
  color: #64748b;
}

.form-status {
  margin-top: 0.55rem;
  min-height: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
}

.form-status[hidden] {
  display: none;
}

.contact-submit {
  margin-top: 0.95rem;
  min-width: 120px;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.1rem;
  }

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

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

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-links.open {
    display: flex;
  }

  .btn-small {
    width: 100%;
  }

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

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

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

  .reveal,
  .faq-answer,
  .btn,
  .contact-modal {
    transition: none;
  }
}
