/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #8B5CF6;
  --primary-color-alt: #A855F7;
  --secondary-color: #F59E0B;
  --accent-color: #10B981;
  --text-color: #1F2937;
  --text-color-light: #6B7280;
  --white-color: #FFFFFF;
  --black-color: #000000;
  --body-color: #FAFAFA;
  --container-color: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-color: rgba(139, 92, 246, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  
  /* Typography */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-black: 800;
  
  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.section__description {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.button--primary {
  background: var(--gradient);
  color: var(--white-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.button--secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button--secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.button--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.button--full {
  width: 100%;
  justify-content: center;
}

.button__icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.button:hover .button__icon {
  transform: translateX(0.25rem);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.header.scroll-header {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-bold);
  color: var(--text-color);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
}

.nav__logo-text {
  font-size: 1.25rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__login {
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: var(--transition);
}

.nav__login:hover {
  color: var(--primary-color);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-black);
  margin-bottom: var(--mb-1);
  line-height: 1.1;
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.hero__stat-label {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.hero__trust {
  text-align: center;
}

.hero__trust-text {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-1);
}

.hero__trust-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__trust-logo {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  opacity: 0.7;
}

.hero__media {
  position: relative;
}

.hero__video-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero__video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--gradient);
}

.hero__video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.hero__play-button:hover {
  transform: scale(1.1);
  background: var(--white-color);
}

.hero__play-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-left: 0.25rem;
}

.hero__floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- Video play state helpers (new) --- */
#hero-iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;              /* hidden until .playing */
  pointer-events: none;    /* ignore clicks until visible */
  transition: opacity .3s ease;
}

.hero__video-container.playing .hero__video-bg        { opacity: 0; }
.hero__video-container.playing .hero__play-button     { opacity: 0; pointer-events: none; }
.hero__video-container.playing #hero-iframe           { opacity: 1; pointer-events: auto; }


.floating-card {
  position: absolute;
  background: var(--white-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.floating-card--1 {
  top: 20%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card--2 {
  bottom: 30%;
  left: -10%;
  animation-delay: 1s;
}

.floating-card--3 {
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

.floating-card__icon {
  font-size: 1.5rem;
}

.floating-card__text {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== FEATURES ===== */
.features {
  background: var(--white-color);
}

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

.feature__card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--mb-1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  overflow: hidden;
}

.feature__icon-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.feature__icon-custom {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.feature__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.feature__list {
  text-align: left;
}

.feature__list li {
  color: var(--text-color-light);
  margin-bottom: var(--mb-0-5);
  position: relative;
  padding-left: 1.5rem;
}

.feature__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: var(--font-bold);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--body-color);
}

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

.testimonial__card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial__rating {
  margin-bottom: var(--mb-1);
}

.testimonial__stars {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.testimonial__text {
  color: var(--text-color);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-25);
}

.testimonial__role {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* ===== PRICING ===== */
.pricing {
  background: var(--white-color);
}

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

.pricing__card {
  background: var(--container-color);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 2px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.pricing__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing__card--featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing__card--featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.pricing__header {
  margin-bottom: var(--mb-2);
}

.pricing__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing__currency {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
}

.pricing__amount {
  font-size: 3rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.pricing__period {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
}

.pricing__features {
  margin-bottom: var(--mb-2);
  text-align: left;
}

.pricing__feature {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.pricing__feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: var(--font-bold);
}

/* ===== CTA ===== */
.cta {
  background: var(--gradient);
  color: var(--white-color);
}

.cta__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.cta__description {
  font-size: 1.1rem;
  margin-bottom: var(--mb-2);
  opacity: 0.9;
  line-height: 1.6;
}

.cta__buttons {
  display: flex;
  gap: 1rem;
}

.cta__buttons .button--primary {
  background: var(--white-color);
  color: var(--primary-color);
}

.cta__buttons .button--secondary {
  background: transparent;
  color: var(--white-color);
  border-color: var(--white-color);
}

.cta__buttons .button--secondary:hover {
  background: var(--white-color);
  color: var(--primary-color);
}

.cta__image {
  text-align: center;
}

.cta__img {
  max-width: 300px;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
}

.footer__logo-text {
  font-size: 1.25rem;
  font-weight: var(--font-bold);
}

.footer__description {
  margin-bottom: var(--mb-1-5);
  opacity: 0.8;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  color: var(--white-color);
  transition: var(--transition);
  opacity: 0.8;
}

.footer__social-link:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: var(--white-color);
  opacity: 0.8;
  transition: var(--transition);
}

.footer__link:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--mb-1-5);
  text-align: center;
}

.footer__copyright {
  opacity: 0.8;
  font-size: var(--small-font-size);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white-color);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-color);
  }
  
  .nav__toggle {
    display: block;
    color: var(--text-color);
  }
  
  .nav__actions {
    display: none;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero__buttons {
    flex-direction: column;
  }
  
  .hero__trust-logos {
    gap: 1rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .features__grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  
  .pricing__card--featured {
    transform: none;
  }
  
  .pricing__card--featured:hover {
    transform: translateY(-5px);
  }
  
  .cta__buttons {
    flex-direction: column;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
}

/* -------------------------------------------------- */
/* HERO -- keep video + poster in a fixed 16:9 frame  */
/* -------------------------------------------------- */

/* 1.  Give the wrapper its own 16:9 height so no white band appears */
.hero__video-container{
  /* existing props (position, radius, shadow, overflow) stay valid */
  width:100%;
  padding-top:56.25%;          /* 16 : 9 ratio – container now has height */
}

/* 2.  Stack BOTH the poster and iframe flush to that rectangle */
.hero__video-placeholder,
#hero-iframe{
  position:absolute;            /* override the earlier “relative”                  */
  inset:0;                      /* shorthand for top:0; right:0; bottom:0; left:0;  */
  width:100%;
  height:100%;
}

/* 3.  The play-state helper you already added – we just extend it with `position` */
#hero-iframe{
  /* existing opacity / pointer-events / transition lines stay as-is */
  position:absolute;            /* (new) makes it overlap exactly like the poster   */
  inset:0;
}

/* -----------------------------------------------
   Make the iframe visible as SOON as the src loads
   (even before autoplay starts) so Edge/Chrome
   won't treat it as hidden content.
--------------------------------------------------*/
#hero-iframe[src*="nocookie"] {
  opacity: 1;                 /* visible immediately  */
  pointer-events: auto;       /* clickable, focusable */
}

/* OPTIONAL: stop browsers from offering Picture-in-Picture */
#hero-iframe {
  /* Edge/Chrome respect this attribute (see HTML below)   */
}

/* Hide the entire placeholder once .playing is active */
.hero__video-container.playing .hero__video-placeholder{
  opacity: 0;
  pointer-events: none;
}

/* Smooth fade-out so it doesn't “blink” */
.hero__video-placeholder{
  transition: opacity .3s ease;
}

/* 1 ▸ Fade then fully remove the gradient placeholder */
.hero__video-container.playing .hero__video-placeholder{
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* 2 ▸ Make sure the iframe is the top layer */
.hero__video-container.playing #hero-iframe{
  z-index: 1;                 /* guarantees it's above everything */
}


@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .button--large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

