
/* NEXUS v4 - Global Information Hub */
/* Fixed overlapping, modern UI, world-class design */

:root {
  --primary: #ffd700;
  --primary-dark: #b8860b;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255,255,255,0.02);
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-muted: #666;
  --border: rgba(255,215,0,0.15);
  --success: #4ade80;
  --warning: #ffa500;
  --danger: #ff4444;
  --gradient-gold: linear-gradient(135deg, #ffd700, #ff8c00);
  --gradient-blue: linear-gradient(135deg, #00d4ff, #0066ff);
  --shadow: 0 4px 30px rgba(0,0,0,0.3);
  --nav-height: 70px;
  --banner-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--banner-height) + 20px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* FIXED: Risk Banner - No overlap */
.risk-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-height);
  background: linear-gradient(90deg, #1a0000, #2a0000);
  border-bottom: 1px solid var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  z-index: 1001;
  padding: 0 20px;
}
.risk-banner a { color: var(--primary); text-decoration: underline; }

/* FIXED: Navigation - Positioned below banner */
.nav {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-gray);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.nav-menu a:hover {
  color: var(--primary);
  background: rgba(255,215,0,0.1);
}

.nav-cta {
  background: var(--gradient-gold);
  color: #000 !important;
  font-weight: 600;
  padding: 10px 24px !important;
  border-radius: 25px !important;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 15px;
}
.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: none;
  min-width: 150px;
  z-index: 1002;
}
.lang-switcher:hover .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
}
.lang-dropdown a:hover {
  background: rgba(255,215,0,0.1);
  color: var(--primary);
}

/* FIXED: Main content spacing */
main {
  margin-top: calc(var(--nav-height) + var(--banner-height));
  min-height: 100vh;
}

/* Hero Section */
.hero {
  padding: 80px 5% 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(255,215,0,0.05) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Category Cards */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(255,215,0,0.1);
}
.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.category-card h3 {
  color: var(--text-white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Comparison Table */
.comparison-section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th {
  background: rgba(255,215,0,0.1);
  padding: 18px;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-white);
}

.comparison-table tr:hover td {
  background: rgba(255,215,0,0.03);
}

/* Features Grid */
.features {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature-card h4 {
  color: var(--text-white);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 5%;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255,215,0,0.03));
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

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

/* FIXED: Footer - No sticky CTA overlap */
footer {
  background: rgba(5,5,10,0.95);
  border-top: 1px solid var(--border);
  padding: 60px 5% 100px; /* Extra padding for mobile sticky CTA */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-section a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-section a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-legal a:hover { color: var(--primary); }

/* FIXED: Sticky CTA - Proper positioning */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.98), rgba(20,20,30,0.98));
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 15px 5%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sticky-cta-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  .nav-menu { display: none; }
  
  .hero { padding: 60px 5% 40px; }
  .hero h1 { font-size: 1.8rem; }
  
  .stats-bar {
    gap: 20px;
    padding: 20px;
  }
  .stat-number { font-size: 1.8rem; }
  
  .categories { padding: 20px 5%; gap: 16px; }
  .category-card { padding: 20px; }
  
  .cta-box { padding: 30px 20px; }
  
  footer { padding: 40px 5% 120px; }
  
  .sticky-cta {
    padding: 12px;
    gap: 10px;
  }
  .sticky-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Tutorial/Help - Only show once */
.help-panel {
  display: none; /* Hidden by default, shown via JS only once */
}
.help-panel.show-once {
  display: block;
}
