/* Hero Section Layout */
.hero-section {
  text-align: center;
  padding: 100px 5% 24px;
  background: radial-gradient(circle at 50% 30%, #0c0702 0%, #000000 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-youtube-bg-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-youtube-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.hero-youtube-bg-iframe.video-loaded {
  opacity: 1 !important;
}

@media (min-aspect-ratio: 16/9) {
  .hero-youtube-bg-iframe {
    width: 100vw;
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-youtube-bg-iframe {
    width: 177.78vh;
    height: 100vh;
  }
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none !important;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero-video-bg.video-loaded {
  opacity: 1 !important;
}

.hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: none;
}

.hero-video-wrapper.video-loaded .hero-video-poster,
.hero-video-poster.video-ready {
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 7, 2, 0.45) 0%, rgba(12, 7, 2, 0.65) 60%, rgba(12, 7, 2, 0.85) 100%);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 2;
  pointer-events: none;
}

.schema-section {
  position: relative;
  width: 100%;
  min-height: auto;
  background: var(--bg-surface);
  overflow: hidden;
}

.hero-radial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: clamp(52px, 8vh, 84px) !important;
  position: relative;
  z-index: 10;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: var(--hero-title-fs-desktop, clamp(1.65rem, 2.6vw, 2.35rem)) !important;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 920px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--hero-title-fs-mobile, clamp(1.4rem, 5.2vw, 1.85rem)) !important;
    margin-bottom: 10px !important;
  }
}

.hero-title-accent {
  display: block;
  color: rgb(62, 163, 220);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: rgb(62, 163, 220);
  font-weight: 600;
  margin-top: 4px;
}

.hero-title-rotator {
  display: inline-grid;
  grid-template-columns: 1fr;
  vertical-align: bottom;
  text-align: left;
  overflow: hidden;
  height: 1.30em;
  line-height: 1.15;
  position: relative;
  padding-bottom: 0.08em;
}

.hero-title-rotator .rotator-item {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
  animation: heroRotate 7.2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-title-rotator .rotator-item:nth-child(1) {
  animation-delay: 0s;
}

.hero-title-rotator .rotator-item:nth-child(2) {
  animation-delay: -4.8s;
}

.hero-title-rotator .rotator-item:nth-child(3) {
  animation-delay: -2.4s;
}

@keyframes heroRotate {
  0% {
    opacity: 1;
    transform: translateY(0%);
  }
  27.000% {
    opacity: 1;
    transform: translateY(0%);
  }
  33.333% {
    opacity: 1;
    transform: translateY(-100%);
  }
  33.334% {
    opacity: 0;
    transform: translateY(100%);
  }
  93.667% {
    opacity: 0;
    transform: translateY(100%);
  }
  93.668% {
    opacity: 1;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-rotator .rotator-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-title-rotator .rotator-item:nth-child(2),
  .hero-title-rotator .rotator-item:nth-child(3) {
    display: none;
  }
}

/* Platform Section Title in Schema */
.platform-section-title {
  z-index: 25;
  pointer-events: none;
  width: 100%;
  max-width: 850px;
}

.platform-section-title h2 {
  font-family: var(--font-headings);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* Standalone Stats Section Below Schema */
.hero-stats-section {
  padding: 0px 5% 45px;
  margin-top: -30px;
  background: var(--bg-surface);
  position: relative;
  z-index: 10;
}

.hero-stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.schema-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.schema-stat-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(16, 185, 129, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.schema-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 16px 36px -4px rgba(16, 185, 129, 0.14), 0 6px 16px rgba(15, 23, 42, 0.06);
}

.schema-stat-card .stat-number {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.schema-stat-card .stat-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.schema-stat-card .stat-subtitle {
  font-size: 0.82rem;
  font-weight: 450;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 840px) {
  .schema-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 760px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
  margin-bottom: 0 !important;
}

.hero-btn-primary {
  background: #0c0702;
  color: #ffffff;
  padding: 11px 28px;
  border-radius: 0px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition-snappy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn-primary:hover {
  background: #1c140e;
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 184, 205, 0.35);
  color: #ffffff;
}

.hero-btn-secondary {
  background: #ffffff;
  color: #0c0702;
  border: none;
  padding: 11px 28px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-snappy);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hero-btn-secondary:hover {
  background: #ffffff;
  border: none;
  color: #26b8cd;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.video-frame-inner {
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 0;
  right: 0;
}

.video-glow-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 58, 64, 0.15);
  pointer-events: none;
  z-index: 2;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-overlay-clickable {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  cursor: none;
}

.video-play-cursor {
  position: absolute;
  left: -200px;
  top: -200px;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  background: #ffffff;
  color: var(--color-primary);
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: 1px solid var(--border-primary);
}

.video-play-cursor span {
  font-size: 12px;
  color: var(--color-accent-light);
}

.video-title-bar {
  height: 36px;
  background: #1e293b;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.video-title-dots {
  display: flex;
  gap: 8px;
}

.video-title-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.video-title-dot.red { background: #ef4444; }
.video-title-dot.yellow { background: #eab308; }
.video-title-dot.green { background: #22c55e; }

.video-title-url {
  margin-left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 30px;
  border-radius: 4px;
}

.video-wrapper {
  width: 100%;
  max-width: 1200px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21/9;
  background: #000;
  border: 1px solid var(--border-secondary);
  cursor: none;
  transform: scale(0.96);
  opacity: 0.8;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-wrapper.active {
  transform: scale(1);
  opacity: 1;
}

/* Scroll Reveal Section Layout */
.scroll-reveal-section {
  padding: 60px 0 30px 0;
  background: var(--bg-surface);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 30vh;
}

.scroll-reveal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: rgba(20, 184, 166, 0.03);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.scroll-reveal-container {
  max-width: 1440px;
  width: 90%;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 5%;
  margin-left: auto;
  margin-right: auto;
}

.scroll-reveal-text {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  user-select: none;
}

.scroll-reveal-wave {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-top: -20px;
  margin-bottom: -20px;
}

/* Scroll Driven Animations (for modern browsers) */
@supports (animation-timeline: view()) {
  .video-wrapper {
    transition: none;
    transform: none;
    opacity: 1;
    animation: scaleUpScroll linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }

  @keyframes scaleUpScroll {
    from {
      transform: scale(0.94);
      opacity: 0.8;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* Floating Isometric background decorations */
.floating-iso-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(115, 194, 150, 0.15));
  animation: drift-decor 15s ease-in-out infinite alternate;
}

.floating-iso-decor img {
  width: 100%;
  height: auto;
}

/* Specific position anchors in hero */
.hero-decor-left {
  top: 15%;
  left: 3%;
  width: clamp(120px, 12vw, 200px);
  animation-duration: 18s;
}

.hero-decor-right {
  bottom: 20%;
  right: 4%;
  width: clamp(140px, 14vw, 240px);
  animation-duration: 22s;
  animation-delay: -5s;
}

@keyframes drift-decor {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.03);
  }
  100% {
    transform: translateY(10px) scale(0.97);
  }
}

@media (max-width: 968px) {
  .floating-iso-decor {
    display: none;
  }
}

/* ==========================================================================
   Hero Video Minimal Transparent Circle Play Button (Mobile / Tablet Fallback)
   ========================================================================== */
.hero-play-circle-wrapper {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: auto;
  z-index: 15;
  pointer-events: auto;
}

.hero-circle-play-btn {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  text-decoration: none;
  user-select: none;
  outline: none;
}

.hero-circle-play-btn .hero-play-circle-icon,
.hero-circle-play-btn .hero-motion-play-icon,
.hero-circle-play-btn svg {
  width: 52px;
  height: 52px;
  fill: rgba(255, 255, 255, 0.65);
  opacity: 0.75;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), fill 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  display: block;
}

.hero-circle-play-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.12);
}

.hero-circle-play-btn:hover .hero-play-circle-icon,
.hero-circle-play-btn:hover .hero-motion-play-icon,
.hero-circle-play-btn:hover svg {
  fill: rgba(255, 255, 255, 0.95);
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}

.hero-circle-play-btn:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .hero-play-circle-wrapper {
    top: 34%;
  }
  .hero-circle-play-btn .hero-play-circle-icon,
  .hero-circle-play-btn .hero-motion-play-icon,
  .hero-circle-play-btn svg {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Desktop Mouse-Following "Play intro" Capsule Button & Trigger Zone
   ========================================================================== */
.hero-cursor-video-zone {
  display: none;
}

.hero-cursor-play-btn {
  display: none;
}

@media (min-width: 769px) {
  /* On desktop: hide fixed circle play button, use interactive cursor follower */
  .hero-play-circle-wrapper {
    display: none !important;
  }

  .hero-cursor-video-zone {
    display: block;
    position: absolute;
    top: 90px;
    left: 4%;
    right: 4%;
    bottom: 240px;
    z-index: 12;
    cursor: pointer;
    background: transparent;
    border-radius: 20px;
    outline: none;
  }

  .hero-cursor-play-btn {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #000000;
    padding: 12px 26px 12px 22px;
    border-radius: 9999px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.16);
    user-select: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, left, top;
  }

  .hero-cursor-play-btn.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .hero-cursor-play-btn.clicking {
    transform: translate(-50%, -50%) scale(0.92);
  }

  .hero-cursor-play-icon {
    width: 14px;
    height: 14px;
    fill: #000000;
    flex-shrink: 0;
    display: block;
  }

  .hero-cursor-play-text {
    font-family: 'Plus Jakarta Sans', var(--font-headings), sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #000000;
    white-space: nowrap;
    line-height: 1;
  }
}



/* ==========================================================================
   Full-Screen Native HTML5 Video Pop-up Modal (Minimal UI)
   ========================================================================== */
.hero-video-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000000;
  cursor: pointer;
  z-index: 1;
}

.hero-video-modal-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  transform: scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-video-modal.active .hero-video-modal-container {
  transform: scale(1);
}

.hero-video-modal-close {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 36px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  outline: none;
}

.hero-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.hero-video-modal-close:active {
  transform: scale(0.95);
}

.hero-video-modal-player-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.hero-video-modal-video {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
  outline: none;
}

/* Fallback iframe in case used */
.hero-video-modal-iframe {
  width: 100vw;
  height: 100vh;
  border: 0;
}

@media (max-width: 640px) {
  .hero-video-modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
}
