/* ==========================================================================
   RIVONX — LUXURY DARK FINTECH DESIGN SYSTEM
   Website Single-Page PHP Template Stylesheet
   Typography: Inter & Outfit
   Palette: Deep Obsidian Void, Neon Electric Cyan, Sovereign Metallic Gold
   ========================================================================== */

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

:root {
  /* Surface & Background */
  --bg-void: #02060D;
  --bg-dark: #050B14;
  --bg-surface: #091322;
  --bg-card: rgba(13, 27, 49, 0.72);
  --bg-card-hover: rgba(18, 38, 70, 0.88);
  --bg-card-solid: #0A1424;
  --bg-glass: rgba(10, 20, 36, 0.65);
  --bg-glass-heavy: rgba(5, 11, 20, 0.88);

  /* Primary Accent: Electric Cyan */
  --cyan-primary: #00E5FF;
  --cyan-bright: #33EBFF;
  --cyan-deep: #0077FE;
  --cyan-glow: rgba(0, 229, 255, 0.28);
  --cyan-subtle: rgba(0, 229, 255, 0.10);

  /* Secondary Accent: Sovereign Gold */
  --gold-primary: #FFD700;
  --gold-metallic: #D4AF37;
  --gold-light: #FFF2A1;
  --gold-glow: rgba(255, 215, 0, 0.28);
  --gold-subtle: rgba(212, 175, 55, 0.12);

  /* Success & Alert */
  --green-profit: #10B981;
  --green-glow: rgba(16, 185, 129, 0.25);
  --red-risk: #EF4444;

  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #0F172A;

  /* Borders & Dividers */
  --border-subtle: rgba(30, 58, 95, 0.55);
  --border-light: rgba(51, 97, 158, 0.35);
  --border-cyan: rgba(0, 229, 255, 0.40);
  --border-gold: rgba(212, 175, 55, 0.45);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-cyan: 0 0 25px rgba(0, 229, 255, 0.35);
  --shadow-gold: 0 0 25px rgba(255, 215, 0, 0.35);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Layout */
  --container-max: 1280px;
  --navbar-height: 84px;
  --subbar-height: 50px;
  --ticker-height: 40px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET & BASE ================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + var(--subbar-height) + var(--ticker-height) + 16px);
  font-size: 16px;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(0, 119, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #030712 0%, #02060D 100%);
  background-attachment: fixed;
}

/* Base Link & Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ================= GRADIENTS & UTILITIES ================= */
.gradient-text-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 50%, #0077FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FFF6BD 0%, #FFD700 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-cyan {
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  border: 1px solid var(--border-cyan);
}

.badge-gold {
  background: var(--gold-subtle);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Glow Pill Effect */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
  animation: pulse-ring 1.8s infinite;
}

.pulse-dot.gold {
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.pulse-dot.green {
  background-color: var(--green-profit);
  box-shadow: 0 0 10px var(--green-profit);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
  100% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* ================= 1. TOP ANNOUNCEMENT & FOREX TICKER ================= */
.top-ticker-bar {
  background: #040913;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
  font-size: 0.8125rem;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1010;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #061020;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cyan-primary);
  border-right: 1px solid var(--border-subtle);
  height: var(--ticker-height);
  z-index: 2;
}

.ticker-live-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #10B981;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.2;
}

.ticker-marquee-viewport {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.ticker-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: ticker-slide 35s linear infinite;
}

.ticker-marquee-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.ticker-item .pair {
  font-weight: 700;
  color: var(--text-white);
}

.ticker-item .price {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #E2E8F0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.ticker-item .price.flash-up {
  color: #34D399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.ticker-item .price.flash-down {
  color: #F87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.8);
}

.ticker-item .change-up {
  color: #10B981;
  font-weight: 600;
}

.ticker-item .change-down {
  color: #EF4444;
  font-weight: 600;
}

.ticker-quick-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--gold-primary);
  font-weight: 600;
  border-left: 1px solid var(--border-subtle);
  background: #061020;
  height: var(--ticker-height);
}

.ticker-quick-link:hover {
  color: #FFFFFF;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= 2. DEDICATED SUB MENU BAR ================= */
.sub-menu-bar {
  background: #030814;
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
  padding: 8px 0;
  position: relative;
  z-index: 1005;
}

.sub-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sub-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.sub-bar-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  color: var(--text-white);
}

.sub-bar-sep {
  color: rgba(255, 255, 255, 0.2);
}

.sub-bar-tag {
  color: var(--cyan-primary);
  font-weight: 600;
  font-size: 0.75rem;
}

.sub-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ================= 3. MAIN MENU BAR (FREE, SPACIOUS & UNCLUTTERED) ================= */
.main-navbar {
  position: sticky;
  top: 0;
  height: var(--navbar-height);
  background: rgba(4, 9, 18, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.main-navbar.scrolled {
  background: rgba(3, 7, 15, 0.98);
  border-bottom-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Brand Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Free & Spacious Desktop Navigation Menu Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto; /* Positions links cleanly across the free main navbar */
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--cyan-deep));
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link-badge {
  font-size: 0.6875rem;
  padding: 2px 6px;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border-radius: var(--radius-full);
  margin-left: 4px;
  font-weight: 700;
}

.navbar-mobile-actions {
  display: none;
}

/* Highlight Button 1: Capital Login (Gold Luxury Theme) */
.btn-capital-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(30, 24, 8, 0.9) 0%, rgba(45, 34, 12, 0.95) 100%);
  color: #FFF2A1;
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.18), inset 0 0 12px rgba(255, 215, 0, 0.12);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.btn-capital-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.btn-capital-login:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  color: #0A0F1D;
  border-color: #FFD700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-capital-login:hover::before {
  left: 100%;
}

.btn-capital-login .login-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: #FFF8D6;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-capital-login:hover .login-tag {
  background: rgba(10, 15, 29, 0.3);
  color: #0A0F1D;
}

/* Highlight Button 2: Signal Login (Electric Cyan Theme) */
.btn-signal-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00E5FF 0%, #0077FE 100%);
  color: #020814;
  border: 1.5px solid #33EBFF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.btn-signal-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-signal-login:hover {
  background: linear-gradient(135deg, #33EBFF 0%, #00B4D8 100%);
  color: #010611;
  border-color: #FFFFFF;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.65), 0 6px 20px rgba(0, 119, 254, 0.4);
  transform: translateY(-2px);
}

.btn-signal-login:hover::before {
  left: 100%;
}

.btn-signal-login .live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  background: rgba(2, 8, 20, 0.35);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  border-color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.08);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-card-solid);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-actions-stack .btn-capital-login,
.mobile-actions-stack .btn-signal-login {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  color: var(--text-white);
  background: rgba(0, 229, 255, 0.06);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ================= 3. HERO SECTION ================= */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(0, 119, 254, 0.06) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Primary Hero Buttons */
.btn-primary-cyan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00E5FF 0%, #0077FE 100%);
  color: #020814;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary-cyan:hover {
  background: linear-gradient(135deg, #33EBFF 0%, #00B4D8 100%);
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}

.btn-secondary-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 22, 10, 0.85);
  color: #FFF2A1;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-gold);
  transition: all var(--transition-fast);
}

.btn-secondary-gold:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  color: #0A0F1D;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
}

/* Hero Key Pillars Pill List */
.hero-feature-tags {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-tag-item svg {
  color: var(--cyan-primary);
}

/* Hero Right: Live Interactive Signal Preview Card */
.hero-visual-card {
  position: relative;
}

.signal-live-preview {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.signal-live-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-primary), #0077FE, var(--gold-primary));
}

.signal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.signal-pair-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-symbol {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-white);
}

.order-type-buy {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.signal-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.signal-param-box {
  background: rgba(5, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.param-value {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-white);
}

.param-value.target {
  color: #34D399;
}

.param-value.stop {
  color: #F87171;
}

.signal-progress-wrap {
  margin-bottom: 20px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--cyan-primary), #10B981);
  border-radius: var(--radius-full);
}

.signal-footer-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Floating Badge */
.floating-funded-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: linear-gradient(135deg, rgba(20, 17, 7, 0.95), rgba(40, 32, 10, 0.95));
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-funded-badge .badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.floating-funded-badge .badge-text h4 {
  font-size: 0.9375rem;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.floating-funded-badge .badge-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ================= 4. METRICS & TRUST STRIP ================= */
.metrics-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 15, 28, 0.65);
  padding: 36px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  border-right: 1px solid var(--border-subtle);
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-number.cyan {
  color: var(--cyan-primary);
}

.metric-number.gold {
  color: var(--gold-primary);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================= 5. SECTION COMMONS ================= */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 12px;
}

.section-tag.gold {
  color: var(--gold-primary);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================= 6. ABOUT & 5 STRATEGIC PILLARS ================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.15);
}

.pillar-card.gold-pillar {
  border-color: var(--border-gold);
  background: rgba(22, 20, 10, 0.65);
}

.pillar-card.gold-pillar:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-card.gold-pillar .pillar-icon {
  background: var(--gold-subtle);
  color: var(--gold-primary);
}

.pillar-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ================= 7. AI SIGNALS PACKAGES ================= */
.signals-section {
  background: rgba(5, 11, 20, 0.5);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.pricing-card.featured {
  border-color: var(--cyan-primary);
  background: linear-gradient(180deg, rgba(10, 24, 46, 0.9) 0%, rgba(6, 14, 28, 0.95) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.2);
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  right: 32px;
}

.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-name {
  font-size: 1.625rem;
  margin-bottom: 6px;
}

.pricing-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-cost-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.pricing-feature-item svg {
  flex-shrink: 0;
  color: var(--cyan-primary);
  margin-top: 3px;
}

.pricing-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.pricing-btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #0077FE 100%);
  color: #020814;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}

.pricing-btn-primary:hover {
  background: linear-gradient(135deg, #33EBFF 0%, #00B4D8 100%);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

.pricing-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1.5px solid var(--border-subtle);
}

.pricing-btn-outline:hover {
  border-color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan-primary);
}

/* ================= 8. CAPITAL PARTICIPATION PLANS ================= */
.capital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.capital-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.capital-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.capital-card.featured-gold {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, rgba(26, 28, 16, 0.9) 0%, rgba(13, 18, 12, 0.95) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.25);
}

.capital-tenure-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.capital-card-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.capital-target-box {
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
}

.capital-card.featured-gold .capital-target-box {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(18, 20, 10, 0.8);
}

.target-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.target-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-primary);
  margin: 4px 0;
}

.capital-card.featured-gold .target-val {
  color: var(--gold-primary);
}

.withdrawal-cycle-note {
  font-size: 0.8125rem;
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.capital-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.capital-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.capital-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.capital-features li svg {
  flex-shrink: 0;
  color: var(--cyan-primary);
  margin-top: 2px;
}

.capital-card.featured-gold .capital-features li svg {
  color: var(--gold-primary);
}

/* ================= 9. INTERACTIVE RETURN & FUNDED CALCULATOR ================= */
.calculator-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  max-width: 1040px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.calc-control-group {
  margin-bottom: 28px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.calc-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-white);
}

.calc-val-display {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan-primary);
}

/* Custom Range Slider */
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-primary);
  cursor: pointer;
  transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.quick-amount-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-quick-amount {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-quick-amount:hover, .btn-quick-amount.active {
  background: var(--cyan-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.btn-quick-amount.highlight-funded {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
}

/* Tenure Selector Tabs */
.tenure-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tenure-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.tenure-btn.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan-primary);
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.tenure-btn .tenure-title {
  font-size: 0.9375rem;
  font-weight: 700;
  display: block;
}

.tenure-btn .tenure-rate {
  font-size: 0.75rem;
  color: var(--cyan-primary);
  display: block;
  margin-top: 4px;
}

/* Calculator Result Panel */
.calc-result-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.result-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.result-stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.result-stat-val.cyan {
  color: var(--cyan-primary);
}

.result-stat-val.green {
  color: #10B981;
}

/* Funded Indicator Alert in Calculator */
.calc-funded-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
}

.calc-funded-status.unqualified {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
}

.calc-funded-status.qualified {
  background: linear-gradient(135deg, rgba(30, 25, 10, 0.9), rgba(45, 36, 12, 0.95));
  border: 1.5px solid var(--gold-primary);
  color: #FFF2A1;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--gold-primary); }
  50% { border-color: #FFF2A1; }
}

/* ================= 10. $2,500 FUNDED ACCOUNT HERO SECTION ================= */
.funded-hero-card {
  background: linear-gradient(135deg, rgba(16, 20, 28, 0.95) 0%, rgba(26, 24, 12, 0.95) 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.15);
}

.funded-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.funded-roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.roadmap-step {
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FUNDED ACCOUNT EVALUATION RULES MATRIX & TERMS STYLES
   ========================================================================== */
.funded-rules-card {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.12);
  position: relative;
}

.funded-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.funded-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.funded-rules-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
}

.funded-rules-table th,
.funded-rules-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.funded-rules-table th {
  background: rgba(5, 11, 20, 0.85);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-white);
}

.funded-rules-table th.rule-col-title {
  text-align: left;
  width: 30%;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.funded-rules-table td.rule-name {
  text-align: left;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Specific Stage Column Highlights */
.funded-rules-table .col-step-1,
.funded-rules-table .col-step-2 {
  color: var(--text-primary);
  width: 22%;
}

.funded-rules-table .col-pro-trader {
  background: rgba(255, 215, 0, 0.05);
  color: #FFF8D6;
  font-weight: 700;
  width: 26%;
  border-left: 1px solid rgba(255, 215, 0, 0.25);
  border-right: 1px solid rgba(255, 215, 0, 0.25);
}

.funded-rules-table th.col-pro-trader {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-primary);
  border-top: 2px solid var(--gold-primary);
}

.funded-rules-table tr:last-child td {
  border-bottom: none;
}

.funded-rules-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.funded-rules-table tr:hover td.col-pro-trader {
  background: rgba(255, 215, 0, 0.09);
}

.cell-highlight-gold {
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.0625rem;
}

.cell-highlight-cyan {
  color: var(--cyan-primary);
  font-weight: 700;
}

.cell-highlight-green {
  color: #10B981;
  font-weight: 800;
}

/* Funded Terms Quick Accordions inside section */
.funded-terms-cta-strip {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ================= 11. PARTNER & SETTLEMENT ECOSYSTEM ================= */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.ecosystem-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.ecosystem-box-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecosystem-box-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.partner-card {
  background: rgba(5, 11, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: all var(--transition-fast);
}

.partner-card:hover {
  background: rgba(10, 22, 40, 0.8);
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.partner-card img {
  max-height: 38px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
  transition: filter var(--transition-fast);
}

.partner-card:hover img {
  filter: brightness(1.1) contrast(1.2);
}

/* Network Notice */
.network-notice {
  margin-top: 36px;
  background: rgba(240, 185, 11, 0.08);
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.network-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.15);
  color: #F0B90B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= 12. REFERRAL PROGRAM ================= */
.referral-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.referral-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.referral-card.gold-ref {
  border-color: var(--border-gold);
}

.referral-card.cyan-ref {
  border-color: var(--border-cyan);
}

.tier-pills-row {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.tier-pill {
  flex: 1;
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.tier-rate {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.tier-rate.gold {
  color: var(--gold-primary);
}

.tier-rate.cyan {
  color: var(--cyan-primary);
}

.tier-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ================= 13. COMPREHENSIVE LEGAL ACCORDION & MODALS ================= */
/* In-Page Quick Access Accordion */
.legal-accordion-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.legal-tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.legal-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.legal-tab-btn.active {
  background: var(--cyan-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.legal-clause-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.legal-clause-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.legal-clause-trigger svg {
  color: var(--cyan-primary);
  transition: transform var(--transition-fast);
}

.legal-clause-card.open .legal-clause-trigger svg {
  transform: rotate(180deg);
}

.legal-clause-content {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-clause-card.open .legal-clause-content {
  display: block;
}

/* Fullscreen / Interactive Legal Modals */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.legal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.legal-modal-dialog {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.legal-modal-backdrop.open .legal-modal-dialog {
  transform: scale(1);
}

.legal-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-modal-body h3 {
  color: var(--text-white);
  font-size: 1.25rem;
  margin: 24px 0 10px;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* ================= 14. FOOTER ================= */
.main-footer {
  background: #030711;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 18px 0 24px;
  max-width: 320px;
}

.footer-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links-list a:hover {
  color: var(--cyan-primary);
  transform: translateX(3px);
}

/* Highlighted Portals Box in Footer */
.footer-portals-box {
  background: rgba(13, 27, 49, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-portals-box .btn-capital-login,
.footer-portals-box .btn-signal-login {
  width: 100%;
  justify-content: center;
}

.footer-disclaimer {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ================= 15. RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .capital-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }
  .navbar-mobile-actions {
    display: block;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-feature-tags, .hero-badge-wrap {
    justify-content: center;
  }
  .calc-grid, .funded-hero-grid, .ecosystem-grid, .referral-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .metric-item {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & Mobile Breakpoint for Sub Menu Bar & Main Navbar */
@media (max-width: 768px) {
  :root {
    --subbar-height: 52px;
    --navbar-height: 68px;
    --ticker-height: 36px;
  }

  /* TOP LIVE MARKET TICKER — EXPAND FULL WIDTH ON MOBILE */
  .ticker-quick-link {
    display: none !important; /* Hide Telegram link on mobile top bar so live ticker gets 100% of available width */
  }

  .ticker-label {
    padding: 0 8px;
    gap: 5px;
    border-right: 1px solid rgba(0, 229, 255, 0.25);
    background: #040913;
  }

  .ticker-label .ticker-title {
    display: none; /* Hide 'LIVE MARKET' text on mobile, keep pulse dot + REAL-TIME tag */
  }

  .ticker-live-tag {
    font-size: 0.5625rem;
    padding: 1px 5px;
    letter-spacing: 0.5px;
  }

  .ticker-marquee-viewport {
    flex: 1 1 auto;
    min-width: 0; /* Ensures flex container does not collapse or overflow */
    overflow: hidden;
  }

  .ticker-marquee-track {
    gap: 20px;
    animation: ticker-slide 28s linear infinite;
  }

  .ticker-item {
    gap: 5px;
    font-size: 0.75rem;
  }

  .ticker-item .pair {
    font-size: 0.75rem;
  }

  .ticker-item .price {
    font-size: 0.75rem;
  }

  .ticker-item [class*="change-"] {
    font-size: 0.6875rem;
  }

  .sub-menu-bar {
    padding: 6px 0;
  }

  .sub-bar-left {
    display: none; /* Hide subtitle text on mobile so dual action buttons have full width */
  }

  .sub-bar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: stretch;
  }

  .sub-bar-actions .btn-capital-login,
  .sub-bar-actions .btn-signal-login {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.8125rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .sub-bar-actions .btn-capital-login svg,
  .sub-bar-actions .btn-signal-login svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .navbar-brand img {
    height: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --navbar-height: 64px;
    --subbar-height: 50px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.875rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .funded-roadmap {
    grid-template-columns: 1fr;
  }
  .tier-pills-row {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calculator-wrap {
    padding: 24px 18px;
  }
  .funded-rules-card {
    padding: 24px 16px;
  }
}

/* Ultra-compact Mobile Screens (<= 380px, e.g. iPhone SE, 360px Android) */
@media (max-width: 380px) {
  .ticker-label {
    padding: 0 5px;
    gap: 4px;
  }

  .ticker-live-tag {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .ticker-marquee-track {
    gap: 16px;
  }

  .sub-bar-actions {
    gap: 6px;
  }

  .sub-bar-actions .btn-capital-login,
  .sub-bar-actions .btn-signal-login {
    padding: 8px 6px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .sub-bar-actions .live-indicator {
    display: none; /* Hide LIVE pill on < 380px to guarantee zero horizontal squeeze */
  }

  .navbar-brand img {
    height: 30px;
  }
}
