
:root {
  --blue: #0b2c5f;
  --blue-2: #0e4aa7;
  --text: #0e1626;
  --bg: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --accent: #f5c842;
  --accent-secondary: #ff6b6b;
  --purple: #8b5cf6;
  --shadow: 0 10px 40px rgba(11, 44, 95, 0.15);
  --shadow-sm: 0 2px 12px rgba(11, 44, 95, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 200, 66, 0.1) 0%, transparent 50%),
    linear-gradient(to bottom, #ffffff, #fafafa);
}

.container { width: min(1100px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem 1rem; background: var(--blue); color: #fff; }

.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: rgba(255, 255, 255, 0.98); 
  border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.6s ease-out;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header:hover { box-shadow: var(--shadow); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; align-items: center; gap: 1rem; padding: .75rem 0; }
.brand { 
  grid-area: brand; 
  display: inline-flex; 
  align-items: center; 
  gap: .875rem; 
  text-decoration: none; 
  color: var(--text); 
  font-weight: 700; 
  font-size: 1.125rem; 
  letter-spacing: -0.02em; 
  animation: slideInLeft 0.6s ease-out; 
  transition: all 0.3s ease; 
}
.brand:hover { transform: translateY(-2px); }
.brand span { display: flex; flex-direction: column; line-height: 1.3; }
.brand span:first-of-type {
  background: linear-gradient(135deg, var(--blue), var(--blue-2), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand .brand-tagline { 
  font-size: .8125rem; 
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  font-weight: 600; 
}
.nav { grid-area: nav; justify-self: center; }
.brand img { 
  border-radius: 10px; 
  width: 48px; 
  height: 48px; 
  flex-shrink: 0; 
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
  box-shadow: 0 2px 8px rgba(11, 44, 95, 0.1); 
}
.brand img:hover { transform: scale(1.15) rotate(8deg); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); }

.nav-toggle { display: none; }
.nav-menu { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0; align-items: center; position: relative; z-index: 1000; }
.nav-link { 
  text-decoration: none; 
  color: var(--text); 
  padding: .75rem 1.25rem; 
  border-radius: 10px; 
  font-size: 1rem; 
  font-weight: 600; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  overflow: visible; 
  animation: fadeIn 0.8s ease-out; 
  animation-fill-mode: both;
  display: inline-block;
  z-index: 1;
}
.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link::before { 
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 0; 
  height: 3px; 
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, var(--accent)); 
  transition: width 0.4s ease; 
  border-radius: 2px; 
  pointer-events: none;
  z-index: -1;
}
.nav-link:hover::before, .nav-link.active::before { width: 100%; }
.nav-link:hover, .nav-link.active { 
  transform: translateY(-2px) scale(1.02); 
  box-shadow: var(--shadow);
}
.nav-link:hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  z-index: -1;
}
/* Inline logo in nav menu */
.nav-logo img { width: 24px; height: 24px; display: block; border-radius: 6px; }

/* Dropdown (desktop) */
.has-submenu { position: relative; }
.submenu-toggle { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; background: transparent; border: none; font: inherit; color: var(--text); padding: .45rem .6rem; border-radius: 999px; }
.submenu-toggle:hover, .has-submenu.open .submenu-toggle { background: #f3f4f6; }
.submenu-toggle::after { content: '▾'; font-size: .8em; }
.submenu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .4rem; margin: 0; list-style: none; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 1001; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: grid; gap: .25rem; }
.submenu .nav-link { display: block; padding: .5rem .6rem; border-radius: 8px; }
.submenu .nav-link:hover, .submenu .nav-link.active { background: #f3f4f6; }

.header-cta { grid-area: cta; display: flex; gap: .5rem; justify-self: end; }
.nav-link, .header-cta .btn { white-space: nowrap; min-width: max-content; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-cta .btn { padding: .5rem .85rem; font-size: .95rem; }
.btn-primary { 
  background: var(--blue); 
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 44, 95, 0.4);
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(11, 44, 95, 0.3);
}
.btn-outline { 
  color: var(--blue); 
  border-color: var(--blue);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.btn-outline:hover {
  color: white;
  border-color: var(--blue-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 44, 95, 0.3);
}
.btn-outline:hover::before {
  transform: scaleX(1);
}
.btn-outline:active {
  transform: translateY(0);
}
.btn-light { 
  background: #fff; 
  color: var(--blue); 
  border-color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-light:hover {
  background: #f8f9fa;
  border-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 44, 95, 0.2);
  color: var(--blue-2);
}
.btn-light:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(11, 44, 95, 0.15);
}
.btn-ghost { 
  background: transparent; 
  color: var(--blue);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--blue);
  transform: translateY(-2px);
}
.btn-ghost:hover::before { opacity: 1; }

.cta-bar { 
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--purple));
  color: #fff; 
  position: relative;
  overflow: hidden;
}
.cta-bar::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(800px 300px at 90% 50%, rgba(245, 200, 66, 0.15), transparent 60%); 
  pointer-events: none; 
}
.cta-bar-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
  padding: .5rem 0; 
  position: relative; 
  z-index: 1; 
}
.cta-bar a { color: #fff; }
.cta-bar strong {
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* prevent pill clipping in blue bar */
.cta-bar .actions, .cta-bar .cta-bar-actions { display: flex; gap: .5rem; flex-wrap: nowrap; }
.cta-bar .btn { line-height: 1.1; min-width: max-content; overflow: visible; }
.cta-bar .btn-light { 
  background: #fff; 
  color: var(--blue); 
  border: 2px solid #fff; 
  transition: all 0.3s ease;
}
.cta-bar .btn-light:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.4);
}

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; padding: 3rem 0; align-items: center;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  background: linear-gradient(135deg, #0b2c5f 0%, #0e4aa7 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 { 
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem); 
  line-height: 1.1; 
  margin: 0 0 .75rem; 
}
.hero p.lead { font-size: 1.125rem; color: #374151; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.05); }

.full-bleed-center { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; display: flex; justify-content: center; padding-top: .75rem; }
.hero-image-row { 
  display: flex; 
  justify-content: center; 
  padding-top: .75rem; 
  position: relative;
  transform-style: preserve-3d;
}
.hero-image { 
  width: 80%; 
  height: 50vh; 
  max-width: 100%; 
  object-fit: cover; 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  display: block;
  animation: scaleIn 1s ease-out, float 6s ease-in-out infinite 1s;
  box-shadow: 0 20px 60px rgba(11, 44, 95, 0.2);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}
.hero-image:hover {
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.3);
  transform: scale(1.02);
}
@media (max-width: 640px) {
  .hero-image { width: 100%; height: 40vh; }
}
main {
  position: relative;
}
.hero-image-gap { margin-bottom: 64px; }

/* Responsive embed container for iframes (Google Forms, etc.) */
.embed-form { width: 100%; }
.embed-form .iframe-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed-form iframe { width: 100%; height: clamp(520px, 70vh, 800px); display: block; border: 0; }
@media (max-width: 900px) {
  .embed-form iframe { height: clamp(480px, 68vh, 720px); }
}
@media (max-width: 640px) {
  .embed-form iframe { height: clamp(420px, 62vh, 640px); }
}

/* Variant: taller Google Form embed */
.embed-form--tall iframe { height: 2088px; }
@media (max-width: 900px) {
  .embed-form--tall iframe { height: 1600px; }
}
@media (max-width: 640px) {
  .embed-form--tall iframe { height: 1200px; }
}
@media (max-width: 640px) {
  .hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
  }
}

.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem;
}
.grid-3 .card {
  animation-delay: calc(var(--i, 0) * 0.1s);
}
.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;
}
.grid-2 .card {
  animation-delay: calc(var(--i, 0) * 0.15s);
}
.section { 
  padding: 3rem 0; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.section h2 { 
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); 
  margin: 0 0 1rem; 
}
.card { 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1rem; 
  background: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: rgba(59, 130, 246, 0.3);
}
.icon { 
  width: 56px; 
  height: 56px; 
  border-radius: 14px; 
  background: #eff6ff; 
  display: grid; 
  place-items: center; 
  margin-bottom: .5rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: rotateIn 0.8s ease-out;
}
.icon:hover {
  transform: rotate(10deg) scale(1.15);
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.icon img {
  transition: transform 0.3s ease;
}
.icon:hover img {
  transform: scale(1.2);
}
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { background: #eef2ff; color: var(--blue); border-radius: 999px; padding: .25rem .6rem; font-size: .85rem; }

.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.kpi { 
  background: #f9fafb; 
  border-radius: var(--radius); 
  padding: 1rem; 
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}
.kpi:hover::before {
  left: 100%;
}
.kpi:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}
.kpi strong { 
  display: block; 
  font-size: 1.75rem; 
  background: linear-gradient(135deg, var(--blue), var(--blue-2), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}
.kpi strong:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.form { display: grid; gap: .75rem; }
.form .row { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.input, select, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; }
label { font-weight: 600; font-size: .95rem; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.banner { 
  background: linear-gradient(90deg, var(--blue), var(--blue-2)); 
  color: #fff; 
  border-radius: var(--radius); 
  padding: 1.25rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s ease-out;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 44, 95, 0.4);
}
.banner .actions { 
  display: flex; 
  gap: .5rem; 
  position: relative;
  z-index: 1;
}
.banner .actions .btn {
  position: relative;
  z-index: 2;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: .75rem; text-align: left; }
.table th { background: #f9fafb; }

/* Accordion */
.accordion { display: grid; gap: .5rem; }
.accordion-group { margin-top: 1rem; }
.accordion h2, .accordion h3 { margin: 1rem 0 .5rem; color: var(--blue); }
.accordion-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.accordion-trigger {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; padding: .85rem 1rem; background: #fff; border: none; font: inherit; cursor: pointer;
}
.accordion-trigger:hover { background: #f9fafb; }
.accordion-trigger .label { font-weight: 600; }
.accordion-trigger .chevron { transition: transform .2s ease; }
.accordion-item[open] .chevron { transform: rotate(180deg); }
.accordion-panel { padding: 0 1rem 1rem; }
.accordion-panel p { margin: .25rem 0 0; }

.site-footer { 
  border-top: 1px solid var(--border); 
  margin-top: 3rem; 
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2rem 0; }
.brand-footer { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.list a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.3s ease;
}
.list a:hover::after {
  width: 100%;
}
.list a:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--border); }

.hero-form { display: grid; gap: .75rem; }
.hero-form .row { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }

/* Testimonial Slider */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  animation: fadeIn 1s ease-out;
}
.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
  min-width: 100%;
  padding: 2rem;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: fadeIn 1s ease-out 0.5s both;
}
.slider-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}
.slider-btn:hover {
  background: var(--blue-2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(11, 44, 95, 0.4);
}
.slider-btn:active {
  transform: scale(0.95);
}
.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.slider-nav {
  display: flex;
  gap: 0.5rem;
}
.slider-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-nav button {
  transition: all 0.3s ease;
}
.slider-nav button:hover {
  transform: scale(1.3);
  background: var(--blue-2);
}
.slider-nav button.active {
  background: var(--blue);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(11, 44, 95, 0.3);
}
blockquote.testimonial {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border-left: 4px solid;
  border-image: linear-gradient(135deg, var(--blue), var(--purple)) 1;
  padding: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
}
blockquote.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(139, 92, 246, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}
blockquote.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bg: #0f172a;
  --text: #f1f5f9;
  --border: rgba(255, 255, 255, 0.1);
  --muted: #94a3b8;
}
[data-theme="dark"] .nav-menu { background: #0b1220; border-color: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .nav-link { color: #e5e7eb; }
[data-theme="dark"] .submenu { background: #0b1220; border-color: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .submenu .nav-link:hover, [data-theme="dark"] .submenu .nav-link.active { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 200, 66, 0.15) 0%, transparent 50%),
    linear-gradient(to bottom, #0f172a, #1e293b);
}
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .brand span:first-of-type {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .card,
[data-theme="dark"] .hero-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .kpi {
  background: #1e293b;
}
[data-theme="dark"] .kpi strong {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .site-footer {
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  border-top-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cta-bar strong {
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* First section should be visible on load */
.section:first-of-type {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInDown 0.8s ease-out;
}

/* Page load animations */
@keyframes pageLoad {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

body {
  animation: pageLoad 0.6s ease-out;
}

/* Input focus animations */
.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .5rem; position: absolute; right: 4%; top: 64px; width: min(360px, 92%); z-index: 1002; }
  .nav-menu.open { display: flex; }
  /* Mobile submenu layout */
  .has-submenu { position: static; }
  .submenu { position: static; border: none; box-shadow: none; padding: 0 .25rem .25rem; margin-left: .25rem; }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open .submenu { display: grid; gap: .25rem; }
}

/* Collapse nav earlier to prevent wrapping */
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .5rem; position: absolute; right: 4%; top: 64px; width: min(360px, 92%); z-index: 1002; }
  .nav-menu.open { display: flex; }
  /* Ensure mobile submenu behavior at this breakpoint as well */
  .has-submenu { position: static; }
  .submenu { position: static; border: none; box-shadow: none; padding: 0 .25rem .25rem; margin-left: .25rem; }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open .submenu { display: grid; gap: .25rem; }
}

/* Estimator CTA layout improvements */
@media (max-width: 1100px) {
  .hero-card .banner { flex-wrap: wrap; }
  .hero-card .banner .actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .hero-card .banner .actions { justify-content: stretch; }
  .hero-card .banner .actions .btn { flex: 1 1 auto; text-align: center; }
}
