:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #5f6b7a;
  --primary: #1246a5;
  --accent: #1f9e88;
  --shadow: 0 16px 36px rgba(13, 38, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  background: radial-gradient(circle at 20% 0%, #dce9ff, #f6f9fc 54%);
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  border-radius: 10px;
  min-width: 210px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cta-link,
.btn.primary {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2.4rem;
}

.tag {
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero-card,
.card,
.quote-form {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #bfd2fb;
  color: var(--primary);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #eaf0fb;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.steps {
  display: grid;
  gap: 0.6rem;
  padding-left: 1rem;
}

.quote-form {
  display: grid;
  gap: 0.9rem;
  max-width: 650px;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  border: 1px solid #ccd8ec;
  border-radius: 10px;
  padding: 0.8rem;
  font: inherit;
}

.footer {
  background: #0f1f36;
  color: #d7e1ef;
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    border: none;
    background: transparent;
    font-size: 1.4rem;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 4%;
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 0.8rem;
    width: min(280px, 90vw);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    padding: 0.4rem 0 0.2rem 0.8rem;
  }

  .hero,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}