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

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

:root {
  --bg: #0a0a12;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,136,0,0.2);
  --border-hover: rgba(255,136,0,0.6);
  --primary: #ff8800;
  --primary-dark: #cc6d00;
  --primary-glow: rgba(255,136,0,0.25);
  --twitch: #9146FF;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --radius: 16px;
  --nav-height: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 0 20px var(--primary-glow);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all .25s;
  letter-spacing: .3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,136,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(145,70,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(255,136,0,0.1);
  animation: float 5s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 60%, #ff4400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .25s;
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-3px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
  background: #ffaa33;
  box-shadow: 0 0 50px var(--primary-glow), 0 4px 20px rgba(255,136,0,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-2px);
}

.btn-twitch {
  background: var(--twitch);
  color: #fff;
  box-shadow: 0 0 30px rgba(145,70,255,0.3);
}

.btn-twitch:hover {
  background: #a855ff;
  box-shadow: 0 0 50px rgba(145,70,255,0.5);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ── CONTENT CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
}

.content-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow), 0 8px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.card-icon { font-size: 36px; }

.content-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.content-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* ── PAGE HERO (sub pages) ── */
.page-hero {
  padding: 60px 40px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(255,136,0,0.08) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ── TWITCH EMBED ── */
.stream-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.stream-player {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stream-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stream-chat {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 500px;
}

.stream-chat iframe {
  width: 100%;
  height: 100%;
}

.stream-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e60000;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}

.live-badge::before {
  content: '●';
  animation: blink 1.2s infinite;
}

/* ── VIDEOS ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
}

.video-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-4px);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 16px 20px;
}

.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.yt-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.yt-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  line-height: 1.7;
}

.yt-hint code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--primary);
}

.yt-cta {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.yt-cta h3 { font-size: 24px; margin-bottom: 12px; }
.yt-cta p { color: var(--text-muted); margin-bottom: 28px; }

/* ── COMMUNITY ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
}

.community-card:hover {
  transform: translateY(-6px);
}

.community-card.twitch:hover { border-color: var(--twitch); box-shadow: 0 0 40px rgba(145,70,255,0.25); }
.community-card.youtube:hover { border-color: #ff0000; box-shadow: 0 0 40px rgba(255,0,0,0.2); }
.community-card.discord:hover { border-color: #5865F2; box-shadow: 0 0 40px rgba(88,101,242,0.25); }
.community-card.tiktok:hover { border-color: #69C9D0; box-shadow: 0 0 40px rgba(105,201,208,0.2); }
.community-card.instagram:hover { border-color: #E1306C; box-shadow: 0 0 40px rgba(225,48,108,0.2); }

.community-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-icon svg { width: 32px; height: 32px; }

.community-card.twitch .community-icon { background: rgba(145,70,255,0.2); color: var(--twitch); }
.community-card.youtube .community-icon { background: rgba(255,0,0,0.15); color: #ff4444; }
.community-card.discord .community-icon { background: rgba(88,101,242,0.2); color: #7289da; }
.community-card.tiktok .community-icon { background: rgba(105,201,208,0.15); color: #69C9D0; }
.community-card.instagram .community-icon { background: rgba(225,48,108,0.15); color: #E1306C; }

.community-card h3 { font-size: 20px; font-weight: 700; }
.community-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.community-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid;
  transition: all .25s;
  margin-top: 4px;
}

.community-card.twitch .community-btn { border-color: var(--twitch); color: var(--twitch); }
.community-card.youtube .community-btn { border-color: #ff4444; color: #ff4444; }
.community-card.discord .community-btn { border-color: #7289da; color: #7289da; }
.community-card.tiktok .community-btn { border-color: #69C9D0; color: #69C9D0; }
.community-card.instagram .community-btn { border-color: #E1306C; color: #E1306C; }

.community-card:hover .community-btn {
  color: #000;
}

.community-card.twitch:hover .community-btn { background: var(--twitch); }
.community-card.youtube:hover .community-btn { background: #ff4444; }
.community-card.discord:hover .community-btn { background: #7289da; }
.community-card.tiktok:hover .community-btn { background: #69C9D0; }
.community-card.instagram:hover .community-btn { background: #E1306C; }

/* ── FOOTER ── */
footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--primary); }

/* ── ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stream-wrap {
    grid-template-columns: 1fr;
  }
  .stream-chat { height: 400px; }
}

@media (max-width: 700px) {
  nav { padding: 0 20px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,18,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }

  .section { padding: 60px 20px; }
  .page-hero { padding: 40px 20px 30px; }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }
}
