:root {
  --bg: #eef5ff;
  --paper: #fefefe;
  --ink: #0f172a;
  --steel: #0f2747;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --line: #d1d5db;
  --ok: #166534;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 88% 8%, #dbeafe 0%, transparent 40%),
    radial-gradient(circle at 8% 92%, #bfdbfe 0%, transparent 35%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

h1,
h2,
h3,
.brand {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.03em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(28, 43, 57, 0.94);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
}

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

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.mobile-menu {
  display: none;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--steel);
}

.btn-call {
  background: #ffffff;
  color: var(--steel);
  white-space: nowrap;
}

.btn-install {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
  white-space: nowrap;
}

.btn.block {
  width: 100%;
  text-align: center;
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-copy,
.hero-card,
.section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.hero-copy {
  padding: 2rem;
}

.kicker {
  margin: 0 0 0.4rem;
  color: #1e3a8a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.95;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 100%);
  color: #e5e7eb;
  padding: 1.2rem;
}

.hero-card-title {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-family: "Barlow Condensed", Impact, sans-serif;
}

.section {
  margin-top: 1rem;
  padding: 1.3rem;
}

.section-alt {
  background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.lead {
  margin-top: 0;
}

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

.card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.card h3 {
  margin-top: 0;
}

.checks {
  margin: 0;
  padding-left: 1rem;
}

.checks li {
  margin: 0.4rem 0;
}

.area-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.area-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid #fdba74;
  border-color: var(--accent);
}

.site-footer {
  width: min(1120px, 92%);
  margin: 1rem auto 5rem;
  padding: 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #1e3a8a;
}

.mobile-call {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: 30;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 4.8rem;
  z-index: 30;
  background: var(--steel);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.install-prompt {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5.2rem;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  box-shadow: 0 10px 22px rgba(15, 39, 71, 0.2);
}

.install-prompt[hidden] {
  display: none;
}

.install-prompt span {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e3a8a;
}

.install-dismiss {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.top-link {
  color: #1e3a8a;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .btn-call {
    display: none;
  }

  .mobile-menu {
    display: none;
    position: sticky;
    top: 61px;
    z-index: 19;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem 0.9rem;
  }

  .mobile-menu.open {
    display: grid;
    gap: 0.35rem;
  }

  .mobile-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 700;
    padding: 0.45rem 0.2rem;
  }

  .install-prompt {
    width: min(92%, 460px);
    justify-content: space-between;
    border-radius: 14px;
  }
}
