:root {
  --bg: #f7f9fc;
  --ink: #18212b;
  --muted: #4f5d6b;
  --panel: #ffffff;
  --border: #d8dde3;
  --accent: #1c6ed5;
  --accent-dark: #0b3d91;
  --soft-blue: #e8f1ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.section { padding: 1.5rem 0; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 66vw;
  max-width: 720px;
  min-width: 280px;
  aspect-ratio: 1;
  right: -12vw;
  top: -16%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 242, 185, 0.32) 0%, rgba(255, 242, 185, 0) 44%),
    radial-gradient(circle at 60% 60%, rgba(28, 110, 213, 0.26) 0%, rgba(28, 110, 213, 0) 68%);
  filter: blur(4px);
  animation: heroGlowDrift 20s ease-in-out infinite alternate;
}

@keyframes heroGlowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }
  100% {
    transform: translate3d(-3%, 3%, 0) scale(1.05);
    opacity: 1;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 252, 0.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.site-logo {
  height: 48px;
  width: auto;
}

.brand strong { display: block; font-size: 1.04rem; }
.brand span { color: var(--muted); font-size: 0.9rem; }

.hero-grid {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6.2vw, 3rem);
  line-height: 1.16;
  max-width: 20ch;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

h3 { margin: 0 0 0.25rem; }

.lead {
  margin: 0.55rem 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.98rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.82rem 1.18rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

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

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

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.hero-card,
.card,
.trust-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(11, 61, 145, 0.08);
}

.trust-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.hero-card {
  background: var(--soft-blue);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(28, 110, 213, 0.25) 0%, rgba(28, 110, 213, 0) 72%);
  pointer-events: none;
}

.trust-card li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.estimate-section {
  padding-top: 0.3rem;
  padding-bottom: 0.65rem;
}

.estimate-card h2 {
  margin-bottom: 0.7rem;
}

.estimate-form {
  display: grid;
  gap: 0.65rem;
}

.estimate-field {
  display: grid;
  gap: 0.28rem;
}

.estimate-field span {
  font-size: 0.86rem;
  color: var(--muted);
}

.estimate-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.68rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.estimate-field input:focus {
  outline: 2px solid rgba(28, 110, 213, 0.25);
  border-color: var(--accent);
}

.estimate-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.estimate-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-strip {
  padding-top: 0.3rem;
  padding-bottom: 0.65rem;
}

.trust-strip-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11, 61, 145, 0.06);
}

.steps,
.audience-grid {
  display: grid;
  gap: 0.85rem;
}

.card p,
.contact-card p,
.community-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.vi {
  font-style: italic;
}

.site-footer {
  padding: 1.6rem 0 2.1rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 0.3rem;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-copy,
.hero-visual {
  opacity: 0;
  transform: translateY(14px);
}

body.is-loaded .hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

body.is-loaded .hero-visual {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 740ms ease 120ms, transform 740ms ease 120ms;
}

@media (max-width: 768px) {
  .site-logo {
    height: 36px;
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .brand {
    justify-content: center;
  }

  h1 {
    font-size: clamp(1.45rem, 6vw, 2.1rem);
  }

  .hero-copy .btn {
    width: 100%;
    font-size: 1.02rem;
    padding: 0.92rem 1.2rem;
    margin-top: 0.2rem;
  }

  .card,
  .trust-card,
  .hero-card {
    padding: 0.95rem;
  }

  .section {
    padding: 1.25rem 0;
  }

  .hero::before {
    width: 96vw;
    right: -38vw;
    top: -22%;
    filter: blur(3px);
  }

  .trust-strip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
  }

  .estimate-card {
    padding: 1rem;
  }
}

@media (min-width: 768px) and (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.25);
  }

  .card:hover,
  .trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(11, 61, 145, 0.14);
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 1.3rem;
  }

  .section {
    padding: 2rem 0;
  }

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

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

  .estimate-form {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
    gap: 0.7rem;
  }

  .estimate-submit {
    width: auto;
    min-width: 220px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-copy,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero::before {
    animation: none !important;
  }
}
