/* main */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  gap: 20px;
  min-height: 60%;
  width: 100%;

  padding-top: 6vh;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;

}

.hero-video-overlay {
    position: relative; 
    z-index: 10;
    width: 100%;
    max-width: 650px;
    height: max-content;
    margin: -270px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 8px 12px 15px rgba(0, 0, 0, 0.476);
    border: 1px solid var(--outline);

    background: var(--bg-primary);
    padding: 10px;
}

.hero-video-overlay video {
    width: 100%;
    height: max-content;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-video-overlay {
        width: 70%;
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .hero-video-overlay {
        width: 85%;
        margin-top: -30px;
    }
    .hiw {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-video-overlay {
        width: 90%;
        margin-top: -20px;
        border-width: 2px;
    }
    .hiw {
        padding-top: 50px;
    }
}

/* hero section styling */
.hero {
  position: relative;
  width: 85%;
  max-width: var(--max-width);
  height: 600px;
  max-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding-left: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}


@media (min-width: 1200px) {
  .hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-head {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/herobg.png') no-repeat left bottom / cover;
  z-index: -1;
  border-radius: inherit;
}

.hero-content {
  position: relative;
  z-index: 1;

  display: flex;
  height: fit-content;
  flex-direction: column;
  align-items: center;

  text-align: center;
  gap: 20px;
}

.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  width: 50vw;
  max-width: 600px;
  margin: 0 auto;
}

.hero-head h1 {
  max-width: 100%;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-head p {
  max-width: 100%;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

@media (min-width: 1200px) {
  .hero-head h1 {
    font-size: 2.5rem;
  }
  .hero-head p {
    font-size: 1rem;
  }
}

.hero-head h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-head p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.cta-btn {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.btn1 {
  display: flex;
  height: 32px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 6px;
  border: 1px solid var(--outline);
  background: var(--primary);
  color: var(--bg-primary);
  text-decoration: none;
}

.btn2{
  display: flex;
  height: 32px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 6px;
  border: 1px solid var(--outline);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
}

.btn1:hover, .btn2:hover {
  opacity: 0.8;
}

.btn1:disabled, .btn2:disabled{
  background-color: var(--error);
  cursor: not-allowed;
}

/* sponsors thingy */

.partners_logo {
  overflow: hidden;
  position: relative;
  height: auto;
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 3vh auto 0 auto;
}

.scrolling-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.scrolling-content {
  display: flex;
  animation: scroll-left 20s linear infinite;
}

.scrolling-content > * {
  flex-shrink: 0;
  margin-right: 1.2rem;
}

.scrolling-content img {
  height: auto;
  max-height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    var(--bg-primary) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    var(--bg-primary) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* ===== How It Works Section ===== */
.hiw {
  padding: 4rem 1.5rem;
}

.hiw-header {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.hiw-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hiw-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hiw-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hiw-card {
  flex: 1 1 300px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--outline);
  position: relative;
}


.hiw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.hiw-card.highlight {
  border-left: 4px solid var(--accent);
}

.hiw-card .card-body {
  padding: 2rem;
}

.hiw-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.hiw-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.hiw-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hiw-card p strong em {
  color: var(--primary);
  font-style: normal;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}

/* ===== Who Verifies Section ===== */
.who-verifies {
  padding: 4rem 1.5rem;
}

.who-verifies-header {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.who-verifies-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.who-verifies-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.who-verifies-card {
  flex: 1 1 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
  border: 1px solid var(--outline);
}


.who-verifies-card:hover {
  transform: scale(1.03);
}

.who-verifies-card.highlight {
  border-top: 3px solid var(--accent);
}

.who-verifies-card .card-body {
  padding: 2rem;
  text-align: center;
}

.who-verifies-card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.who-verifies-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Features Section ===== */
.ftrs {
  padding: 4rem 1.5rem;
}

.ftrs h1 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: 700;
}

.feature-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.feat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary);
  border: 1px solid var(--outline);
}

.feature-card:hover {
  transform: translateX(8px);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h3::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.FAQ {
  padding: 4rem 1.5rem;
}

.faq-header {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.faq-header h1 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

.faq-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.feature-card a {
  font-size: 1.1rem;
  color: #0000CD;
  line-height: 1.6;
  text-decoration: underline;
}

/* ===== Common Styles ===== */
.card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hiw-header h1,
  .who-verifies-header h1,
  .ftrs h1 {
    font-size: 2rem;
  }
  
  .hiw-card,
  .who-verifies-card {
    flex: 1 1 100%;
  }
  
  .feature-cards {
    flex-direction: column;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
}
