/* VIDTOOLZ — shared stylesheet */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-card-hover: #252525;
  --text: #e8e8e8;
  --text-dim: #999;
  --text-bright: #fff;
  --accent: #d97706;
  --accent-hover: #f59e0b;
  --accent-dim: #b45309;
  --border: #333;
  --radius: 12px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; max-width: var(--max-w); margin: 0 auto;
}
.site-logo {
  font-size: 24px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.5px; text-decoration: none;
}
.site-logo:hover { color: var(--accent-hover); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); }
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 26px;
  color: var(--text); cursor: pointer;
}

/* === Logo + Wordmark (header nav) === */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 32px; width: auto;
  filter: drop-shadow(0 0 6px rgba(40,146,255,0.4));
  transition: filter .3s;
}
.nav-logo:hover img { filter: drop-shadow(0 0 12px rgba(40,146,255,0.7)); }
.nav-logo .wordmark {
  font-size: 22px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.5px;
}
.nav-logo:hover .wordmark { color: var(--accent-hover); }

/* === Hero logo with animated glow === */
.hero-logo {
  height: 100px; width: auto;
  margin-bottom: 28px;
  animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(40,146,255,0.3)) drop-shadow(0 0 30px rgba(40,146,255,0.15));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(40,146,255,0.6)) drop-shadow(0 0 50px rgba(40,146,255,0.3));
  }
}

/* === Accent badge (small logo as decorative element) === */
.logo-badge {
  display: inline-flex;
  width: 28px; height: 28px;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(40,146,255,0.3));
}

/* === Logo divider between sections === */
.logo-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin: 0; padding: 24px 0;
}
.logo-divider .line {
  flex: 1; max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.logo-divider img {
  width: 48px; height: 48px;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(40,146,255,0.2));
  transition: opacity .3s, transform .3s;
}
.logo-divider:hover img {
  opacity: 1; transform: scale(1.1);
  filter: drop-shadow(0 0 16px rgba(40,146,255,0.5));
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,119,6,0.12) 0%, transparent 60%);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 40px;
}
.stat-card {
  background: var(--bg-card);
  padding: 32px 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.stat-number {
  font-size: 40px; font-weight: 800; color: var(--accent);
  margin-bottom: 6px;
}
.stat-label { font-size: 15px; color: var(--text-dim); }

/* === Sections === */
.section { padding: 80px 20px; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-bright);
}
.section > .container > p.subtitle {
  text-align: center; color: var(--text-dim);
  font-size: 18px; max-width: 600px; margin: 0 auto 50px;
}

/* === Feature cards === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color .2s, background .2s;
}
.feature-card:hover { border-color: var(--accent-dim); background: var(--bg-card-hover); }
.feature-card h3 {
  font-size: 22px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 12px;
}
.feature-card p { color: var(--text-dim); font-size: 16px; }
.feature-card .icon {
  font-size: 32px; margin-bottom: 16px; display: block;
}

/* === Video grid === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.video-card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.video-card .thumb {
  position: relative; aspect-ratio: 9/16; background: #000;
  cursor: pointer; overflow: hidden;
}
.video-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s;
}
.video-card .thumb .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .2s;
}
.video-card .thumb:hover .play-overlay { opacity: 1; }
.video-card .thumb .play-overlay svg {
  width: 56px; height: 56px; fill: var(--accent);
}
.video-card .info { padding: 16px 18px; }
.video-card .info h3 {
  font-size: 15px; font-weight: 600; color: var(--text-bright);
  margin-bottom: 6px; line-height: 1.4;
}
.video-card .info .num {
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.video-card .info p {
  font-size: 14px; color: var(--text-dim);
  margin-top: 8px; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Video basics page (full sections) === */
.video-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.video-section .embed {
  position: relative; aspect-ratio: 9/16; max-width: 360px;
}
.video-section .embed iframe {
  width: 100%; height: 100%; border: none; border-radius: 8px;
}
.video-section .text h2 {
  font-size: 26px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 16px; text-align: left;
}
.video-section .text p {
  color: var(--text-dim); font-size: 16px; line-height: 1.8;
  white-space: pre-wrap;
}

/* === About / what-is page === */
.about-content {
  max-width: 800px; margin: 0 auto;
}
.about-content .info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.about-content .info-block h3 {
  font-size: 20px; font-weight: 700; color: var(--accent);
  margin-bottom: 12px;
}
.about-content .info-block p {
  color: var(--text); font-size: 17px; line-height: 1.8;
}
.about-content .info-block ul {
  list-style: none; margin-top: 8px;
}
.about-content .info-block ul li {
  padding: 6px 0; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.about-content .info-block ul li:last-child { border-bottom: none; }

/* === Ecosystem === */
.ecosystem {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; margin: 40px 0;
}
.platform-box {
  border: 3px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 300px; text-align: center;
  background: var(--bg-card);
}
.platform-box h4 {
  font-size: 22px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 8px;
}
.platform-box p { color: var(--text-dim); font-size: 15px; }
.arrow {
  font-size: 40px; color: var(--accent); font-weight: 700;
}

/* === CTA === */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(217,119,6,0.08), rgba(180,83,9,0.04));
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--text-bright); margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-dim); font-size: 18px;
  max-width: 600px; margin: 0 auto 32px;
}
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* === Social === */
.social-links {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 30px 0;
}
.social-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* === Quote === */
.quote-block {
  text-align: center;
  max-width: 700px; margin: 40px auto;
  padding: 32px;
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
.quote-block p {
  font-size: 20px; color: var(--text);
  font-style: italic; line-height: 1.6;
}
.quote-block strong { color: var(--accent); font-style: normal; }

/* === Footer === */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  text-align: center;
}
.footer-logo {
  height: 44px; width: auto; margin-bottom: 12px;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(40,146,255,0.2));
  transition: opacity .3s;
}
.footer-logo:hover { opacity: 1; }
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-links {
  display: flex; gap: 24px; list-style: none; flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.site-footer .copyright {
  color: #555; font-size: 13px;
}

/* === Tabs (for why-is page) === */
.tabs {
  display: flex; justify-content: center;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 14px 28px; background: none; border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-dim); font-size: 16px; cursor: pointer;
  transition: color .2s, border-color .2s; font-weight: 500;
}
.tab-btn:hover { color: var(--text-bright); }
.tab-btn.active {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tab-content h3 {
  font-size: 26px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 16px;
}
.tab-content ul {
  list-style: none; color: var(--text-dim);
  font-size: 16px; line-height: 2;
}
.tab-content ul li::before { content: "→ "; color: var(--accent); }

/* === Chart bars === */
.chart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; margin: 10px 0;
  background: var(--bg-card); border-radius: 8px;
  border: 1px solid var(--border);
}
.chart-label { font-weight: 600; color: var(--text-bright); font-size: 15px; }
.chart-bar {
  height: 28px; background: var(--accent); border-radius: 4px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 10px; color: #fff; font-weight: 600; font-size: 14px;
  min-width: 50px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }

  .hero { padding: 60px 20px 50px; }
  .section { padding: 50px 20px; }

  .video-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .video-section .embed { max-width: 100%; margin: 0 auto; }
  .video-section .text h2 { text-align: center; }

  .arrow { transform: rotate(90deg); }
  .stats { grid-template-columns: 1fr; }
}
