/* 
  Go For SIP - Main Styles
  Colors: White (base), Blue (trust), Orange (accent)
  Fonts: Inter (body), Poppins (headings)
*/

:root {
  --bg: #ffffff;
  --fg: #0f172a; /* slate-900 */
  --muted: #64748b; /* slate-500 */
  --blue: #0b5ed7; /* trust */
  --blue-600: #0a58ca;
  --orange: #ff6a00; /* accent */
  --orange-600: #e65f00;
  --border: #e2e8f0;
  --card: #f8fafc;
  --success: #16a34a;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem .75rem;
  background: #000;
  color: #fff;
  z-index: 10000;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.header.simple {
  justify-content: space-between;
}
.logo {
  height: 40px;
}
.logo.small {
  height: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.nav {
  margin-left: auto;
}
.nav-toggle {
  display: none;
}
.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.menu a {
  padding: .5rem .25rem;
  font-weight: 500;
}
.has-sub {
  position: relative;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: none;
  min-width: 240px;
  padding: .5rem 0;
  z-index: 50;
}
.has-sub:hover .submenu {
  display: block;
}
.submenu a {
  display: block;
  padding: .5rem .75rem;
}

.header-form {
  display: flex;
  gap: .5rem;
  margin-left: 1rem;
}
.header-form input {
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.header-form .btn {
  height: 40px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: stretch;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.hero-video-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 0 8px rgba(255, 106, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
}
.hero-ctas {
  display: flex;
  gap: .75rem;
}

.counters {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}
.counter .count {
  font-size: 2rem;
  font-weight: 700;
}
.counter .label {
  opacity: 0.9;
}

.section {
  padding: 3rem 1rem;
}
.section-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.75rem;
  margin: .25rem 0 1rem;
  letter-spacing: .2px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  transition: transform .2s ease;
}
.card:hover {
  transform: translateY(-2px);
}
.bullets {
  margin: 0;
  padding-left: 1.1rem;
}
.bullets li {
  margin: .35rem 0;
}

.sip-teaser .teaser-actions {
  margin-top: .5rem;
}

.carousel {
  position: relative;
  overflow: hidden;
}
.carousel .slides {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
}
.slide {
  min-width: 100%;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
}
.dots button.active {
  background: var(--blue);
}

.partners {
  margin-top: 1rem;
  overflow: hidden;
}
.logos-track {
  display: flex;
  gap: 2rem;
  animation: scrollx 30s linear infinite;
  align-items: center;
}
@keyframes scrollx {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.lead-cta .cta-wrap {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: #0b1220;
  color: #cbd5e1;
}
.footer .logo {
  filter: brightness(10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 1rem;
  padding: 2rem 1rem;
}
.footer .list {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
}
.footer .list li {
  margin: .35rem 0;
}
.footer a {
  color: #e2e8f0;
}
.footer-bottom {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 0 12px rgba(11, 94, 215, 0.35);
}
.btn-accent {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn-accent:hover {
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.45);
}
.btn-outline {
  background: transparent;
  border-color: #cbd5e1;
  color: white;
}
.btn-small {
  height: 36px;
  padding: 0 .75rem;
}

.link {
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.lead-form input,
.lead-form select {
  height: 44px;
  padding: 0 .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
}
.lead-form.footer-form {
  grid-template-columns: 1fr 1fr 1fr auto;
}
.cta-wrap .lead-form {
  grid-template-columns: repeat(4, 1fr);
}

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

.results.hidden {
  display: none;
}
.chart-wrap {
  height: 360px;
  margin-top: 1rem;
}
.calc-page .stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.lightbox[aria-hidden="false"] {
  display: flex;
}
.lightbox-content {
  max-width: 960px;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.lightbox-close {
  position: absolute;
  right: .5rem;
  top: .25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

/* Cursor Trail Canvas */
#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  display: block;
}

/* Thank You modal */
#thanks-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
#thanks-modal.open {
  display: block;
}
#thanks-modal .tm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
#thanks-modal .tm-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  color: var(--fg);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  outline: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
#thanks-modal .tm-close {
  position: absolute;
  right: .5rem;
  top: .25rem;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lead-form {
    grid-template-columns: 1fr 1fr;
  }
  .header-form {
    display: none;
  }
}
@media (max-width: 640px) {
  .menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 64px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .5rem;
    flex-direction: column;
    min-width: 280px;
  }
  .nav-toggle {
    display: inline-flex;
    height: 40px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0 .75rem;
    border-radius: 8px;
  }
  .grid-three {
    grid-template-columns: 1fr;
  }
  .grid-four {
    grid-template-columns: 1fr;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .lead-form.footer-form {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 60vh;
  }
  .counters {
    gap: 1rem;
  }
}
