* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --bg2: #0f172a;
  --card: #111c2f;
  --card2: #08111f;
  --line: rgba(148, 163, 184, 0.20);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --green: #22c55e;
  --green2: #4ade80;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b1324;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.15);
  overflow: hidden;
}

.logo-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.logo-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 10px;
  right: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.logo-sweep {
  position: absolute;
  width: 26px;
  height: 26px;
  left: 13px;
  top: 13px;
  border-top: 3px solid var(--green);
  border-right: 3px solid var(--green);
  border-radius: 0 100% 0 0;
  transform: rotate(42deg);
}

.brand-name {
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.brand-name span {
  color: white;
}

.brand-name strong {
  color: var(--green);
}

.brand-tagline {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.20em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover {
  color: white;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 96px;
  background:
    radial-gradient(circle at 72% 20%, rgba(34, 197, 94, 0.16), transparent 34%),
    radial-gradient(circle at 22% 84%, rgba(37, 99, 235, 0.15), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0f172a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.7) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.eyebrow,
.section-heading span,
.section-kicker {
  display: inline-flex;
  color: #86efac;
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

h1 {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 21px;
  line-height: 1.55;
}

.hero-search-card {
  width: 100%;
  max-width: 680px;
  margin-top: 34px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(34, 197, 94, 0.30);
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.28);
}

.hero-search-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero-search-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.zip-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.zip-search-form input {
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #06101f;
  color: white;
  font-size: 20px;
  font-weight: 850;
  outline: none;
}

.zip-search-form input::placeholder {
  color: #64748b;
}

.zip-search-form input:focus {
  border-color: rgba(34, 197, 94, 0.78);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
}

.zip-search-form button,
.primary-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #04111c;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.22);
}

.zip-search-form button:hover,
.primary-link:hover {
  background: var(--green2);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #bbf7d0;
  font-weight: 900;
}

.text-link:hover {
  color: white;
}

/* SNAPSHOT */
.snapshot-card {
  position: relative;
  padding: 24px;
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 30px 95px rgba(0, 0, 0, 0.38);
}

.snapshot-card::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  border-radius: 44px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.20), transparent 68%);
  filter: blur(8px);
}

.snapshot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.snapshot-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.snapshot-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.snapshot-header span {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 12px;
  font-weight: 950;
}

.snapshot-rates {
  display: grid;
  gap: 12px;
  padding: 20px 0;
}

.snapshot-rates div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #08111f;
  border: 1px solid var(--line);
}

.snapshot-rates span {
  color: var(--muted);
  font-weight: 850;
}

.snapshot-rates strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.trend-card {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #06101f;
}

.trend-card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trend-card path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
}

.trend-card p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* SECTIONS */
.feature-section,
.info-section,
.methodology-section {
  padding: 86px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading h2,
.split h2,
.methodology-card h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article,
.steps-card,
.methodology-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-grid p,
.split p,
.methodology-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.info-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.44);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.steps-card {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--card2);
  border: 1px solid var(--line);
}

.step strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #04111c;
  flex: 0 0 auto;
}

.step span {
  font-weight: 900;
}

.methodology-card {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.methodology-card .primary-link {
  margin-top: 20px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060d18;
  padding: 30px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.footer-links a:hover {
  color: white;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding: 62px 0;
  }

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

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

  .snapshot-card {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 22px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .zip-search-form {
    grid-template-columns: 1fr;
  }

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

  .snapshot-header,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
