/*


 */

html {
  overscroll-behavior: none; /* Prevent scroll bouncing */
}

:root {
  --screen-sm: 480px;
  --screen-md: 768px;
  --screen-lg: 992px;

  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  --color-on-white: #333333;
  --color-on-black: #FFFFFF;
  --color-orange: #F5A623;
  --color-orange-dark: #E6951D;

  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DC;
  --color-gray-400: #99A1AF;
  --color-gray-500: #6A7282;
  --color-gray-600: #4A5565;
  --color-gray-700: #364153;
  --color-gray-800: #1E2939;
  --color-gray-900: #101828;
  --color-gray-950: #030712;

  --background-transparent: rgba(255, 255, 255, 0.2);
  --background-white: white;
  --background-blue: #1E3A5F;
  --background-blue-2: #25477B;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-white);
  color: var(--color-on-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overscroll-behavior: none; /* Prevent scroll chaining to parent elements */
}

.main-content {
  flex: 1;
  padding-top: var(--header-height); /* Use the header height variable */
  position: relative; /* Ensure proper positioning */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  flex: 1;
}

.btn-primary {
  background-color: var(--color-orange);
  color: white;
  border: none;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-on-black);
  border: 2px solid var(--color-on-black);
}

.btn-secondary:hover {
  background-color: var(--background-transparent);
}

.hover-raise:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}
/***************************************
 * TABLE OF CONTENTS
 *
 * 1. General Styles
 * 2. Hero Section
 * 3. Features Section
 * 4. Video Showcase
 * 5. Alternative Features Section
 * 6. Form Elements
 * 7. Animations
 * 8. Responsive Styles
 *    8.1 Large Devices (992px and below)
 *    8.2 Medium Devices (768px and below)
 *    8.3 Small Devices (576px and below)
 *    8.4 Extra Small Devices (375px and below)
 ***************************************/

/***************************************
 * 1. GENERAL STYLES
 ***************************************/
section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background-color: var(--color-gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-orange);
  margin: 25px auto 0;
  border-radius: 2px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-gray-900);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--color-orange);
  padding: 0.5em 1em;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5em;
  letter-spacing: 0.5px;
}

/***************************************
 * 2. HERO SECTION
 ***************************************/
.hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #25477B 100%);
  color: white;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Background image removed - should be added using asset pipeline */
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 2.5rem;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-form {
  flex: 0 0 400px;
}

.demo-form-container {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

/***************************************
 * 3. FEATURES SECTION
 ***************************************/
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.feature-icon i {
  font-size: 24px;
  color: var(--color-orange);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-gray-900);
}

.feature-description {
  color: var(--color-gray-600);
  line-height: 1.6;
  flex-grow: 1;
}

.feature-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--color-orange);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feature-link:hover {
  color: var(--color-orange-dark);
}

.feature-link i {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.feature-link:hover i {
  transform: translateX(5px);
}

/***************************************
 * 4. VIDEO SHOWCASE
 ***************************************/
.video-showcase {
  background-color: var(--color-gray-900);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.video-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Background image removed - should be added using asset pipeline */
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.video-showcase .section-header::after {
  background: var(--color-orange);
}

.video-showcase .section-title {
  color: white;
}

.video-showcase .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.video-container {
  position: relative;
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-container video {
  width: 100%;
  display: block;
}

.video-placeholder {
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--color-orange);
  margin-bottom: 20px;
}

.video-placeholder span {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/***************************************
 * 5. ALTERNATIVE FEATURES SECTION
 ***************************************/
.features-alt {
  padding: 120px 0;
}

.features-list-alt {
  margin-top: 60px;
}

.feature-item-alt {
  display: flex;
  align-items: center;
  margin-bottom: 100px;
}

.feature-item-alt:last-child {
  margin-bottom: 0;
}

.feature-content-alt {
  flex: 1;
  padding-right: 60px;
}

.feature-text-alt h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-gray-900);
  letter-spacing: -0.5px;
}

.feature-text-alt p {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 30px;
}

.feature-video-alt {
  flex: 0 0 50%;
}

.video-container-alt {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-player-alt {
  width: 100%;
  display: block;
}

.video-placeholder-alt {
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
  border-radius: 16px;
}

.video-placeholder-alt i {
  font-size: 3rem;
  color: var(--color-gray-400);
  margin-bottom: 15px;
}

.video-placeholder-alt span {
  font-size: 1.1rem;
  color: var(--color-gray-500);
}

/***************************************
 * 6. FORM ELEMENTS
 ***************************************/
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-gray-900);
}

.form-subtitle {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: var(--color-gray-400);
}

.btn-demo {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease forwards;
}

.alert-success {
  background-color: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #065f46;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.alert-icon {
  font-size: 1.2rem;
  margin-right: 10px;
}

.alert-message {
  font-weight: 500;
}

/***************************************
 * 7. ANIMATIONS
 ***************************************/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

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

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s ease forwards;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/***************************************
 * 8. RESPONSIVE STYLES
 ***************************************/

/***************************************
 * 8.1 Large Devices (992px and below)
 ***************************************/
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-form {
    width: 100%;
    max-width: 500px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item-alt {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .feature-content-alt {
    padding-right: 0;
  }

  .feature-video-alt {
    width: 100%;
    max-width: 600px;
  }
}

/***************************************
 * 8.2 Medium Devices (768px and below)
 ***************************************/
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-text-alt h3 {
    font-size: 1.8rem;
  }
}

/***************************************
 * 8.3 Small Devices (576px and below)
 ***************************************/
@media (max-width: 576px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-text-alt h3 {
    font-size: 1.6rem;
  }

  .demo-form-container {
    padding: 20px 15px;
  }

  .form-control {
    padding: 10px 12px;
  }
}

/***************************************
 * 8.4 Extra Small Devices (375px and below)
 ***************************************/
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .demo-form-container {
    padding: 15px 10px;
  }

  .form-control {
    padding: 8px 10px;
  }
}

/***************************************
 * 9. FEATURE ITEM STYLES
 ***************************************/
.feature-item-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin: 2em auto;
  max-width: 1000px;
  gap: 30px;
}

.video-preview-container {
  flex: 0 0 40%;
  max-width: 440px;
}

.feature-content-container {
  flex: 1;
}

.feature-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: var(--color-gray-900);
}

.feature-description {
  font-size: 1.1em;
  color: var(--color-gray-700);
  line-height: 1.6;
}

.video-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-container div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-video-placeholder {
  background: #222;
  color: #fff;
  text-align: center;
}

.no-video-placeholder i {
  margin-top: 10px;
  font-size: 2em;
}
