:root {
  /* Color Palette */
  --bg-deep: #151515;
  --bg-surface: #0e0e0e;
  --bg-elevated: #111111;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);

  --primary: #7c80f384;
  --primary-glow: rgba(92, 124, 255, 0.3);
  --accent: #00f2ff;
  --accent-glow: rgba(0, 242, 255, 0.2);

  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #606060;

  --glass: rgba(255, 255, 255, 0.03);
  --glass-heavy: rgba(255, 255, 255, 0.05);

  /* Spacing & Transitions */
  --container-max: 1200px;
  --section-padding: 120px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
.logo {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Background Glow Effects */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

#orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-glow);
  top: -200px;
  right: -100px;
}

#orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  bottom: -100px;
  left: -100px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, padding 0.3s ease,
    box-shadow 0.3s ease, border-bottom 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: background-color, padding;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
}

.nav-cta:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: background-color 0.2s ease;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
  will-change: transform;
}

.mobile-toggle span::before {
  top: -8px;
}

.mobile-toggle span::after {
  bottom: -8px;
}

.mobile-toggle.active span {
  background: transparent;
}

.mobile-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 100px;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-heavy);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -2px;
}

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

.hero-lead {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: var(--glass-heavy);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--primary);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Services Section */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 48px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: var(--bg-deep);
}

.icon-box {
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-heavy);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.icon-box svg {
  width: 38px;
  height: 38px;
  transition: var(--transition);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

.service-card:hover .icon-box {
  background: var(--bg-deep);
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow), inset 0 0 15px var(--primary-glow);
  transform: translateY(-5px);
}

.service-card:hover .icon-box svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--primary)) brightness(1.3);
}

/* Specific accent for the MarketBridge icon if needed */
.service-card .icon-box svg[style*="--accent"] {
  filter: drop-shadow(0 0 12px var(--accent)) brightness(1.3);
}

.service-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.card-features li {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.card-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Membership Section */
.membership {
  padding: var(--section-padding) 0;
}

.glass-box {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.membership-content h2 {
  font-size: 42px;
  margin-bottom: 24px;
}

.membership-content p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px;
}

.membership-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  font-family: "Outfit", sans-serif;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.exclusive-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.exclusive-badge img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 1;
  border: 4px solid rgba(124, 128, 243, 0.4);
  box-shadow: 0 0 30px rgba(124, 128, 243, 0.5);
}

/* Contact Section */
.contact {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 0px;
  display: block;
}

.contact-subheading {
  font-size: 32px !important;
  font-weight: 600 !important;
  margin-bottom: 24px;
  color: var(--primary) !important;
}

.contact-info .section-title {
  margin-bottom: 32px;
}

.contact-info p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-form-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 48px;
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-group select {
  height: 56px;
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

.footer-legal {
  text-align: right;
}

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

.legal-badge {
  margin-top: 8px;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .membership-stats {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 80px 40px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 1px solid var(--border-subtle);
    z-index: 1000;
    transform: translateX(100%);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 20px;
    font-weight: 600;
    transition: color 0.2s ease;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 140px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  /* Membership Section Mobile Fixes */
  .membership-stats {
    flex-direction: column;
    gap: 32px;
  }

  .glass-box {
    padding: 60px 24px;
  }

  .membership-content h2 {
    font-size: 32px;
  }

  /* Contact Section Mobile */
  .contact-logo {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .contact-subheading {
    font-size: 24px !important;
  }

  .contact-form-wrapper {
    padding: 19px;
  }
}
