@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg: #030303;
  --card: rgba(255,255,255,0.02);
  --accent: #CCFF00;
  --hot: #ff2a6d;
  --text: #ffffff;
  --text-2: #888;
  --text-3: #444;
  --font-d: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================
   AMBIENT BACKGROUND ORBS
   ============================ */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: 0.06; z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -10%; left: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--hot);
  bottom: 10%; right: -15%;
  animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  background: #6366f1;
  top: 50%; left: 40%;
  animation: orbFloat3 30s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(80px, 120px); }
  66% { transform: translate(-40px, 60px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-100px, -80px); }
  66% { transform: translate(60px, -40px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-120px, 80px); }
}

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0; transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(3,3,3,0.85); backdrop-filter: blur(20px); padding: 16px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.04em; position: relative; z-index: 1;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.85rem; font-weight: 600; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 0.85rem; font-weight: 700; padding: 12px 24px;
  background: var(--text); color: #000; border-radius: 100px;
  transition: transform 0.25s, background 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--accent); }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 160px 32px 80px;
  position: relative; z-index: 1;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(204,255,0,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.9;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-2); max-width: 540px;
  margin-bottom: 48px; position: relative; z-index: 1;
}
.hero-ctas { position: relative; z-index: 1; }
.btn-main {
  display: inline-flex; align-items: center;
  padding: 18px 40px;
  background: var(--accent); color: #000;
  font-family: var(--font-d); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.02em;
  border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(204,255,0,0.25); }

/* ============================
   STATS
   ============================ */
.stats-strip {
  display: flex; justify-content: center; gap: 120px;
  padding: 60px 32px 120px;
  position: relative; z-index: 1;
}
.stat { text-align: center; }
.stat-val {
  font-family: var(--font-d); font-size: 4rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
}
.stat-val .accent { color: var(--accent); }
.stat-label { font-size: 0.9rem; color: var(--text-3); font-weight: 500; margin-top: 8px; }

/* ============================
   PLATFORMS
   ============================ */
.platforms {
  padding: 100px 32px; text-align: center;
  background: rgba(255,255,255,0.01);
  position: relative; z-index: 1;
}
.platforms-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: 40px;
}
.platform-logos {
  display: flex; justify-content: center; gap: 80px;
  align-items: center; flex-wrap: wrap;
}
.platform-item {
  color: var(--text-2); transition: color 0.3s, transform 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.platform-item:hover { color: #fff; transform: scale(1.08); }
.platform-item svg { height: 32px; width: auto; fill: currentColor; }
.kick-img img { height: 28px; width: auto; filter: grayscale(1) brightness(2); opacity: 0.6; transition: opacity 0.3s, filter 0.3s; }
.platform-item:hover .kick-img img { opacity: 1; filter: none; }
.mp4-item { gap: 8px; font-weight: 700; font-size: 1rem; }
.mp4-item svg { height: 28px; fill: none; }

/* ============================
   ENGINE SHOWCASE
   ============================ */
.engine {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 160px;
  display: flex; flex-direction: column; gap: 200px;
  position: relative; z-index: 1;
}
.engine-block {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: center;
}
.engine-block.flip { direction: rtl; }
.engine-block.flip > * { direction: ltr; }

.engine-text h2 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 20px;
}
.engine-text p {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.65;
  max-width: 420px;
}

/* Video block */
.engine-video {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transform: translateZ(0);
  will-change: transform;
}
.engine-video video {
  width: 100%; display: block;
  border-radius: 24px;
  transform: translateZ(0);
}
.video-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.video-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--hot); text-transform: uppercase;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 100px;
}
.video-tag-dot {
  width: 8px; height: 8px; background: var(--hot); border-radius: 50%;
  animation: tagPulse 1.5s infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,42,109,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(255,42,109,0); }
}

/* Process visual */
.engine-visual {
  background: var(--card);
  border-radius: 32px;
  padding: 48px;
  min-height: 400px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.process-visual { gap: 32px; }
.process-timeline {
  display: flex; flex-direction: column; gap: 0;
}
.process-step {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
}
.process-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.process-step.completed .process-icon {
  background: rgba(204,255,0,0.15); color: var(--accent);
}
.process-step.completed .process-icon svg { width: 16px; height: 16px; }
.process-step.current .process-icon {
  background: rgba(255,255,255,0.05); color: var(--text-2);
}
.spinner-icon svg {
  width: 18px; height: 18px;
  animation: spin 2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.process-name {
  font-weight: 700; font-size: 0.95rem;
}
.process-time {
  font-size: 0.75rem; color: var(--text-3); font-family: monospace;
  margin-top: 2px;
}
.process-step.completed .process-name { color: var(--text); }
.process-step.current .process-name { color: var(--text-2); }
.process-line {
  width: 2px; height: 24px; margin-left: 17px;
  background: rgba(255,255,255,0.06);
}
.process-line.done { background: var(--accent); opacity: 0.3; }
.process-line.active {
  background: linear-gradient(to bottom, rgba(204,255,0,0.3), rgba(255,255,255,0.06));
}
.process-footer {
  display: flex; align-items: center; gap: 16px;
}
.process-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.process-bar-fill {
  width: 78%; height: 100%; background: var(--accent);
  border-radius: 99px;
  animation: barGrow 2s ease-out forwards;
}
@keyframes barGrow {
  from { width: 0; }
  to { width: 78%; }
}
.process-footer span {
  font-size: 0.75rem; color: var(--text-3); font-family: monospace;
  white-space: nowrap;
}

/* Output visual */
.output-visual {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  padding: 48px;
}
.output-video-wrapper {
  width: 210px; max-width: 100%; flex-shrink: 0;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.output-video-wrapper:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 32px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(204,255,0,0.25);
}
.output-video-wrapper video {
  width: 100%; height: auto; display: block;
  border-radius: 22px;
  object-fit: cover;
  transform: translateZ(0);
}
.output-specs {
  display: flex; flex-direction: column; gap: 24px;
}
.spec-item { display: flex; flex-direction: column; }
.spec-val {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em;
}
.spec-label {
  font-size: 0.8rem; color: var(--text-3); margin-top: 2px;
}

/* ============================
   PRICING
   ============================ */
.pricing {
  max-width: 1200px; margin: 0 auto;
  padding: 160px 32px; text-align: center;
  position: relative; z-index: 1;
}
.pricing h2 {
  font-family: var(--font-d); font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em; margin-bottom: 40px;
}
.pricing-toggle {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-bottom: 80px;
}
.toggle-label {
  font-size: 1rem; font-weight: 600; color: var(--text-2); transition: color 0.3s;
}
.toggle-label.active { color: var(--text); }
.badge {
  background: var(--accent); color: #000; font-size: 0.65rem; font-weight: 800;
  padding: 4px 8px; border-radius: 100px; text-transform: uppercase; margin-left: 8px;
}
.switch {
  position: relative; display: inline-block; width: 60px; height: 32px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--card); border: 2px solid rgba(255,255,255,0.1);
  transition: .4s; border-radius: 32px;
}
.slider:before {
  position: absolute; content: ""; height: 22px; width: 22px;
  left: 3px; bottom: 3px; background-color: var(--text);
  transition: .4s; border-radius: 50%;
}
input:checked + .slider { border-color: var(--accent); }
input:checked + .slider:before { transform: translateX(28px); background-color: var(--accent); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: 1100px; margin: 0 auto;
}
.p-card {
  background: var(--card); border-radius: 32px;
  padding: 48px 32px; text-align: left; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.p-card:hover { transform: translateY(-6px); }
.p-card.pop {
  background: radial-gradient(circle at 50% 0%, rgba(204,255,0,0.08), transparent 70%), rgba(255,255,255,0.03);
  transform: translateY(-16px);
  border: 1px solid rgba(204,255,0,0.2);
}
.p-card.pop:hover { transform: translateY(-22px); }
.pop-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--accent); color: #000;
  font-size: 0.7rem; font-weight: 800; padding: 6px 16px;
  border-radius: 100px; letter-spacing: 0.1em; text-transform: uppercase;
}
.p-name {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px;
}
.p-price {
  font-family: var(--font-d); font-size: 3.5rem; font-weight: 800;
  line-height: 1; margin-bottom: 40px;
}
.p-price sup { font-size: 1.2rem; color: var(--text-2); vertical-align: top; position: relative; top: 12px; }
.p-card ul { margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.p-card li {
  font-size: 0.95rem; color: var(--text-2);
  display: flex; align-items: center; gap: 12px;
}
.p-card li svg { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.p-card li.negative { color: var(--text-3); }
.p-card li.negative svg { color: var(--hot); }
.p-btn {
  width: 100%; padding: 16px; border-radius: 100px;
  font-family: var(--font-d); font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: all 0.25s; border: none;
}
.p-btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); }
.p-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.p-btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.1); color: var(--text); }
.p-btn-outline:hover { border-color: rgba(255,255,255,0.3); }
.p-btn-fill { background: var(--text); color: #000; }
.p-btn-fill:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(204,255,0,0.2); }

/* ============================
   CTA
   ============================ */
.cta {
  text-align: center; padding: 160px 32px;
  position: relative; z-index: 1;
}
.cta h2 {
  font-family: var(--font-d); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 48px;
}
.cta-form { display: flex; justify-content: center; }
.cta-form button {
  padding: 20px 48px; background: var(--accent); color: #000;
  font-family: var(--font-d); font-weight: 800; font-size: 1.2rem;
  border: none; border-radius: 100px; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta-form button:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(204,255,0,0.3); }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 60px 32px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 0.78rem; color: var(--text-3); }

/* ============================
   REVEAL
   ============================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
  padding: 40px; max-width: 480px; width: 90%; text-align: center;
  position: relative; transform: translateY(20px); transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: var(--text-2); font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal h3 {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800; margin-bottom: 16px;
}
.modal p { color: var(--text-2); font-size: 0.95rem; line-height: 1.5; margin-bottom: 32px; }
.modal p strong { color: var(--accent); }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-btn-primary {
  padding: 16px; background: var(--accent); color: #000; border: none; border-radius: 100px;
  font-family: var(--font-d); font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: transform 0.2s;
}
.modal-btn-primary:hover { transform: translateY(-2px); }
.modal-btn-secondary {
  padding: 16px; background: transparent; color: var(--text-2); border: none;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: color 0.2s;
}
.modal-btn-secondary:hover { color: #fff; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .stats-strip { flex-direction: column; gap: 48px; padding: 40px 32px 80px; }
  .engine-block, .engine-block.flip { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .engine-block.flip > * { direction: ltr; }
  .engine-text p { margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .p-card.pop { transform: none; }
  .p-card.pop:hover { transform: translateY(-6px); }
  .site-footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .platform-logos { gap: 40px; }
  .output-visual { flex-direction: column; }
  .output-specs { flex-direction: row; gap: 32px; }
  .bg-orb { opacity: 0.03; }
}

@media (max-width: 600px) {
  .nav { padding: 16px 0; }
  .nav-inner { padding: 0 16px; }
  .logo { font-size: 1.3rem; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }

  .hero { min-height: auto; padding: 110px 16px 50px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); margin-bottom: 16px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 32px; padding: 0 4px; }
  .btn-main { width: 100%; max-width: 320px; padding: 16px 24px; font-size: 1rem; justify-content: center; }

  .stats-strip { padding: 24px 16px 48px; gap: 32px; }
  .stat-val { font-size: 2.8rem; }
  .stat-label { font-size: 0.82rem; }

  .platforms { padding: 48px 16px; }
  .platforms-label { font-size: 0.7rem; margin-bottom: 24px; }
  .platform-logos { gap: 24px 32px; }
  .platform-item svg { height: 26px; }
  .kick-img img { height: 22px; }
  .mp4-item { font-size: 0.9rem; }

  .engine { padding: 32px 16px 80px; gap: 64px; }
  .engine-block { gap: 28px; }
  .engine-text h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); margin-bottom: 14px; }
  .engine-text p { font-size: 0.92rem; }

  .engine-video { border-radius: 18px; }
  .video-overlay { padding: 12px; }
  .video-tag { font-size: 0.56rem; padding: 5px 10px; letter-spacing: 0.05em; }
  .video-tag-dot { width: 6px; height: 6px; }

  .engine-visual { padding: 24px 16px; border-radius: 20px; }
  .process-visual { gap: 20px; }
  .process-step { gap: 12px; padding: 8px 0; }
  .process-name { font-size: 0.85rem; }
  .process-time { font-size: 0.68rem; }
  .process-icon { width: 30px; height: 30px; }
  .process-icon svg { width: 14px; height: 14px; }
  .process-line { height: 16px; margin-left: 14px; }

  .output-visual { padding: 24px 16px; gap: 24px; border-radius: 20px; }
  .output-video-wrapper { width: 175px; border-radius: 18px; }
  .output-video-wrapper video { border-radius: 18px; }
  .output-specs { flex-direction: row; justify-content: space-around; width: 100%; gap: 12px; }
  .spec-val { font-size: 1.4rem; }
  .spec-label { font-size: 0.7rem; }

  .pricing { padding: 64px 16px; }
  .pricing h2 { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 24px; }
  .pricing-toggle { margin-bottom: 36px; gap: 12px; }
  .toggle-label { font-size: 0.88rem; }
  .pricing-grid { gap: 20px; max-width: 100%; }
  .p-card { padding: 36px 20px; border-radius: 24px; }
  .p-card.pop { transform: none; }
  .p-card.pop:hover { transform: translateY(-4px); }
  .pop-badge { left: 20px; top: -12px; font-size: 0.62rem; padding: 4px 12px; }
  .p-name { font-size: 1.3rem; }
  .p-price { font-size: 2.8rem; margin-bottom: 24px; }
  .p-card ul { margin-bottom: 28px; gap: 12px; }
  .p-card li { font-size: 0.88rem; }
  .p-btn { padding: 14px; font-size: 0.92rem; }

  .cta { padding: 64px 16px; }
  .cta h2 { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 28px; }
  .cta-form button { width: 100%; max-width: 320px; padding: 16px 24px; font-size: 1rem; }

  .site-footer { padding: 32px 16px; gap: 20px; }
  .footer-links { gap: 16px; font-size: 0.82rem; }

  .modal { padding: 28px 18px; border-radius: 20px; width: 92%; }
  .modal h3 { font-size: 1.4rem; margin-bottom: 12px; }
  .modal p { font-size: 0.85rem; margin-bottom: 24px; }
  .modal-btn-primary { padding: 14px; font-size: 0.92rem; }
  .modal-btn-secondary { padding: 10px; font-size: 0.82rem; }
}
