:root {
  --primary: #6366f1;
  --accent: #ec4899;
  --success: #10b981;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --card-radius: 24px;
  --font-family: "Outfit", sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background: #fdfdfd;
  min-height: 100vh;
  overflow-x: hidden;
}

.mesh-bg {
  z-index: -2;
  filter: blur(40px);
  opacity: 0.8;
  background: radial-gradient(at 80% 0, rgba(31, 221, 255, 0.2) 0, transparent 50%),
    radial-gradient(at 0%, #ffdbde 0, transparent 50%),
    radial-gradient(at 80%, rgba(255, 133, 173, 0.2) 0, transparent 50%),
    radial-gradient(at 0 100%, rgba(255, 181, 138, 0.2) 0, transparent 50%),
    radial-gradient(at 80% 100%, rgba(107, 102, 255, 0.2) 0, transparent 50%),
    radial-gradient(at 0 0, rgba(255, 133, 167, 0.2) 0, transparent 50%);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.noise-overlay {
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

/* Header Dock */
.header-dock {
  z-index: 100;
  border-radius: 50px;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
}

.header-dock:hover {
  padding-right: 1.5rem;
}

.hamburger-btn {
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: none;
  z-index: 102;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: flex;
  position: relative;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn .bar {
  background: #1f2937;
  border-radius: 2px;
  width: 24px;
  height: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover .bar {
  background: #6366f1;
}

.hamburger-btn.active .bar-1 {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .bar-2 {
  opacity: 0;
  transform: translateX(10px);
}

.hamburger-btn.active .bar-3 {
  transform: translateY(-8px) rotate(-45deg);
}

.dock-logo-container {
  opacity: 1;
  align-items: center;
  max-width: 200px;
  padding-right: 0.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  overflow: hidden;
}

.dock-divider {
  background: rgba(255, 255, 255, 0.2);
  width: 1px;
  height: 24px;
  margin: 0 0.75rem;
}

.dock-logo-text {
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 800;
}

.glass-float {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-float:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Menu Overlay */
.modern-menu-overlay {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  background: rgba(20, 20, 25, 0.95);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.modern-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-content {
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  transform: translateY(30px);
}

.modern-menu-overlay.active .menu-content {
  opacity: 1;
  transform: translateY(0);
}

.menu-logo {
  justify-content: center;
  margin-bottom: 3rem;
  display: flex;
}

.menu-logo-text {
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
}

.menu-nav {
  flex-direction: column;
  gap: 2rem;
  display: flex;
}

.menu-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.menu-nav a:after {
  content: "";
  background: #fff;
  width: 0;
  height: 2px;
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

.menu-nav a:hover {
  color: #fff;
  transform: scale(1.05);
}

.menu-nav a:hover:after {
  width: 100%;
}

.menu-footer {
  color: rgba(255, 255, 255, 0.4);
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  display: flex;
}

.menu-footer p {
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.menu-socials {
  gap: 1.5rem;
  display: flex;
}

.menu-social-link {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(156, 163, 175, 0.28);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
}

.menu-social-link:hover {
  color: #f3f4f6;
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(209, 213, 219, 0.45);
  transform: translateY(-1px);
}

.menu-social-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.close-menu-btn {
  display: none;
}

/* Mystery Box Widget */
.landing-mystery-widget {
  z-index: 50;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.mystery-box-widget {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.15);
}

.mystery-box-widget:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.25);
}

.mb-icon-wrapper {
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
  position: relative;
}

.mini-gift-box {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  font-size: 1.5rem;
  animation: 2s infinite bounce;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  to {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.mb-content {
  flex-direction: column;
  line-height: 1.2;
  display: flex;
}

.mb-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  font-weight: 800;
}

.mb-value-row {
  align-items: center;
  gap: 0.25rem;
  display: flex;
}

.mb-value {
  color: #059669;
  font-size: 1rem;
  font-weight: 800;
}

.mb-usdt-icon {
  width: 16px;
  height: 16px;
}

/* Landing Page */
.landing-page {
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.landing-page > section,
.landing-page > footer {
  z-index: 1;
  position: relative;
}

/* Hero Section */
.landing-hero {
  text-align: center;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 4rem 1rem;
  display: flex;
  position: relative;
}

.hero-pill {
  color: var(--primary);
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  margin-bottom: 2.5rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

.hero-title {
  letter-spacing: -3px;
  color: #111827;
  margin-bottom: 2rem;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtext {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
}

.usdt-inline {
  white-space: nowrap;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  display: inline-flex;
}

.usdt-inline-icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  display: inline-block;
}

/* Button Styles */
.btn-action {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  background: #111827;
  border: none;
  border-radius: 14px;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-action:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.w-full {
  width: 100%;
}

.connect-btn-icon {
  width: 24px;
  height: 24px;
}

/* Stats Section */
.stats-strip {
  color: #fff;
  text-align: center;
  background: #000;
  width: 100%;
  margin-top: auto;
  padding: 6rem 2rem;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  display: grid;
}

.stat-item h3 {
  color: #10b981;
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
  font-weight: 800;
}

.stat-item p {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.section-tag {
  color: #10b981;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  display: block;
}

/* Modules Section */
.modules-section {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.modules-header h2 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 800;
}

.modules-header p {
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.modules-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  display: grid;
}

.module-card {
  text-align: left;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
}

.module-card:hover {
  border-color: rgba(217, 248, 61, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.module-icon {
  color: #34d399;
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.module-title {
  color: #34d399;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.module-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

/* Flow Section */
.dark-flow-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.dark-flow-section:before {
  content: "";
  z-index: 0;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  width: 60%;
  height: 60%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flow-container {
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.flow-header {
  text-align: center;
  margin-bottom: 5rem;
}

.flow-header h2 {
  color: #1f2937;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.flow-header p {
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  display: grid;
  position: relative;
}

.flow-grid:after {
  content: "";
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0) 0%,
    rgba(99, 102, 241, 0.3) 50%,
    rgba(99, 102, 241, 0) 100%
  );
  height: 1px;
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
}

.flow-step-card {
  text-align: center;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: relative;
}

.flow-icon-box {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.flow-icon-box svg {
  color: #6366f1;
}

.flow-step-card:hover .flow-icon-box {
  border-color: #6366f1;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.2);
}

.flow-step-number {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.flow-title {
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.flow-desc {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.faq-title {
  text-align: center;
  color: #111827;
  margin-bottom: 4rem;
  font-size: 3rem;
  font-weight: 800;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
  cursor: pointer;
  width: 100%;
  font-family: var(--font-family);
  color: #1f2937;
  text-align: left;
  background: transparent;
  border: none;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.2s;
  display: flex;
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-icon {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* Footer */
.landing-footer {
  color: #fff;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 2rem;
}

.footer-content {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}

.footer-logo {
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-block;
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  color: #9ca3af;
  line-height: 1.45;
}

.footer-socials {
  gap: 0.7rem;
  margin-top: 1rem;
  display: flex;
}

.footer-social {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(156, 163, 175, 0.28);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
}

.footer-social:hover {
  color: #f3f4f6;
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(209, 213, 219, 0.45);
  transform: translateY(-1px);
}

.footer-social-svg {
  width: 17px;
  height: 17px;
  display: block;
}

.footer-links {
  justify-content: flex-end;
  gap: 2rem;
  display: flex;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: #6b7280;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .modules-header h2 {
    font-size: 2.5rem;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .flow-grid:after {
    display: none;
  }

  .faq-title {
    font-size: 2rem;
  }

  .footer-content {
    text-align: center;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .landing-mystery-widget {
    justify-content: center;
    margin: 1rem auto 0;
    display: flex;
    position: static;
  }

  .header-dock {
    top: 1rem;
    left: 1rem;
  }

  .hamburger-btn {
    width: 3rem;
    height: 3rem;
  }

  .dock-logo-container {
    max-width: 140px;
  }

  .dock-logo-text {
    font-size: 1.25rem;
  }

  .landing-hero {
    padding-top: 6rem;
  }
}

@media (max-width: 520px) {
  .hero-title {
    letter-spacing: -1px;
    font-size: 2.4rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .stats-strip {
    padding: 4rem 1.25rem;
  }

  .modules-header h2 {
    font-size: 2.2rem;
  }

  .flow-header h2 {
    font-size: 2.1rem;
  }

  .faq-section {
    padding: 4rem 1.25rem;
  }
}

/* Utilities */
[hidden] {
  display: none !important;
}

.text-muted {
  color: var(--text-muted);
}

.text-green {
  color: var(--success);
}
