:root {
  --storm-gray: #3D4349;
  --droplet-blue: #1E9BFF;
  --light-gray: #F5F7F9;
  --mist-white: #FFFFFF;
  --slate-blue: #4D6C8C;
  --success-green: #2FBF71;
  --warning-amber: #FFC845;
  --fail-red: #E94B3C;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--mist-white);
  color: var(--storm-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(61, 67, 73, 0.1);
  box-shadow: 0 8px 18px rgba(61, 67, 73, 0.08);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--storm-gray);
}

.logo-img {
  width: 150px;
  height: 75px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate-blue);
}

.nav-links a:hover {
  color: var(--storm-gray);
}

.cta {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: var(--droplet-blue);
  color: var(--mist-white);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 155, 255, 0.35);
}

.cta:hover {
  filter: brightness(0.95);
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(30, 155, 255, 0.08), transparent 50%),
              linear-gradient(180deg, var(--mist-white), var(--light-gray));
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--slate-blue);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.subtitle {
  color: rgba(61, 67, 73, 0.75);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-actions .primary,
.hero-actions .secondary,
.cta-banner .primary,
.cta-banner .secondary {
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.primary {
  background: var(--droplet-blue);
  color: var(--mist-white);
  box-shadow: 0 15px 35px rgba(30, 155, 255, 0.3);
}

.primary:hover {
  filter: brightness(0.95);
}

.secondary {
  background: rgba(77, 108, 140, 0.08);
  color: var(--storm-gray);
  border-color: rgba(77, 108, 140, 0.25);
}

.secondary:hover {
  border-color: rgba(77, 108, 140, 0.45);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.stats strong {
  font-size: 1.9rem;
  display: block;
  color: var(--droplet-blue);
}

.stats span {
  color: var(--slate-blue);
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  background: var(--mist-white);
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid rgba(61, 67, 73, 0.08);
  box-shadow: 0 30px 70px rgba(77, 108, 140, 0.18);
}

.hero-card img {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(61, 67, 73, 0.2);
}

.video-thumbnail-wrapper {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.video-thumbnail {
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  display: block;
  pointer-events: none;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(61, 67, 73, 0.3);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 10;
}

.video-thumbnail-wrapper:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}

.video-thumbnail-wrapper:hover .play-icon {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(245, 247, 249, 0.95);
  border: 1px solid rgba(61, 67, 73, 0.08);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  color: var(--storm-gray);
}

.card-overlay ul {
  list-style: none;
  color: rgba(61, 67, 73, 0.75);
  font-size: 0.9rem;
}

.features {
  padding: 5rem 0;
  background: var(--light-gray);
}

.features h2,
.insights h2,
.workflow h2,
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-grid article {
  background: var(--mist-white);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(61, 67, 73, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 30px rgba(77, 108, 140, 0.08);
}

.feature-grid p {
  color: rgba(61, 67, 73, 0.75);
}

.feature-grid article img {
  width: 328px;
  height: 425px;
  object-fit: cover;
}

.feature-grid article img.pdf-report-img {
  object-position: left center;
  box-shadow: 0 4px 12px rgba(61, 67, 73, 0.15);
}

.pricing {
  padding: 5rem 0;
  background: var(--mist-white);
}

.pricing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.pricing-toggle {
  display: flex;
  background: rgba(77, 108, 140, 0.08);
  border: 1px solid rgba(77, 108, 140, 0.25);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0;
  cursor: pointer;
  position: relative;
}

.toggle-option {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--storm-gray);
  transition: all 0.2s;
  user-select: none;
}

.toggle-option.active {
  background: var(--droplet-blue);
  color: var(--mist-white);
  box-shadow: 0 2px 8px rgba(30, 155, 255, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--mist-white);
  border: 2px solid rgba(61, 67, 73, 0.1);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 30px rgba(77, 108, 140, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px rgba(77, 108, 140, 0.12);
}

.pricing-card.featured {
  border-color: var(--droplet-blue);
  box-shadow: 0 25px 50px rgba(30, 155, 255, 0.15);
}

.pricing-card.featured:hover {
  box-shadow: 0 30px 60px rgba(30, 155, 255, 0.2);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--droplet-blue);
  color: var(--mist-white);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--storm-gray);
}

.pricing-amount {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--droplet-blue);
}

.pricing-amount .period {
  font-size: 1.1rem;
  color: rgba(61, 67, 73, 0.6);
  margin-left: 0.25rem;
}

.pricing-amount .billed {
  display: block;
  font-size: 0.85rem;
  color: rgba(61, 67, 73, 0.5);
  font-style: italic;
  margin-top: 0.25rem;
}

.pricing-amount-alt .period {
  font-size: 1.1rem;
  color: rgba(61, 67, 73, 0.6);
  margin-left: 0.25rem;
}

.pricing-amount-alt .billed {
  display: block;
  font-size: 0.85rem;
  color: rgba(61, 67, 73, 0.5);
  font-style: italic;
  margin-top: 0.25rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: rgba(61, 67, 73, 0.75);
  border-bottom: 1px solid rgba(61, 67, 73, 0.05);
  position: relative;
  padding-left: 1.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 1.2rem 1.9rem;
  border-radius: 12px;
  display: inline-block;
}

.workflow {
  padding: 5rem 0;
  background: var(--light-gray);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.steps div {
  background: var(--mist-white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 67, 73, 0.08);
  box-shadow: 0 15px 30px rgba(77, 108, 140, 0.08);
}

.steps span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 155, 255, 0.12);
  color: var(--droplet-blue);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.cta-banner {
  padding: 4rem 0;
}

.cta-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(120deg, rgba(30, 155, 255, 0.1), rgba(77, 108, 140, 0.08));
  border: 1px solid rgba(77, 108, 140, 0.15);
  border-radius: 28px;
  padding: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(61, 67, 73, 0.1);
  color: rgba(61, 67, 73, 0.75);
  background: var(--mist-white);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--mist-white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(61, 67, 73, 0.1);
  position: relative;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--storm-gray);
  padding-right: 2.5rem;
}

.legal-updated {
  color: rgba(61, 67, 73, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(61, 67, 73, 0.6);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(61, 67, 73, 0.1);
  color: var(--storm-gray);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(61, 67, 73, 0.1);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-close-btn {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: rgba(77, 108, 140, 0.08);
  color: var(--storm-gray);
  font-weight: 600;
  border: 1px solid rgba(77, 108, 140, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  border-color: rgba(77, 108, 140, 0.45);
  background: rgba(77, 108, 140, 0.12);
}

.legal-content {
  color: rgba(61, 67, 73, 0.85);
  line-height: 1.7;
}

.legal-content > p {
  margin-bottom: 1.25rem;
}

.legal-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--storm-gray);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--storm-gray);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--droplet-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--slate-blue);
}

.legal-subheading {
  font-weight: 600;
  color: var(--storm-gray);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Video Modal Styles */
.video-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  max-width: 1400px;
  width: 95%;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: videoModalFadeIn 0.3s ease-out;
}

@keyframes videoModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1002;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.video-modal-close svg {
  width: 20px;
  height: 20px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.vimeo-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
    padding-right: 2rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
  }

  .video-modal-content {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
  }

  .video-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .video-modal-close svg {
    width: 18px;
    height: 18px;
  }

  .video-wrapper {
    padding-bottom: 56.25%;
  }
}
