:root {
  --primary: #1d4ed8;
  --secondary: #22c55e;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.35;
}

body::before {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.5), transparent 70%);
}

body::after {
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.45), transparent 70%);
}

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

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

ul {
  list-style: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 24px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-list a {
  padding: 6px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

main {
  padding-bottom: 60px;
}

.section {
  padding: 80px 0;
}

.section.muted {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 680px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  color: var(--text-secondary);
}

.lead {
  font-size: 1.1rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.two-column {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracking-section {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tracking-section .media {
  width: min(100%, 520px);
  justify-self: center;
}

.tracking-section:last-child {
  border-bottom: none;
}

.checklist {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--text-secondary);
  list-style: disc;
}

.page-hero {
  padding: 70px 0 40px;
}

.page-hero .lead {
  max-width: 620px;
}

.insights-controls {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 32px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.insight-card .card-body {
  gap: 10px;
}

.link-button {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: fit-content;
}

.accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.accordion.is-open {
  opacity: 1;
}

.disclaimer {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 24px;
  border-radius: 16px;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--text-primary);
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  color: #b91c1c;
  font-size: 0.85rem;
  min-height: 18px;
}

.form-success {
  margin-top: 16px;
  color: var(--secondary);
  font-weight: 700;
}

.site-footer {
  padding: 50px 0 40px;
  background: var(--surface);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

@media (max-width: 980px) {
  .hero,
  .two-column,
  .tracking-section {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.three,
  .card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 16px 0;
    align-items: center;
  }

  body.menu-open .primary-nav {
    max-height: 320px;
    opacity: 1;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 560px) {
  .card-grid.four,
  .card-grid.three,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
