/* ============================================
   24HG Creators — style.css
   Brand: #0a0a0c bg, #00e5ff cyan accent
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0c;
  --bg-card: #111115;
  --bg-card-hover: #18181d;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --text-primary: #e8e8ed;
  --text-secondary: #8a8a9a;
  --border: #1e1e26;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* --- Keyframes --- */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

@keyframes film-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shutter-open {
  0%   { clip-path: circle(0% at 50% 50%); }
  100% { clip-path: circle(75% at 50% 50%); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.15); }
  50%      { box-shadow: 0 0 40px rgba(0, 229, 255, 0.35); }
}

@keyframes play-bounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

@keyframes sprocket-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- Header --- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cyan); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: var(--bg-card);
  color: var(--cyan);
}

.mobile-nav.open { display: flex; }

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(0, 229, 255, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 85%, rgba(0, 184, 212, 0.05) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradient-shift 10s ease-in-out infinite;
}

/* Film strip decoration */
.film-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 60px;
  display: flex;
  animation: film-scroll 20s linear infinite;
  opacity: 0.06;
}

.film-strip-bottom {
  top: auto;
  bottom: 0;
  animation-direction: reverse;
}

.film-frame {
  flex: 0 0 80px;
  height: 60px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  margin: 8px 6px;
  position: relative;
}

.film-frame::before,
.film-frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.film-frame::before { top: -12px; left: 50%; transform: translateX(-50%); }
.film-frame::after  { bottom: -12px; left: 50%; transform: translateX(-50%); }

.hero-content {
  position: relative;
  z-index: 2;
  animation: shutter-open 1.2s ease-out both;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 .cyan { color: var(--cyan); }

.hero-tagline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Animated play button */
.play-btn-wrap {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.play-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  animation: pulse-glow 3s ease-in-out infinite, play-bounce 4s ease-in-out infinite;
  transition: transform 0.2s;
}

.play-btn:hover { transform: scale(1.12); }

.play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--bg-primary);
  margin-left: 4px;
}

.play-btn-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.3;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-cta-group {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--cyan);
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--cyan-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

/* --- Feature Cards --- */

.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title .cyan { color: var(--cyan); }

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }
.feature-card:nth-child(5) { animation-delay: 0.33s; }
.feature-card:nth-child(6) { animation-delay: 0.40s; }

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--cyan-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(0, 229, 255, 0.22);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 100px;
}

/* --- Coming Soon Banner --- */

.coming-soon {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  animation: pulse-glow 4s ease-in-out infinite;
}

.coming-soon-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: play-bounce 2s ease-in-out infinite;
}

.coming-soon h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.coming-soon p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.coming-soon p + p {
  margin-top: 0.75rem;
}

/* --- Ecosystem --- */

.ecosystem {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.eco-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.06);
}

.eco-icon {
  font-size: 2rem;
}

.eco-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.eco-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Creator Spotlight --- */

.spotlight {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.spotlight-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.spotlight-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.spotlight-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.06);
}

.spotlight-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #14141a 0%, #1a1a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.spotlight-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-primary));
}

.spotlight-thumb-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.spotlight-play {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-card:hover .spotlight-play { opacity: 1; }

.spotlight-play svg {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
  margin-left: 2px;
}

.spotlight-info {
  padding: 1.25rem;
}

.spotlight-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cyan-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.spotlight-name {
  font-size: 0.85rem;
  font-weight: 600;
  vertical-align: middle;
}

.spotlight-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.spotlight-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(138, 138, 154, 0.5);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

/* --- Responsive --- */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .logo-sub { display: none; }

  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; max-width: 480px; margin: 2rem auto 0; }

  .hero { padding: 5rem 1rem 3rem; }
  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 24px; height: 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ecosystem-grid { grid-template-columns: 1fr; max-width: 320px; margin: 2rem auto 0; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Video Preview Modal --- */
.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.video-modal.open { opacity: 1; visibility: visible; }

.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative; z-index: 1;
  width: 90%; max-width: 720px;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.1);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.video-modal.open .video-modal-content { transform: scale(1); }

.video-modal-close {
  position: absolute; top: 12px; right: 16px; z-index: 2;
  background: none; border: none; color: var(--text-secondary);
  font-size: 2rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.video-modal-close:hover { color: var(--cyan); }

.video-modal-player { aspect-ratio: 16 / 9; }

.video-modal-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
}
.video-modal-placeholder svg { color: var(--cyan); opacity: 0.6; }
.video-modal-placeholder p { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.video-modal-placeholder span { font-size: 0.85rem; color: var(--text-secondary); }
