/* CSS Custom Properties / Design Tokens */
:root {
  --bg-color: #0F172A;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --accent-color: #3B82F6;
  --accent-hover: #2563EB;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.25);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --max-width-desktop: 600px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color); /* Ensure full viewport color */
  overscroll-behavior-y: none; /* Prevents rubber-banding bounce beyond top/bottom */
  height: 100%;
}

body {
  /* Subtle dark navy gradient */
  background: radial-gradient(circle at 50% 30%, #1E293B 0%, #0F172A 80%);
  background-attachment: fixed;
  background-color: var(--bg-color);
  overscroll-behavior-y: none; /* Disable overscroll bounce on body */
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 4rem; /* Additional breathing room */
}

/* Premium Ambient Moving Background (Subtle Texture & Depth) */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 45%);
  animation: ambientGlow 25s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambientGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, -3%) scale(1.06);
  }
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Header Styles with Spacing */
.header {
  width: 100%;
  padding: 0 2rem 1.5rem 2rem; /* Flush at top */
  display: flex;
  justify-content: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .header {
    justify-content: flex-start;
    padding: 0 4rem 2rem 4rem; /* Flush at top */
  }
  .header-container {
    justify-content: flex-start;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  outline: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.9;
}

.logo-img {
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.text-accent {
  color: var(--accent-color);
}

/* Main Content Layout with Spacing */
.main-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem 6rem 1.5rem; /* More breathing room */
}

.hero-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Premium Typography Hierarchy */
.headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.5rem); /* Slightly larger */
  line-height: 1.08; /* Tighter line height */
  letter-spacing: -0.04em; /* Tighter kerning */
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 1.5rem; /* More breathing room */
}

.headline-blue {
  color: var(--accent-color);
}

.headline-underline {
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.headline-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.headline-checkmark {
  color: var(--accent-color);
  margin-left: 6px;
  font-size: 0.95em;
  vertical-align: baseline;
  display: inline-block;
}

.supporting-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3.5rem; /* More breathing room */
}

/* Video Player Container (Premium Border, Glow & Pop on Hover) */
.video-wrapper {
  width: 100%;
  max-width: var(--max-width-desktop);
  aspect-ratio: 16 / 9;
  background-color: #020617;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px -10px rgba(59, 130, 246, 0.08); /* Soft ambient glow */
  margin-bottom: 4rem; /* More breathing room */
  position: relative;
  transition: 
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -5px rgba(59, 130, 246, 0.22); /* Enhanced glow on hover */
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: none;
  background-color: #020617;
}

/* Main Call to Action Button with Hover Shimmer & Glow */
.cta-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  background-color: var(--accent-color);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: 
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), /* Springy hover pop */
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-large {
  font-size: 1.125rem;
  padding: 1.125rem 2.75rem;
  min-height: 3.5rem;
  width: 100%;
  max-width: 290px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Shimmer flare reflection effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.6), 
    0 0 50px rgba(59, 130, 246, 0.2); /* Light hover glow */
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* Sticky CTA Bottom Bar (Mobile Only) */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -15px 30px -5px rgba(0, 0, 0, 0.6);
  z-index: 100;
  
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: 
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.sticky-cta-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-sticky {
  width: 100%;
  font-size: 1.125rem;
  padding: 0.95rem 2rem;
  min-height: 3.25rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Micro-interactions: Fade-in on load */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lead Capture Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #131C31;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px -10px rgba(59, 130, 246, 0.12);
  animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: scale(1.05);
}

.modal-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin: 0.5rem 0 1.75rem 0;
}

.modal-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.06);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.form-group select option {
  background-color: #131C31;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.form-error {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #F87171;
  margin: -0.4rem 0 1rem 0;
}

.modal-submit {
  width: 100%;
  max-width: none;
  margin-top: 0.25rem;
}

.modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Modal Success State */
.modal-success {
  text-align: center;
  padding: 1rem 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-check {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-color);
  font-size: 1.75rem;
  font-weight: 700;
}

.success-message {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.modal-success .btn {
  width: 100%;
  max-width: none;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .sticky-cta-bar {
    display: block;
  }

  .main-content {
    padding: 1rem 1.25rem 5rem 1.25rem;
  }

  .modal-box {
    padding: 2.25rem 1.25rem 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .modal-overlay {
    padding: 1rem;
  }
}
