:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #0ea5e9;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.logo span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  font-size: 0.9rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: #334155;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--secondary);
  background: #eff6ff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  border-color: #bfdbfe;
  color: var(--secondary);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--secondary);
  border-radius: 8px;
  color: #fff;
  background: var(--secondary);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.btn-small {
  min-height: 42px;
  padding: 0 16px;
}

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

.btn-light:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline {
  color: var(--secondary);
  background: #fff;
}

.menu-toggle,
.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(620px, 82vh, 820px);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero > img,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.54) 48%, rgba(15, 23, 42, 0.12));
}

.hero-content {
  width: min(680px, calc(100% - 32px));
  margin-left: clamp(16px, 8vw, 112px);
  padding: 92px 0 70px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.96;
  color: #fff;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions,
.trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-badges span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.section {
  padding: clamp(70px, 8vw, 112px) clamp(16px, 4vw, 64px);
}

.section-tint {
  background: #eef6ff;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.split-content h2,
.testimonial-content h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.category-grid,
.plan-grid,
.insight-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.image-card,
.plan-card,
.insight-card,
.value-grid article,
.contact-card,
.contact-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.image-card {
  min-height: 310px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.image-card img,
.plan-card img,
.insight-card img {
  aspect-ratio: 16 / 11;
}

.image-card div,
.card-body,
.insight-card div,
.value-grid article {
  padding: 22px;
}

.image-card h3,
.plan-card h3,
.insight-card h3,
.trust-list h3,
.value-grid h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.plan-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 8vw, 112px) clamp(16px, 7vw, 96px);
  background: #fff;
}

.split-media {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-content p:not(.eyebrow) {
  margin-top: 16px;
}

.trust-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.trust-list article {
  padding: 20px;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  background: #f8fafc;
}

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: var(--primary);
}

.testimonials > img {
  min-height: 470px;
}

.testimonial-content {
  padding: clamp(46px, 7vw, 88px);
}

.testimonial-content h2 {
  color: #fff;
}

.quote-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

blockquote {
  margin: 0;
  padding: 24px;
  border-radius: 8px;
  color: #e5efff;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.65;
}

cite {
  display: block;
  margin-top: 14px;
  color: #93c5fd;
  font-style: normal;
  font-weight: 800;
}

.cta-banner {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.78);
}

.cta-banner h2 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 34px;
  padding: 48px clamp(16px, 5vw, 72px);
  color: #cbd5e1;
  background: var(--primary);
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 10px;
  color: #cbd5e1;
}

.site-footer p {
  max-width: 430px;
  margin-top: 14px;
  color: #cbd5e1;
}

.footer-logo {
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 110px 16px 72px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.72);
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px auto 0;
  color: #dbeafe;
}

.plans-list {
  display: grid;
  gap: 22px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.wide-plan {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.wide-plan img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.wide-plan h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.wide-plan p {
  margin: 10px 0 18px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.stat-row span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.stat-row strong {
  display: block;
  color: var(--secondary);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 1.6rem;
}

.value-grid article {
  padding: 0;
}

.value-grid img {
  aspect-ratio: 16 / 10;
}

.value-grid h3,
.value-grid p {
  padding: 0 22px;
}

.value-grid h3 {
  padding-top: 22px;
}

.value-grid p {
  padding-bottom: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(64px, 8vw, 96px) auto;
}

.contact-card,
.contact-form {
  padding: 28px;
}

.contact-card img {
  height: 260px;
  margin-top: 26px;
  border-radius: 8px;
}

.contact-email {
  display: inline-flex;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-weight: 800;
  color: var(--primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .desktop-cta {
    display: none;
  }

  .mobile-panel {
    position: fixed;
    top: 76px;
    right: 16px;
    z-index: 30;
    width: min(310px, calc(100vw - 32px));
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .mobile-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel a {
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    color: var(--primary);
  }

  .mobile-panel a:hover {
    background: #eff6ff;
    color: var(--secondary);
  }

  .category-grid,
  .plan-grid,
  .insight-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .testimonials,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-media,
  .testimonials > img {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }

  .logo {
    gap: 8px;
    font-size: 0.98rem;
  }

  .site-header .logo span:last-child {
    font-size: 0;
  }

  .site-header .logo span:last-child::after {
    content: "PolicyShield";
    font-size: 0.94rem;
  }

  .logo-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .mobile-panel {
    top: 68px;
    right: 12px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.9));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding-top: 120px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .hero-actions .btn {
    flex: 1 1 150px;
  }

  .trust-badges {
    align-items: stretch;
  }

  .trust-badges span {
    flex: 1 1 100%;
    text-align: center;
  }

  .category-grid,
  .plan-grid,
  .insight-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 14px;
  }

  .split-section {
    padding: 58px 14px;
  }

  .split-media,
  .testimonials > img {
    min-height: 300px;
  }

  .testimonial-content {
    padding: 44px 16px;
  }

  .wide-plan {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wide-plan img {
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    min-height: 390px;
    padding-top: 96px;
  }

  .contact-section {
    width: calc(100% - 28px);
    margin: 54px auto;
  }

  .contact-card,
  .contact-form {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }
}

@media (max-width: 360px) {
  .logo {
    font-size: 0.82rem;
    gap: 6px;
  }

  .site-header .logo span:last-child::after {
    font-size: 0.82rem;
  }

  .logo-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 4px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .hero-actions .btn,
  .mobile-panel .btn,
  .contact-form .btn {
    width: 100%;
    flex-basis: 100%;
    padding: 0 14px;
  }
}
