@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Brand Luxury Palette */
  --bg-color: #030303;
  --surface-color: #09090b;
  --surface-color-rgb: 9, 9, 11;
  --surface-hover: #18181b;
  
  --primary-color: #6366f1; /* Royal Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary-color: #00f5ff; /* Electric Cyan */
  --secondary-rgb: 0, 245, 255;
  --accent-color: #d946ef; /* Vibrant Magenta */
  --accent-rgb: 217, 70, 239;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #f43f5e;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(99, 102, 241, 0.15);

  /* Premium Typography */
  --font-headings: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --section-padding: 4.5rem 2rem;
  --section-padding-mobile: 3.5rem 1.25rem;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 6px;
  
  /* High-end Animations & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Premium Glow configurations */
  --aurora-glow-1: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%);
  --aurora-glow-2: radial-gradient(circle at 85% 80%, rgba(0, 245, 255, 0.08) 0%, transparent 45%);
  --aurora-glow-3: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.06) 0%, transparent 50%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Grid Pattern + Noise Overlay with Radial Gradient Mask */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 56px 56px, 56px 56px, auto;
  background-position: center center;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Aurora Backdrop Layers with Floating Animation */
.aurora-bg {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: var(--aurora-glow-1), var(--aurora-glow-2), var(--aurora-glow-3);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  filter: blur(60px);
  animation: aurora-move 30s ease-in-out infinite alternate;
}

@keyframes aurora-move {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-4%, -4%) rotate(3deg);
  }
}

/* Mouse Follow Glow Container */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 245, 255, 0.05) 45%, transparent 75%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
  opacity: 0;
}

body:hover .mouse-glow {
  opacity: 1;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

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

a:hover {
  color: var(--secondary-color);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==========================================================================
   GLASSMORPHISM & DECORATIVE UTILITIES
   ========================================================================== */
.glass-panel {
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
}

.glass-panel:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Card Style 1: Glassmorphism */
.card-glass {
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.card-glass:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

/* Card Style 2: Gradient Border */
.card-gradient {
  background: linear-gradient(135deg, rgba(12, 12, 16, 0.65) 0%, rgba(20, 15, 32, 0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(217, 70, 239, 0.3) 50%, rgba(0, 245, 255, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-gradient:hover {
  box-shadow: 0 20px 40px -10px rgba(217, 70, 239, 0.18);
  transform: translateY(-4px);
}
.card-gradient:hover::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(217, 70, 239, 0.6) 50%, rgba(0, 245, 255, 0.3) 100%);
}

/* Card Style 3: Elevated Dashboard */
.card-dashboard {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.card-dashboard:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 245, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

/* Card Style 4: Editorial / Minimal */
.card-editorial {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal);
  position: relative;
}
.card-editorial::after {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}
.card-editorial:hover::after {
  width: 80px;
  background: var(--secondary-color);
}
.card-editorial:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  transform: translateY(-4px);
}

/* Premium Gradient Border */
.gradient-border {
  position: relative;
  border-radius: var(--border-radius-md);
  z-index: 1;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  border-radius: calc(var(--border-radius-md) + 1px);
  z-index: -1;
  opacity: 0.12;
  transition: opacity var(--transition-normal);
}

.gradient-border:hover::before {
  opacity: 0.35;
}

/* Premium Text Gradients */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, rgba(var(--primary-rgb), 0.9) 70%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Glowing Section Dividers */
.section-divider {
  position: relative;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15) 20%, rgba(0, 245, 255, 0.25) 50%, rgba(99, 102, 241, 0.15) 80%, transparent);
  z-index: 5;
  display: block;
}
.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 10px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.35) 0%, transparent 80%);
  filter: blur(2px);
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRID
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 2rem;
  margin-top: 4rem;
}

.bento-card {
  grid-column: span 4;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card.wide {
  grid-column: span 8;
}

.bento-card.full {
  grid-column: span 12;
}

.bento-card.tall {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .bento-card {
    grid-column: span 6 !important;
  }
  .bento-card.full {
    grid-column: span 12 !important;
  }
}

@media (max-width: 640px) {
  .bento-card {
    grid-column: span 12 !important;
    grid-row: span 1 !important;
  }
}

.bento-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bento-card.blue .card-icon {
  background: rgba(0, 245, 255, 0.06);
  border-color: rgba(0, 245, 255, 0.1);
  color: var(--secondary-color);
}

.bento-card.purple .card-icon {
  background: rgba(217, 70, 239, 0.06);
  border-color: rgba(217, 70, 239, 0.1);
  color: var(--accent-color);
}

.bento-card h3 {
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Bento graphics */
.bento-graphic {
  width: 100%;
  height: 170px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.graphic-code {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-secondary);
  padding: 1.25rem;
  line-height: 1.45;
}

.graphic-db {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.db-node {
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.775rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.db-line {
  height: 2px;
  width: 50px;
  background: dashed rgba(255,255,255,0.1);
  position: relative;
}

.db-line::after {
  content: '⚡';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), background var(--transition-fast);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-primary);
  box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #7073f9, #df5bf2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: 0.7s ease;
  opacity: 0;
}

.btn-glow:hover::after {
  left: 125%;
  opacity: 1;
}

/* ==========================================================================
   STICKY FLOATING NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: var(--container-max-width);
  height: 64px;
  z-index: 100;
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  top: 0.5rem;
  height: 56px;
  background: rgba(9, 9, 11, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-symbol {
  color: var(--secondary-color);
  font-weight: 800;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-normal);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

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

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--border-radius-md);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-cta {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 100px;
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-tag .tag-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary-color);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hero Visual Mockup Space */
.hero-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-back {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 245, 255, 0.04) 50%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Interactive Mockup Panels */
.mockup-terminal {
  width: 100%;
  height: 380px;
  z-index: 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,0.04);
  font-family: var(--font-mono);
}

.terminal-header {
  height: 44px;
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-btn.red { background: var(--danger-color); }
.terminal-btn.yellow { background: var(--warning-color); }
.terminal-btn.green { background: var(--success-color); }

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  color: var(--secondary-color);
  font-size: 0.825rem;
  height: calc(100% - 44px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(3, 3, 3, 0.5);
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
  line-height: 1.4;
}

.terminal-prompt {
  color: var(--accent-color);
  user-select: none;
}

.terminal-text {
  color: var(--text-primary);
}

.terminal-text.success { color: var(--success-color); }
.terminal-text.info { color: #38bdf8; }
.terminal-text.warn { color: var(--warning-color); }

/* Floating Interface Preview Overlay */
.floating-preview {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 260px;
  z-index: 3;
  padding: 0.4rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.floating-preview:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 2;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

.scroll-indicator-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 16px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 3px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 1.5px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    min-height: auto;
  }
  .floating-preview {
    display: none;
  }
}

/* ==========================================================================
   TRUSTED BY SPONSORS TICKER
   ========================================================================== */
.trusted-by {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(9, 9, 11, 0.2);
  position: relative;
  z-index: 2;
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
  gap: 8rem;
}

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

.sponsor-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0.45;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.sponsor-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

.sponsor-logo svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   PRODUCT OVERVIEW / WHY CODEX++ (BENTO)
   ========================================================================== */
.overview-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* ==========================================================================
   KEY FEATURES SECTION
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.feature-card .feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.03), transparent 60%);
  pointer-events: none;
}

/* ==========================================================================
   WORKFLOW & ARCHITECTURE
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: rgba(9, 9, 11, 0.2);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.flow-step:hover {
  background: rgba(9, 9, 11, 0.5);
  border-color: rgba(99, 102, 241, 0.15);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.step-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.925rem;
  line-height: 1.5;
}

.arch-visual {
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.8);
}

.diag-node {
  fill: #0c0c0e;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.5px;
}

.diag-node.highlight {
  stroke: var(--primary-color);
}

.diag-node.accent {
  stroke: var(--secondary-color);
}

.diag-text {
  fill: var(--text-primary);
  font-size: 10px;
  font-family: var(--font-headings);
  font-weight: 700;
  text-anchor: middle;
}

.diag-label {
  fill: var(--text-secondary);
  font-size: 8px;
  font-family: var(--font-mono);
  text-anchor: middle;
}

.diag-link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5px;
}

.diag-link.active {
  stroke: var(--primary-color);
  stroke-dasharray: 4;
  animation: link-dash 10s linear infinite;
}

@keyframes link-dash {
  to {
    stroke-dashoffset: -40;
  }
}

/* ==========================================================================
   SUPPORTED PLATFORMS
   ========================================================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.platform-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.platform-card:hover .platform-icon {
  color: var(--secondary-color);
  transform: scale(1.05);
}

.platform-badge {
  padding: 0.25rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.775rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE DEMO PLAYGROUND
   ========================================================================== */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3.5rem;
  align-items: stretch;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .demo-wrap {
    grid-template-columns: 1fr;
  }
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-tab {
  padding: 1.5rem;
  cursor: pointer;
  text-align: left;
}

.demo-tab.active {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(12, 12, 16, 0.6);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.12);
}

.demo-tab-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.demo-tab-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.demo-tab.active .demo-tab-icon {
  color: var(--secondary-color);
}

.demo-tab-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.demo-tab.active .demo-tab-title {
  color: var(--text-primary);
}

.demo-tab-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.demo-tab.active .demo-tab-desc {
  color: var(--text-secondary);
}

/* Injected UI Simulation Frame */
.demo-preview-frame {
  height: 500px;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,0.04);
}

.app-mock-window {
  width: 100%;
  height: 100%;
  background: #050507;
  display: flex;
  flex-direction: column;
}

.app-mock-titlebar {
  height: 38px;
  background: #09090c;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  user-select: none;
}

.app-mock-controls {
  display: flex;
  gap: 6px;
}

.app-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.app-mock-dot.red { background: var(--danger-color); }
.app-mock-dot.yellow { background: var(--warning-color); }
.app-mock-dot.green { background: var(--success-color); }

.app-mock-url {
  background: rgba(255,255,255,0.015);
  padding: 0.2rem 1.75rem;
  border-radius: 4px;
  font-size: 0.725rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.app-mock-container {
  display: flex;
  flex: 1;
  height: calc(100% - 38px);
}

/* Sidebar of mock app */
.app-mock-sidebar {
  width: 190px;
  background: #070709;
  border-right: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.app-mock-nav-item {
  padding: 0.55rem 0.8rem;
  font-size: 0.775rem;
  border-radius: 5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.app-mock-nav-item:hover, .app-mock-nav-item.active {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
}

.app-mock-nav-item.enhance-pill {
  border: 1px dashed var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  margin-top: auto;
}

/* Mock App Main panel */
.app-mock-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #050507;
  position: relative;
}

.app-mock-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-mock-message {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 80%;
}

.app-mock-message.user {
  align-self: flex-end;
}

.app-mock-message.user .message-box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--text-primary);
}

.app-mock-message.assistant .message-box {
  background: #09090c;
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.message-sender {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.app-mock-message.user .message-sender {
  align-self: flex-end;
}

.message-box {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.825rem;
  line-height: 1.5;
}

.app-mock-input-area {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  background: #050507;
}

.app-mock-input-wrapper {
  background: #09090d;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
}

.app-mock-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0 0.5rem;
}

.app-mock-send-btn {
  background: var(--primary-color);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Injected Enhancements Overlay inside app */
.injected-toast {
  position: absolute;
  top: 50px;
  right: 1.5rem;
  background: rgba(9, 9, 11, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 5px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(-15px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 10;
  max-width: 300px;
}

.injected-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.injected-toast-icon {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.injected-toast-text {
  font-size: 0.725rem;
  color: var(--text-primary);
}

.injected-toast-action {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  cursor: pointer;
  font-weight: 600;
}

.injected-menu-panel {
  position: absolute;
  bottom: 72px;
  left: 1.5rem;
  width: 260px;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 11;
}

.injected-menu-panel.visible {
  display: flex;
}

.injected-menu-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.injected-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.injected-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27272a;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  max-width: 760px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: rgba(9, 9, 11, 0.3);
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(9, 9, 11, 0.6);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  letter-spacing: -0.015em;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(9, 9, 11, 0.1);
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

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

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-family: var(--font-headings);
  font-size: 0.9rem;
}

.user-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
}

.user-info span {
  font-size: 0.775rem;
  color: var(--text-secondary);
  opacity: 0.75;
}

/* ==========================================================================
   CALL TO ACTION & NEWSLETTER
   ========================================================================== */
.cta-section {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.cta-wrap::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  top: -80px;
  left: -80px;
}

.cta-wrap::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,245,255,0.05) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

.cta-title {
  margin-bottom: 0.75rem;
}

.cta-desc {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Newsletter styling */
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 3rem auto 0;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  border-color: var(--primary-color);
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.footer {
  background: #030303;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4) 50%, transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

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

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--secondary-color);
  transition: width var(--transition-fast) ease-out;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  color: var(--text-secondary);
  opacity: 0.7;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 12px var(--secondary-color);
  }
}

@keyframes scroll-wheel {
  0% {
    top: 4px;
    opacity: 1;
  }
  50% {
    top: 14px;
    opacity: 0.3;
  }
  100% {
    top: 4px;
    opacity: 1;
  }
}

@keyframes scroll-wheel {
  0% {
    top: 4px;
    opacity: 1;
  }
  50% {
    top: 14px;
    opacity: 0.3;
  }
  100% {
    top: 4px;
    opacity: 1;
  }
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   DYNAMIC RELEASES HISTORY STYLES
   ========================================================================== */
.release-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 3fr;
  align-items: center;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.release-row:hover {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(99, 102, 241, 0.2);
}

.release-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.release-meta .version-tag {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--secondary-color);
}

.release-meta .release-date {
  font-size: 0.775rem;
  color: var(--text-secondary);
  opacity: 0.75;
}

.release-notes-wrap {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.release-notes-toggle-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.release-notes-toggle-btn:hover {
  color: var(--secondary-color);
}

.release-changelog {
  max-height: 0;
  overflow: hidden;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
  transition: max-height var(--transition-normal) ease-out, opacity var(--transition-normal);
  opacity: 0;
  font-family: var(--font-body);
  line-height: 1.5;
}

.release-changelog.expanded {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
}

.release-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.release-btn-mini {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .release-row {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .release-links {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   DOCUMENTATION PAGE STRUCTURE & STYLE
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  padding-top: 110px;
  min-height: 100vh;
}

@media (max-width: 992px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.docs-sidebar {
  position: sticky;
  top: 110px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 0.85rem;
}

@media (max-width: 992px) {
  .docs-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
  }
}

.docs-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docs-nav-item a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 5px;
  transition: all var(--transition-fast);
}

.docs-nav-item a:hover {
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-primary);
}

.docs-nav-item.active a {
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary-color);
  font-weight: 600;
  border-left: 2px solid var(--primary-color);
  border-radius: 0 5px 5px 0;
}

/* Reading Progress Bar */
.docs-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.01);
  z-index: 101;
}

.docs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
}

.docs-content {
  max-width: 780px;
  padding-bottom: 8rem;
}

/* Rich Article Formatting */
.docs-article h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  letter-spacing: -0.035em;
}

.docs-article h2 {
  font-size: 1.75rem;
  margin-top: 3.5rem;
  margin-bottom: 1.15rem;
  scroll-margin-top: 110px;
  letter-spacing: -0.025em;
}

.docs-article h3 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 110px;
  letter-spacing: -0.015em;
}

.docs-article p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.docs-article ul, .docs-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.docs-article li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* GFM Alerts styling */
.docs-alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  margin: 1.75rem 0;
  font-size: 0.925rem;
  border-left: 4px solid;
}

.docs-alert p:last-child {
  margin-bottom: 0;
}

.docs-alert-note {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-color);
  color: #c7d2fe;
}

.docs-alert-note .alert-title {
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.docs-alert-tip {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--success-color);
  color: #a7f3d0;
}

.docs-alert-tip .alert-title {
  color: var(--success-color);
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.docs-alert-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--warning-color);
  color: #fde68a;
}

.docs-alert-warning .alert-title {
  color: var(--warning-color);
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.docs-alert-important {
  background: rgba(217, 70, 239, 0.05);
  border-color: var(--accent-color);
  color: #fbcfe8;
}

.docs-alert-important .alert-title {
  color: var(--accent-color);
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* Inline code and blocks styling */
code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #f472b6;
}

pre {
  background: #050507;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: 1.75rem 0;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.825rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: var(--font-headings);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.code-copy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

/* Tables styling */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.docs-table th, .docs-table td {
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.docs-table th {
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-primary);
}

.docs-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.003);
}


/* ==========================================================================
   IMAGE-INSPIRED NEW HOMEPAGE SECTIONS
   ========================================================================== */

/* 1. Core Pillars Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(12, 12, 16, 0.3);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.pillar-card .pillar-num {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.pillar-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Core Pillar Active Highlight Card (Inspired by reference image) */
.pillar-card.active-pillar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(217, 70, 239, 0.8) 100%);
  border-color: transparent;
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}

.pillar-card.active-pillar .pillar-num {
  color: #fafafa;
  opacity: 0.9;
}

.pillar-card.active-pillar h3 {
  color: #ffffff;
}

.pillar-card.active-pillar p {
  color: #fafafa;
  opacity: 0.95;
}

.pillar-card.active-pillar .pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.pillar-card.active-pillar .pillar-link:hover {
  gap: 0.75rem;
}

/* 2. Metrics & Performance Section */
.metrics-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.metrics-graph {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  position: relative;
  background: rgba(8, 8, 12, 0.65);
}

.metrics-graph .pulse-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 245, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
  }
}

.metrics-text .stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: block;
}

.metrics-text h2 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.metrics-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.metrics-text ul li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metrics-text ul li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: 700;
}

/* 3. Developer Integrity Row */
.integrity-banner {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.002);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 4.5rem;
}

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.integrity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.integrity-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.integrity-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.integrity-content p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive adjust for new sections */
@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .metrics-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .integrity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .integrity-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

