/* =============================================
   Landing Page - Liquid Glass Design System
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --background: 213 45% 67%;
  --foreground: 0 0% 100%;
  --card: 213 45% 62%;
  --card-foreground: 0 0% 100%;
  --primary: 0 0% 100%;
  --primary-foreground: 213 45% 67%;
  --secondary: 213 45% 72%;
  --secondary-foreground: 0 0% 100%;
  --muted: 213 35% 60%;
  --muted-foreground: 0 0% 100% / 0.7;
  --accent: 213 45% 72%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --border: 0 0% 100% / 0.2;
  --input: 0 0% 100% / 0.2;
  --ring: 0 0% 100% / 0.3;
  --radius: 9999px;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  --glass-blur: 16px;
}

/* --- Base --- */
.landing-page {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.landing-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Liquid Glass Utility Classes --- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Buttons --- */
.btn-liquid-strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-liquid-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-liquid-strong:hover {
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-liquid-strong:active {
  transform: translateY(0);
}

.btn-solid-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  border: none;
  border-radius: 9999px;
  color: #000;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-solid-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-play:hover {
  opacity: 0.8;
}

/* --- Section Badge --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.section-badge .badge-new {
  background: #fff;
  color: #000;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

/* --- Section Title --- */
.section-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 600px;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 24px;
}

/* --- NAVBAR --- */
.landing-navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 32px;
  transition: all 0.3s ease;
}

.landing-navbar.scrolled {
  top: 0;
  padding: 12px 32px;
}

.landing-navbar.scrolled .landing-nav-inner {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.landing-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 9999px;
  background: transparent;
  transition: all 0.3s ease;
}

.landing-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.landing-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.landing-nav-links {
  display: flex;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 9999px;
}

.nav-pill a {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-pill a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  top: 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 6px;
  border-radius: 9999px;
  margin-bottom: 40px;
}

.hero-badge .badge-new {
  background: #fff;
  color: #000;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.hero-badge span:last-child {
  padding-right: 12px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.85;
  letter-spacing: -4px;
  margin-bottom: 24px;
  max-width: 800px;
}

/* BlurText Animation */
.blur-text .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-text.animate .blur-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.blur-text .blur-word:nth-child(1) { transition-delay: 0s; }
.blur-text .blur-word:nth-child(2) { transition-delay: 0.05s; }
.blur-text .blur-word:nth-child(3) { transition-delay: 0.1s; }
.blur-text .blur-word:nth-child(4) { transition-delay: 0.15s; }
.blur-text .blur-word:nth-child(5) { transition-delay: 0.2s; }
.blur-text .blur-word:nth-child(6) { transition-delay: 0.25s; }
.blur-text .blur-word:nth-child(7) { transition-delay: 0.3s; }
.blur-text .blur-word:nth-child(8) { transition-delay: 0.35s; }
.blur-text .blur-word:nth-child(9) { transition-delay: 0.4s; }
.blur-text .blur-word:nth-child(10) { transition-delay: 0.45s; }

.hero-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  animation: blurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes blurIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  animation: blurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.hero-partners {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 60px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partners-label {
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.partners-list {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.partners-list span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  opacity: 0.8;
}

/* --- START SECTION --- */
.start-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: #000;
}

.section-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gradient-top,
.video-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}

.video-gradient-top {
  top: 0;
  background: linear-gradient(to bottom, #000, transparent);
}

.video-gradient-bottom {
  bottom: 0;
  background: linear-gradient(to top, #000, transparent);
}

.start-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
}

/* --- FEATURES CHESS --- */
.features-chess {
  padding: 120px 24px;
  background: #000;
}

.chess-row {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 100px;
}

.chess-row.reverse {
  flex-direction: row-reverse;
}

.chess-row:last-child {
  margin-bottom: 0;
}

.chess-content {
  flex: 1;
  padding: 40px 0;
}

.chess-content h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.chess-content p {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.chess-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.media-frame {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- FEATURES GRID --- */
.features-grid-section {
  padding: 120px 24px;
  background: #000;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px 24px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.feature-card h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- STATS SECTION --- */
.stats-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: #000;
}

.stats-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0);
}

.stats-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1000px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 80px;
  border-radius: 24px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  padding: 120px 24px;
  background: #000;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 40px 32px;
  border-radius: 20px;
}

.testimonial-quote {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  margin-top: auto;
}

.author-name {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.author-role {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  background: #000;
}

.cta-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  margin-bottom: 80px;
}

.cta-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.landing-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .chess-row,
  .chess-row.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  .chess-content {
    text-align: center;
    padding: 0;
  }
  
  .chess-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .media-frame {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .landing-navbar {
    padding: 0 16px;
  }
  
  .landing-nav-inner {
    padding: 10px 16px;
  }
  
  .landing-nav-links {
    display: none;
  }
  
  .hero-section {
    min-height: 800px;
  }
  
  .hero-title {
    letter-spacing: -2px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .landing-footer {
    flex-direction: column;
    text-align: center;
  }
  
  .partners-list {
    gap: 20px;
  }
  
  .partners-list span {
    font-size: 1.2rem;
  }
}

/* --- Demo Modal --- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.demo-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.demo-modal-content video {
  width: 100%;
  height: auto;
  display: block;
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  animation: modalCloseIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes modalCloseIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 700px;
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
  
  .features-chess,
  .features-grid-section,
  .testimonials-section,
  .start-section,
  .stats-section,
  .cta-section {
    padding: 80px 20px;
  }
  
  .demo-modal-content {
    border-radius: 12px;
  }
}
