/* ============================================
   NUBRA Institutional Trading Platform
   Dark Theme CSS - All Pages
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #161616;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --success-green: #10b981;
  --border-color: #2a2a2a;
  --hover-bg: #1a1a1a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 120px 24px;
  --card-padding: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

nav.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  justify-content: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

.sebi-badge {
  font-size: 0.65rem;
  padding: 4px 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.sebi-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -6px;
  text-align: center;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

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

/* Subdued button for CTA section */
.cta-section .btn-primary {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  box-shadow: none;
}

.cta-section .btn-primary:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--hover-bg);
  border-color: var(--accent-blue);
}

/* Hero Section */
.hero {
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-radial);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--accent-blue);
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background-color: #1a1a1a;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stat-icon i {
  font-size: 1.8rem;
  color: var(--accent-blue);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Section Styles */
section {
  padding: 80px 24px;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Flexi Algo Centered Container */
.flexi-algo-centered {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Algo Suite Grid - Force 2 columns on large screens */
#algos .card-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #algos .card-grid {
    grid-template-columns: 1fr !important;
  }
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card Component - Enhanced Design */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  
  /* Enhanced shadow layering for depth */
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
  
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle inner glow line at top */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  
  /* Multi-layer shadow on hover */
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* Enhanced Card Icon with depth and animations */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  position: relative;
  
  /* Enhanced gradient with multiple layers */
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  
  /* Multiple borders for depth */
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated glow on card hover */
.card:hover .card-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 4px rgba(59, 130, 246, 0.1);
}

.card-icon i {
  color: var(--accent-blue);
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.5));
  transition: all 0.3s;
}

.card:hover .card-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.8));
}

.card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  color: var(--accent-blue);
}

/* Featured Card */
.card.featured {
  border: 2px solid var(--accent-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.card.featured::before {
  content: 'FEATURED';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  padding: 4px 12px;
  background: var(--gradient-primary);
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Clickable Cards */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link .card {
  cursor: pointer;
}

/* Video Section */
.video-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

/* Ensure video is responsive on all devices */
@media (max-width: 1024px) {
  .video-container {
    max-width: 100%;
    padding: 12px;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* CTA Section */
.cta-section {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin: 0 24px;
  backdrop-filter: blur(10px);
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.leadership-team {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  font-weight: 400;
}

.leadership-team a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.leadership-team a:hover {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Moving Ticker Banner */
.ticker-banner {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px 0;
  margin-top: 40px;
  position: relative;
}

/* Hero Ticker Banner - Narrower version */
.ticker-banner-hero {
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 12px 0;
  border-radius: 8px;
}

.ticker-banner::before,
.ticker-banner::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.ticker-banner::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--bg-primary) 100%);
}

.ticker-content {
  display: flex;
  gap: 60px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 20px;
}

.ticker-item i {
  color: var(--accent-blue);
  font-size: 1.1rem;
}

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

/* Pause on hover */
.ticker-banner:hover .ticker-content {
  animation-play-state: paused;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sticky-card {
  position: sticky;
  top: 100px;
  background: var(--gradient-dark);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.sticky-card h3 {
  margin-bottom: 16px;
}

.highlight-box {
  background-color: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.highlight-box h4 {
  color: var(--accent-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.features-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.benefit-list {
  list-style: none;
  margin: 0;
}

.benefit-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.benefit-list li:last-child {
  margin-bottom: 0;
}

.benefit-list i {
  color: var(--accent-blue);
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-list strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.benefit-list span {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.benefit-list div {
  flex: 1;
}

/* Numbered Solutions */
.solution-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.solution-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.solution-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.1);
  line-height: 1;
}

.solution-card h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.solution-card h4 {
  color: var(--accent-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.solution-card p {
  position: relative;
  z-index: 1;
}

/* Comparison Table */
.comparison-table {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.table-header > div {
  padding: 20px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.table-header .highlight {
  background: var(--gradient-primary);
  color: var(--text-primary);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.table-row:hover {
  background-color: rgba(59, 130, 246, 0.03);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row > div {
  padding: 24px 32px;
  display: flex;
  align-items: center;
}

.table-row .left {
  color: var(--text-tertiary);
}

.table-row .right {
  color: var(--text-primary);
  font-weight: 500;
  border-left: 1px solid var(--border-color);
}

.table-row .right::before {
  content: '✓';
  color: var(--success-green);
  font-weight: 700;
  margin-right: 12px;
  font-size: 1.2rem;
}

/* API Protocol Cards */
.api-protocol-card {
  position: relative;
}

.protocol-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.7rem;
  padding: 6px 12px;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--accent-blue);
  border-radius: 20px;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.endpoint-list,
.stream-list,
.message-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.endpoint-list li,
.stream-list li,
.message-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.endpoint-list li strong,
.stream-list li strong,
.message-list li strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.specs-list li {
  font-size: 0.85rem;
  padding: 6px 12px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: var(--success-green);
  list-style: none;
}

/* Circular Icon Cards */
.circular-icon-card {
  text-align: center;
}

.circular-icon-card .card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 2rem;
}

/* Metric Cards */
.metric-card {
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 24px;
  transition: var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-description {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* Code Examples */
.code-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
}

.code-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.code-tab {
  padding: 16px 32px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.code-tab:hover {
  color: var(--text-secondary);
  background-color: var(--hover-bg);
}

.code-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
  background-color: var(--bg-card);
}

.code-content {
  display: none;
  padding: 0;
}

.code-content.active {
  display: block;
}

.code-content pre {
  margin: 0;
  padding: 32px;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-content code {
  color: var(--text-secondary);
}

/* Documentation CTA */
.docs-cta {
  background: var(--gradient-primary);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
}

.docs-cta h3 {
  margin-bottom: 12px;
}

.docs-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 24px;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Edge Highlight Effect */
.edge-highlight {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: edgeGlow 3s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

@keyframes edgeGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.7));
  }
}

/* Lightning-Fast Effect */
.lightning-fast-effect {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #3b82f6 50%, #6366f1 75%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: lightningFlash 4s ease-in-out infinite;
  font-weight: 900;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

@keyframes lightningFlash {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 25px rgba(59, 130, 246, 0.4));
  }
  33% {
    background-position: 50% 50%;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
  }
  66% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 28px rgba(59, 130, 246, 0.4));
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  section {
    padding: 60px 24px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sticky-card {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 20px;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a.active::after {
    bottom: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Logo Section Mobile */
  .logo img {
    height: 60px !important;
  }
  
  .sebi-text {
    font-size: 0.65rem;
  }
  
  /* Hero */
  .hero {
    padding: 100px 20px 50px;
  }
  
  .hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  /* Ticker Banner Mobile */
  .ticker-banner {
    padding: 16px 0;
    margin-top: 32px;
  }
  
  .ticker-banner-hero {
    max-width: 100%;
    margin: 0 0 32px 0;
    padding: 10px 0;
  }
  
  .ticker-banner::before,
  .ticker-banner::after {
    width: 50px;
  }
  
  .ticker-content {
    gap: 40px;
  }
  
  .ticker-item {
    font-size: 0.9rem;
    padding: 0 15px;
    gap: 8px;
  }
  
  .ticker-item i {
    font-size: 1rem;
  }
  
  /* Cards */
  .card-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .card {
    padding: 24px;
  }
  
  /* Video Section Mobile */
  .video-container {
    padding: 8px;
    border-radius: 12px;
  }
  
  .video-wrapper {
    border-radius: 8px;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 48px 24px;
    margin: 0 20px;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  /* Comparison Table */
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
  }
  
  .table-row .right {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  
  /* Code Tabs */
  .code-tabs {
    overflow-x: auto;
  }
  
  .code-tab {
    padding: 12px 20px;
    white-space: nowrap;
  }
  
  /* Docs CTA */
  .docs-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero p,
  .section-header p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .card {
    padding: 24px;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
  
  .code-content pre {
    padding: 20px;
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  nav,
  .mobile-menu-toggle,
  .hero-buttons,
  .cta-buttons,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
