/* ============================================
   NewTube.Club – Landing Page
   Visual impactante · Responsive · Kids-inspired
   ============================================ */

:root {
  /* Palette – vibrante + profissional */
  --primary: #7C3AED;       /* Roxo vibrante */
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --secondary: #EC4899;     /* Rosa */
  --accent: #06B6D4;        /* Ciano */
  --success: #10B981;
  --warning: #F59E0B;
  
  --bg: #0F0A1A;
  --bg-card: #1A1225;
  --bg-elevated: #241B33;
  --text: #F8F7FC;
  --text-muted: #A89BB8;
  --border: rgba(167, 139, 250, 0.15);
  
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.25);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== Animated Background ========== */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}

.shape-1 {
  width: 420px; height: 420px;
  background: var(--primary);
  top: -120px; left: -80px;
  animation-delay: 0s;
}
.shape-2 {
  width: 320px; height: 320px;
  background: var(--secondary);
  top: 40%; right: -100px;
  animation-delay: -5s;
}
.shape-3 {
  width: 280px; height: 280px;
  background: var(--accent);
  bottom: 10%; left: 15%;
  animation-delay: -10s;
}
.shape-4 {
  width: 200px; height: 200px;
  background: #8B5CF6;
  top: 20%; left: 50%;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-img { border-radius: 12px; }
.logo-text .accent { color: var(--primary-light); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}
.btn-nav:hover { filter: brightness(1.1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary-light); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  background: linear-gradient(135deg, #A78BFA, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== Sections ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== Channel Cards ========== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(167, 139, 250, 0.35);
}

.rank-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #94A3B8, #64748B); }
.rank-3 .rank-badge { background: linear-gradient(135deg, #CD7F32, #A0522D); }

.channel-visual {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}

.channel-emoji {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.channel-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.channel-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.channel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-light);
}
.stat-key {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.channel-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
}

.channel-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  transition: color 0.2s;
}
.channel-link:hover { color: #22D3EE; }

.data-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== Dark Channels ========== */
.dark-channels {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.06) 50%, transparent 100%);
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.dark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.3);
}

.dark-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.dark-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.dark-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== Sobre ========== */
.sobre-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.sobre-visual {
  display: flex;
  justify-content: center;
}

.orbit {
  position: relative;
  width: 220px;
  height: 220px;
}

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

.orbit-item {
  position: absolute;
  width: 48px; height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  animation: orbit 12s linear infinite;
}

.o1 { top: 0; left: 50%; margin-left: -24px; animation-delay: 0s; }
.o2 { top: 50%; right: 0; margin-top: -24px; animation-delay: -3s; }
.o3 { bottom: 0; left: 50%; margin-left: -24px; animation-delay: -6s; }
.o4 { top: 50%; left: 0; margin-top: -24px; animation-delay: -9s; }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(85px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(85px) rotate(-360deg); }
}

/* ========== CTA ========== */
.cta-section { padding-bottom: 6rem; }

.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-copy, .footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .channels-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .dark-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sobre-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sobre-visual { order: -1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(15, 10, 26, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle { display: flex; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero { padding-top: calc(var(--header-h) + 2.5rem); }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }

  .dark-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2rem 1.25rem; }
}

@media (max-width: 400px) {
  .channel-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .stat-item { display: flex; justify-content: space-between; align-items: center; }
  .stat-key { text-transform: none; letter-spacing: 0; }
}
