/* V3.1 Ultra-Premium Variables */
:root[data-theme="dark"] {
  --bg-base: #000000;
  --bg-card: rgba(14, 14, 14, 0.4);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-main: #ffffff;
  --text-dim: #888888;
  --text-dimmer: #555555;
  --accent-primary: #ffffff;
  --accent-primary-text: #000000;

  --mesh-1: rgba(30, 0, 150, 0.4);
  --mesh-2: rgba(0, 150, 255, 0.2);

  --success-glow: rgba(48, 209, 88, 0.3);
  --success-border: rgba(48, 209, 88, 0.6);
  --error-glow: rgba(255, 69, 58, 0.3);
  --error-border: rgba(255, 69, 58, 0.6);
  --discord-glow: rgba(88, 101, 242, 0.3);
  --discord-border: rgba(88, 101, 242, 0.6);
}

:root[data-theme="light"] {
  --bg-base: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.6);
  --border-soft: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-main: #1d1d1f;
  --text-dim: #86868b;
  --text-dimmer: #c1c1c1;
  --accent-primary: #1d1d1f;
  --accent-primary-text: #ffffff;

  --mesh-1: rgba(180, 200, 255, 0.4);
  --mesh-2: rgba(220, 200, 255, 0.4);

  --success-glow: rgba(48, 209, 88, 0.2);
  --success-border: rgba(48, 209, 88, 0.5);
  --error-glow: rgba(255, 69, 58, 0.2);
  --error-border: rgba(255, 69, 58, 0.5);
  --discord-glow: rgba(88, 101, 242, 0.2);
  --discord-border: rgba(88, 101, 242, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Add premium grain/noise overlay for high-end look */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
h5,
.logo,
.badge {
  font-family: 'Clash Display', sans-serif;
}

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

/* --- Aurora Mesh Background --- */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-base);
}

.mesh-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  animation: pulseRotate 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-left {
  width: 50vw;
  height: 50vh;
  background: var(--mesh-1);
  top: -10%;
  left: -20%;
}

.blob-right {
  width: 40vw;
  height: 60vh;
  background: var(--mesh-2);
  bottom: -20%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 80%);
}

@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }

  100% {
    transform: scale(1.2) rotate(45deg) translate(5vw, 5vh);
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(var(--bg-base), 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  color: var(--text-dim);
}

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

.icon-button {
  background: none;
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-button:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

[data-theme="dark"] .dark-icon {
  display: none;
}

[data-theme="dark"] .light-icon {
  display: block;
}

[data-theme="light"] .dark-icon {
  display: block;
}

[data-theme="light"] .light-icon {
  display: none;
}

/* Custom Dropdown UI */
.custom-dropdown {
  position: relative;
  font-size: 0.9rem;
}

.dropdown-trigger {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 0 1rem;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.dropdown-trigger:hover {
  border-color: var(--text-main);
}

.custom-dropdown.open .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  min-width: 140px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1000;
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  padding: 0.8rem 1.2rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--border-soft);
  color: var(--text-main);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* --- Advanced Hero Section --- */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  min-height: 60vh;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  animation: fadeUp 1s ease forwards;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NEW: Animated Gradient Text replacing the ugly stroke */
.animated-gradient-text {
  background: linear-gradient(270deg, #ff8a00, #e52e71, #9c27b0, #00c6ff, #ff8a00);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.typewriter-container {
  font-family: monospace;
  font-size: 1rem;
  color: var(--text-dimmer);
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.mock-strike {
  text-decoration: line-through;
  text-decoration-color: var(--error-border);
  color: var(--text-main);
  font-weight: bold;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--text-main);
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.6;
}

/* --- Buttons --- */
.cta-stacked {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
}

/* --- Real 3D Glass Hero Visual (Right side) --- */
.hero-visual {
  flex: 0.8;
  perspective: 1500px;
  /* Required for 3D effect */
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-bento {
  position: relative;
  display: block;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 3rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  /* Transform is handled by JS but we add a smooth returning transition */
  transition: transform 0.1s ease-out, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-bento:hover {
  border-color: rgba(245, 158, 11, 0.5);
  /* Gold hover */
}

/* The actual elements inside pop out via translateZ */
.glass-content {
  transform: translateZ(30px);
  /* 3D pop effect */
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 60%);
  pointer-events: none;
}

.glass-icon-wrapper i {
  font-size: 2.5rem;
  color: #f59e0b;
  margin-bottom: 1.5rem;
}

.glass-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.glass-content p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.glass-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f59e0b;
  font-weight: 500;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
}

/* --- Bento Grid UI Section --- */
.bento-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-header {
  max-width: 600px;
}

.bento-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.bento-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid Magic */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(min-content, max-content);
  gap: 1.5rem;
}

/* Spotlight Card Base */
.bento-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Spotlight Mouse Glow Logic */
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  /* border thickness */
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.2),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(255, 255, 255, 0.03),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cards-wrapper:hover .bento-card::after {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  height: 100%;
}

/* Specific Grid Placements */
.bento-large {
  grid-column: span 12;
}

.bento-small {
  grid-column: span 6;
}

.bento-wide {
  grid-column: span 12;
  display: flex;
}

/* Card Styling Contexts */
.bento-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mulebuy-accent .bento-icon-box {
  background: var(--success-glow);
  color: var(--success-border);
}

.error-accent .bento-icon-box {
  background: var(--error-glow);
  color: var(--error-border);
}

/* List Styling */
.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bento-list li {
  font-size: 1rem;
  color: var(--text-dim);
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.bento-list li strong {
  color: var(--text-main);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  display: block;
  margin-bottom: 0.2rem;
}

.bento-list li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
}

.mulebuy-accent .bento-list li::before {
  content: '\f00c';
  color: var(--success-border);
}

.error-accent .bento-list li::before {
  content: '\f00d';
  color: var(--error-border);
}

/* Review Verdict Typography Design (Editorial) */
.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.premium-quote {
  font-size: 2.5rem;
  color: var(--border-hover);
}

.verdict-text {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 300;
}

.verdict-text strong {
  font-weight: 600;
  color: var(--text-main);
}

/* Discord Flex Content */
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.discord-info h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.discord-info p {
  color: var(--text-dim);
  max-width: 500px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  color: var(--text-main);
}

.footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .cta-stacked {
    justify-content: center;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-visual {
    flex: 1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .cards-wrapper {
    display: flex;
    flex-direction: column;
  }

  .bento-large,
  .bento-small,
  .bento-wide {
    grid-column: span 12;
  }

  .flex-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}