:root {
  --primary: #a855f7;
  --primary-glow: #c084fc;
  --secondary: #260b4c;
  --bg-dark: #0b0514;
  --bg-card: rgba(17, 6, 38, 0.7);
  --border-glow: rgba(168, 85, 247, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
.font-brush {
  font-family: 'Permanent Marker', cursive;
  font-style: italic;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--border-glow);
}

.btn-primary:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 25px var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 15px var(--border-glow);
  transform: translateY(-2px);
}

.btn-patreon-small {
  background: #ff424d;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-patreon-small:hover {
  background: #ff5c66;
  box-shadow: 0 0 15px rgba(255, 66, 77, 0.4);
}

/* Background Effects */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

#stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #5b21b6;
  bottom: 20%;
  left: -200px;
}

/* Layout */
.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand-title {
  font-family: 'Kaushan Script', cursive;
  font-size: 2rem;
  color: var(--primary-glow);
  text-shadow: 0 0 10px var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-item a:hover, .nav-item.active a {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section Common */
section {
  padding: 4rem 0;
}

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

.section-header h2 {
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--primary-glow);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 70vh;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.pill-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--primary);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-glow);
  margin-bottom: 1rem;
}

.main-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.title-line {
  display: block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 450px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links a {
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--primary-glow);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Latest Reaction */
.latest-card-container {
  display: flex;
  justify-content: center;
}

.latest-reaction-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.latest-thumb-container {
  flex: 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.latest-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.latest-thumb-container:hover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s;
}

.latest-thumb-container:hover .play-overlay {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

.video-timestamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.latest-info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.latest-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.latest-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Choose Your Way */
.tier-cards-container {
  display: flex;
  gap: 2rem;
}

.tier-card {
  flex: 1;
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.tier-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.tier-bg {
  position: absolute;
  top: 0;
  right: -20%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  mask-image: linear-gradient(to left, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
  transition: transform 0.5s;
}

.tier-card:hover .tier-bg {
  transform: scale(1.05);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.youtube-badge {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4e4e;
  border: 1px solid #ff0000;
}

.patreon-badge {
  background: rgba(255, 66, 77, 0.2);
  color: #ff5c66;
  border: 1px solid #ff424d;
}

.tier-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tier-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: #e2e8f0;
}

.tier-features i {
  color: var(--primary);
}

.btn-primary-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  transition: all 0.3s;
}
.btn-primary-full:hover { background: var(--primary-glow); }

.btn-patreon-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  background: #ff424d;
  color: white;
  transition: all 0.3s;
}
.btn-patreon-full:hover { background: #ff5c66; }

/* Recent Reactions */
.section-header .view-all-link {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.section-header .view-all-link:hover { color: white; }

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}
.carousel-container::-webkit-scrollbar { display: none; } /* Chrome */

.video-card {
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.video-thumb {
  position: relative;
  height: 150px;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 1rem;
}
.video-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-btn {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  transition: all 0.3s;
}
.carousel-btn:hover { background: var(--primary); }
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Shop Section */
.shop-banner {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  align-items: center;
}

.merch-showcase {
  flex: 1;
  display: flex;
  gap: 1rem;
  z-index: 1;
}

.merch-item {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem;
  transition: transform 0.3s;
}
.merch-item:hover { transform: translateY(-5px); }
.merch-item.hoodie { transform: scale(1.1); }

.shop-info {
  flex: 1;
  z-index: 1;
  padding-left: 2rem;
}

.shop-title {
  font-size: 2.5rem;
  color: var(--primary-glow);
  margin-bottom: 1rem;
}

.shop-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.shop-features li {
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}
.shop-features i {
  color: var(--primary);
  margin-right: 0.5rem;
}

#btn-visit-shop {
  margin-top: 1.5rem;
}

.shop-bg-character {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 110%;
  opacity: 0.4;
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  z-index: 0;
}

/* Stay Updated */
.stay-updated-section {
  display: flex;
  justify-content: center;
}

.stay-updated-container {
  background: linear-gradient(90deg, rgba(139,61,255,0.1) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
}

.stay-updated-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mail-icon-badge {
  background: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--border-glow);
}

.stay-updated-text h3 {
  font-size: 1.5rem;
}
.stay-updated-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  color: white;
  outline: none;
  width: 250px;
}
.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  border-radius: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}

.footer-logo {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.8rem;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: white; }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.footer-socials a:hover { color: var(--primary-glow); }

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* Modal */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal-backdrop.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.4);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.modal-close:hover { color: var(--primary); }

.video-screen {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.video-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading Spinner */
.loading-spinner {
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section { flex-direction: column-reverse; text-align: center; }
  .hero-visual { justify-content: center; margin-bottom: 2rem; }
  .hero-actions { justify-content: center; }
  .social-links { justify-content: center; }
  .latest-reaction-card { flex-direction: column; }
  .tier-cards-container { flex-direction: column; }
  .shop-banner { flex-direction: column; text-align: center; }
  .shop-info { padding-left: 0; padding-top: 2rem; }
  .stay-updated-container { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-title { font-size: 3rem; }
  .merch-showcase { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
  .modal-close { top: -40px; right: 0; }
}
