/* ========================================
   MODERN NUTTX WEBSITE STYLES
   Full-width layout with dark theme support
======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Light theme - ASF-style clean UI with visible separation */
  --bg-page: #f8fafc;
  --bg-section: #ffffff;
  --bg-card: #f9fafb;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f9fafb;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --accent-primary: #2563eb;
  --accent-secondary: #1e40af;
  --accent-tertiary: #1e3a8a;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --navbar-height: 64px;
}

[data-theme="dark"] {
  /* Dark theme with grey/black tones matching hero section */
  --bg-page: #191a1a;
  --bg-section: #0b0c0c79;
  --bg-card: #242424;
  --bg-primary: #191a1a;
  --bg-secondary: #191a1a;
  --bg-tertiary: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-tertiary: #7a7a7a;
  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --accent-tertiary: #1e40af;
  --border-color: #383838;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.8), 0 2px 4px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.9), 0 4px 6px -2px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--navbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
  background: #191a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-container {
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: 'Patua One', cursive;
  white-space: nowrap;
}

/* Navigation Menu Wrapper */
.navbar-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation Items */
.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Dropdown Arrow */
.dropdown-arrow {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-item.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1001;
}

[data-theme="dark"] .dropdown-content {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-item.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.dropdown-item:hover {
  background: var(--bg-card);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  padding-left: 18px;
  text-decoration: none;
}

.dropdown-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-primary);
}

.theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

/* Doc Mode Toggle in Navbar */
.doc-mode-toggle-navbar {
  height: 40px;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.doc-mode-toggle-navbar:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-primary);
}

[data-doc-mode="true"] .doc-mode-toggle-navbar {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-primary);
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .navbar-container {
    padding: 0 24px;
  }
  
  .navbar-menu {
    gap: 0;
  }
  
  .nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  
  .navbar-menu {
    gap: 0;
  }
  
  .nav-link {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .dropdown-content {
    left: 0;
    transform: translateX(0) translateY(-10px);
  }
  
  .nav-item.active .dropdown-content {
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 640px) {
  .navbar-container {
    padding: 0 16px;
  }
  
  .navbar-menu-wrapper {
    gap: 12px;
  }
}

/* Minimalistic UI Toggle - Top Right Corner */
.doc-mode-toggle-corner {
  position: fixed;
  top: calc(var(--navbar-height) + 20px);
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-mode-toggle-corner:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doc-mode-toggle-corner .toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

[data-theme="light"] .doc-mode-toggle-corner {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Doc Mode Active State */
[data-doc-mode="true"] .doc-mode-toggle-corner {
  background: rgba(59, 130, 246, 0.3);
  border: 1px solid var(--accent-primary);
}

/* Doc Mode Styles - Minimal UI */
[data-doc-mode="true"] body {
  font-size: 16px;
  line-height: 1.8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', Arial, sans-serif;
}

/* Hide all fancy elements in doc mode */
[data-doc-mode="true"] .hero-section,
[data-doc-mode="true"] .hero-grid-background,
[data-doc-mode="true"] .hero-actions,
[data-doc-mode="true"] .hero-stats,
[data-doc-mode="true"] .hero-content,
[data-doc-mode="true"] .feature-section,
[data-doc-mode="true"] .features-section,
[data-doc-mode="true"] .resources-section,
[data-doc-mode="true"] .technical-section,
[data-doc-mode="true"] .demo-section-static,
[data-doc-mode="true"] .events-showcase,
[data-doc-mode="true"] .companies-section,
[data-doc-mode="true"] .community-section,
[data-doc-mode="true"] .resource-icon svg,
[data-doc-mode="true"] .section-header {
  display: none !important;
}

[data-doc-mode="true"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"][data-doc-mode="true"] .navbar {
  background: rgba(10, 10, 10, 0.95);
}

/* Doc Mode Content Sections */
[data-doc-mode="true"] .doc-content-section {
  display: block !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: var(--bg-primary);
  padding-top: calc(var(--navbar-height) + 4rem);
}

[data-doc-mode="true"] .doc-content-section h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
}

[data-doc-mode="true"] .doc-content-section h3 {
  font-size: 3.75rem;
  font-weight: 600;
  margin-top: 4.5rem;
  margin-bottom: 2.25rem;
  color: var(--text-primary);
}

[data-doc-mode="true"] .doc-content-section h4 {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

[data-doc-mode="true"] .doc-content-section p {
  font-size: 2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

[data-doc-mode="true"] .doc-content-section a {
  color: var(--accent-primary);
  text-decoration: underline;
  font-size: 1.8rem;
}

[data-doc-mode="true"] .doc-content-section a:hover {
  color: var(--accent-secondary);
}

[data-doc-mode="true"] .doc-content-section ul {
  margin: 3rem 0;
  padding-left: 6rem;
}

[data-doc-mode="true"] .doc-content-section li {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 3rem;
}

/* Hide animations and transitions */
[data-doc-mode="true"] * {
  animation: none !important;
  transition: none !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 2rem) 2rem 6rem;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Light theme grid background - more visible */
[data-theme="light"] .hero-grid-background {
  background-color: #f8f9fb;
  background-image: linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.03) 26%, transparent 27%,transparent 74%, rgba(0, 0, 0, 0.03) 75%, rgba(0, 0, 0, 0.03) 76%, transparent 77%,transparent),
      linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.03) 26%, transparent 27%,transparent 74%, rgba(0, 0, 0, 0.03) 75%, rgba(0, 0, 0, 0.03) 76%, transparent 77%,transparent);
  background-size: 55px 55px;
}

[data-theme="dark"] .hero-grid-background {
  background-color: #191a1a;
  background-image: linear-gradient(0deg, transparent 24%, rgba(114, 114, 114, 0.1) 25%, rgba(114, 114, 114, 0.1) 26%, transparent 27%,transparent 74%, rgba(114, 114, 114, 0.1) 75%, rgba(114, 114, 114, 0.1) 76%, transparent 77%,transparent),
      linear-gradient(90deg, transparent 24%, rgba(114, 114, 114, 0.1) 25%, rgba(114, 114, 114, 0.1) 26%, transparent 27%,transparent 74%, rgba(114, 114, 114, 0.1) 75%, rgba(114, 114, 114, 0.1) 76%, transparent 77%,transparent);
  background-size: 55px 55px;
}

.hero-content {
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 17rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  margin-top: 6.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: fadeInUp 0.6s ease-out;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-subtitle {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease-out;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-family: 'DM Sans', sans-serif;
}

.hero-description {
  font-size: 1.65rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0;
  animation: fadeInUp 1.2s ease-out;
}

/* ===== HERO FEATURES ===== */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1.4s ease-out;
}

.hero-feature {
  text-align: center;
  position: relative;
}

.hero-feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(48, 113, 169, 0.3);
}

[data-theme="dark"] .hero-feature-icon {
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

.hero-feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

.hero-feature-icon svg {
  width: 45px;
  height: 45px;
  color: white;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero-feature-number {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.hero-feature-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn-primary {
  background-color: var(--accent-primary);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  transition: all 0.2s ease;
  box-shadow: none;
  border: 1px solid var(--accent-primary);
}

.hero-btn-primary:hover {
  transform: none;
  box-shadow: none;
  text-decoration: none;
  color: white;
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-primary);
  text-decoration: none;
  border-color: var(--accent-primary);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 1.3s ease-out;
}

.stats-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
  text-decoration: none;
}

.hero-stat-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.hero-stat-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  color: var(--accent-primary);
}

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

/* ===== MAIN CONTENT ===== */


.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ===== CARD GRID LAYOUT ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

/* ===== CONTENT SECTIONS WITH ICONS ===== */
.content-section {
  margin-bottom: 0;
  padding: 2.5rem;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content-section:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.content-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
}

.content-section:hover::after {
  opacity: 0.04;
  bottom: -30%;
  right: -30%;
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  border-left: none;
  padding-left: 0;
  position: relative;
  z-index: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.content-section h2::before {
  content: '';
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.content-section:nth-of-type(1) h2::before {
  background-image: url('../../../static/icons/download.svg');
  filter: invert(0.2) brightness(1.5);
}

[data-theme="dark"] .content-section:nth-of-type(1) h2::before {
  background-image: url('../../../static/icons/download.svg');
  filter: invert(1) brightness(1.4);
}

.content-section:nth-of-type(2) h2::before {
  background-image: url('../../../static/icons/community-people.svg');
  filter: invert(0.2) brightness(1.5);
}

[data-theme="dark"] .content-section:nth-of-type(2) h2::before {
  background-image: url('../../../static/icons/community-people.svg');
  filter: invert(1) brightness(1.4);
}

.content-section:nth-of-type(3) h2::before {
  background-image: url('../../../static/icons/document-full.svg');
  filter: invert(0.2) brightness(1.5);
}

[data-theme="dark"] .content-section:nth-of-type(3) h2::before {
  background-image: url('../../../static/icons/document-full.svg');
  filter: invert(1) brightness(1.4);
}

.content-section:nth-of-type(4) h2::before {
  background-image: url('../../../static/icons/monitor.svg');
  filter: invert(0.2) brightness(1.5);
}

[data-theme="dark"] .content-section:nth-of-type(4) h2::before {
  background-image: url('../../../static/icons/monitor.svg');
  filter: invert(1) brightness(1.4);
}

.content-section:nth-of-type(5) h2::before {
  background-image: url('../../../static/icons/calendar.svg');
  filter: invert(0.2) brightness(1.5);
}

[data-theme="dark"] .content-section:nth-of-type(5) h2::before {
  background-image: url('../../../static/icons/calendar.svg');
  filter: invert(1) brightness(1.4);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  flex-grow: 1;
  font-family: 'DM Sans', sans-serif;
}

.content-section a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.content-section a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-wrapper h2 {
  font-size: 4.1rem;
  border-left: none;
  padding-left: 0;
}

.content-wrapper > h2:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* ===== CODE BLOCKS ===== */
code {
  background-color: var(--bg-secondary);
  color: var(--accent-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  font-size: 0.9em;
}

pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background-color: transparent;
  color: var(--text-primary);
  padding: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--text-secondary);
  text-align: center;
}

.footer-content img {
  max-width: 280px;
  margin: 1rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    aspect-ratio: auto;
    min-height: auto;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .hero-feature-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .hero-feature-number {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-btn {
    justify-content: center;
  }
  
  .content-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .content-section h2::before {
    width: 36px;
    height: 36px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .content-wrapper h2 {
    font-size: 2.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* ===== LIST STYLES ===== */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .section-title,
  .section-title-center {
    font-size: 2rem;
  }
  
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .demo-content {
    padding-right: 0;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .community-main {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 1.5rem;
  }
  
  .section-title,
  .section-title-center,
  .demo-title,
  .community-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle,
  .demo-description {
    font-size: 1rem;
  }
  
  .trust-section,
  .features-section,
  .onboarding-section,
  .demo-section,
  .resources-section,
  .community-section {
    padding: 4rem 0;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .logo-item {
    padding: 1.5rem;
  }
  
  .feature-grid,
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .channel-list {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: var(--bg-tertiary);
}

/* ===== SECTION CONTAINER ===== */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title-center {
  font-size: 6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 2.5rem;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
}

/* ===== TRUST / ADOPTION SECTION ===== */
.trust-section {
  padding: 6rem 0;
  background-color: var(--bg-page);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.logo-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.logo-placeholder {
  font-size: 1.5rem;
  font-weight: 600;
  color: #444;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

[data-theme="dark"] .logo-placeholder {
  color: #999;
}

.logo-item:hover .logo-placeholder {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

[data-theme="dark"] .logo-item .logo-placeholder {
  opacity: 1;
  filter: grayscale(0%);
}

[data-theme="dark"] .logo-item:hover .logo-placeholder {
  transform: scale(1.1);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.features-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

/* ===== ONBOARDING SECTION ===== */
.onboarding-section {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 1rem auto 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.step-link:hover {
  gap: 0.5rem;
  text-decoration: none;
}

/* ===== DEMO SECTION ===== */
.demo-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.demo-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.demo-content {
  padding-right: 2rem;
}

.demo-title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.demo-description {
  font-size: 2.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
}

.demo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.demo-features li {
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.demo-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.demo-button:hover {
  background: var(--accent-secondary);
  transform: translateX(4px);
  text-decoration: none;
  color: white;
}

.button-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.demo-button:hover .button-arrow {
  transform: translateX(4px);
}

.demo-preview {
  position: relative;
}

.demo-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  transition: all 0.3s ease;
}

.demo-placeholder:hover {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.demo-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--accent-primary);
  opacity: 0.6;
}

.demo-placeholder p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.resources-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

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

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
  text-decoration: none;
  color: inherit;
}

.resource-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resource-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.resource-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.resource-description {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.resource-description a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.resource-description a:hover {
  border-bottom-color: var(--accent-primary);
}

/* ===== TECHNICAL SECTION ===== */
.technical-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.technical-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

.technical-content {
  margin-top: 2rem;
}

.technical-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.technical-intro p {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.technical-intro strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.community-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.community-main {
  padding-right: 2rem;
}

.community-title {
  font-size: 7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.community-description {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
  font-family: 'DM Sans', sans-serif;
}

.community-description a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.community-description a:hover {
  border-bottom-color: var(--accent-primary);
}

.community-channels h3 {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.channel-item:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
  text-decoration: none;
  color: var(--text-primary);
}

.channel-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.channel-item img {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.events-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.events-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.events-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.event-date,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.9rem;
  font-family: 'DM Sans', sans-serif;
}

.event-date svg,
.event-location svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.event-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 1.5rem 0;
  font-size: 1.8rem;
  font-family: 'DM Sans', sans-serif;
}

.event-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.event-link:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
  text-decoration: none;
  color: var(--accent-primary);
}

/* ===== COMPANIES CAROUSEL SECTION ===== */
.companies-section {
  padding: 3rem 0;
  background-color: var(--bg-page);
  overflow: hidden;
}

.companies-section .section-title-center {
  margin-bottom: 1rem;
}

.companies-section::before {
  content: '';
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.companies-section > .section-container {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 24px 0;
}

.carousel-wrapper {
  overflow: hidden;
  margin-top: 3rem;
  position: relative;
}

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

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

[data-theme="light"] .carousel-wrapper::before {
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

[data-theme="light"] .carousel-wrapper::after {
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.carousel-track {
  display: flex;
  gap: 4rem;
  animation: scroll 40s linear infinite;
  width: max-content;
}

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

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

.carousel-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
}

.company-logo-container {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 120px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .company-logo-container {
  background: var(--bg-secondary);
}

.company-logo-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.company-logo-img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%) opacity(1) brightness(1);
  transition: all 0.3s ease;
}

[data-theme="dark"] .company-logo-img {
  filter: grayscale(0%) opacity(1) brightness(1.2);
}

.company-logo-container:hover .company-logo-img {
  filter: grayscale(0%) opacity(1) brightness(1);
}

[data-theme="dark"] .company-logo-container:hover .company-logo-img {
  filter: grayscale(0%) opacity(1) brightness(1.3);
}

/* Specific logo color adjustments for better visibility */
/* Sony, Fitbit - black logos need to be white in dark mode */
[data-theme="dark"] .company-logo-img[alt="Sony"],
[data-theme="dark"] .company-logo-img[alt="Fitbit"] {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .company-logo-container:hover .company-logo-img[alt="Sony"],
[data-theme="dark"] .company-logo-container:hover .company-logo-img[alt="Fitbit"] {
  filter: brightness(0) invert(1);
}

/* Motorola - special handling to keep white parts white and make M visible */
[data-theme="dark"] .company-logo-img[alt="Motorola"] {
  filter: brightness(2) saturate(0) contrast(2) invert(1);
}

[data-theme="dark"] .company-logo-container:hover .company-logo-img[alt="Motorola"] {
  filter: brightness(3.5) saturate(0) contrast(1.5);
}

/* InSpace - white PNG logo needs to be black in light mode */
[data-theme="light"] .company-logo-img[alt="InSpace"] {
  filter: brightness(0);
}

[data-theme="light"] .company-logo-container:hover .company-logo-img[alt="InSpace"] {
  filter: brightness(0);
}

.company-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #666;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  white-space: nowrap;
}

[data-theme="dark"] .company-logo {
  color: #999;
}

.carousel-slide:hover .company-logo {
  opacity: 1;
  filter: grayscale(0%);
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* ===== TERMINAL STYLES ===== */
#term_wrap {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

#term_container {
  flex: 1;
  overflow: auto;
  padding: 0.5rem;
}

#term_bar {
  background: #0a0a0a;
  padding: 0.5rem;
  border-top: 1px solid #333;
}

#net_progress {
  width: 100%;
  height: 4px;
}

.demo-preview #term_wrap {
  width: 100% !important;
  max-width: 100%;
}

/* ===== LEGACY STYLES REMOVED ===== */
/* Bento Grid and Sidebar Layout styles removed - now using Superset-inspired section-based layout */\n  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.bento-item:hover {
  text-decoration: none;
  color: inherit;
}

[data-theme="light"] .bento-item {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.bento-item::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-item[data-glow="cyan"]::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.bento-item[data-glow="purple"]::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

.bento-item[data-glow="blue"]::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -150px;
  left: -150px;
}

.bento-item[data-glow="green"]::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
}

.bento-item[data-glow="orange"]::before {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  top: -150px;
  right: -150px;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .bento-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Bento sizes */
.bento-large {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
  grid-row: span 2;
}

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

.bento-wide {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.bento-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.bento-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.bento-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.bento-description {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .bento-large,
  .bento-wide {
    grid-column: span 4;
  }
  
  .bento-medium,
  .bento-tall {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .bento-large,
  .bento-medium,
  .bento-tall,
  .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }
}

/* ===== INTERACTIVE SIDEBAR LAYOUT ===== */
.sidebar-layout {
  display: flex;
  min-height: 100vh;
  margin-top: 0;
  position: relative;
}

.sidebar-nav {
  width: 30%;
  min-width: 300px;
  background-color: #050505;
  position: sticky;
  left: 0;
  top: 0;
  height: 100vh;
  padding: 3rem 2rem;
  overflow-y: auto;
  border-right: 1px solid #1f1f1f;
  z-index: 100;
  transition: all 0.3s ease;
  align-self: flex-start;
}

[data-theme="light"] .sidebar-nav {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

[data-theme="light"] .sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
}

[data-theme="light"] .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.sidebar-nav h3 {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #525252;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: 500;
}

.sidebar-nav h3:first-child {
  margin-top: 0;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.sidebar-nav-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1f1f1f;
}

[data-theme="light"] .sidebar-nav-list::before {
  background: var(--border-color);
}

.sidebar-nav-item {
  position: relative;
  margin-bottom: 0.5rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  padding-left: 2rem;
  color: #7a7a7a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 6px;
}

.sidebar-nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

[data-theme="light"] .sidebar-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.sidebar-nav-link::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent-primary);
  transition: height 0.3s ease;
}

.sidebar-nav-link.active {
  color: #ffffff;
  font-weight: 500;
  background-color: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sidebar-nav-link.active {
  color: var(--text-primary);
  background-color: rgba(59, 130, 246, 0.1);
}

.sidebar-nav-link.active::before {
  height: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.sidebar-content {
  flex: 1;
  width: 70%;
  background-color: #0a0a0a;
  padding: 3rem;
  min-height: 100vh;
}

[data-theme="light"] .sidebar-content {
  background-color: var(--bg-primary);
}

.sidebar-section {
  max-width: 900px;
  margin: 0 auto 5rem auto;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  scroll-margin-top: calc(var(--navbar-height) + 2rem);
}

[data-theme="light"] .sidebar-section {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.sidebar-section h2 {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #1f1f1f;
  padding-bottom: 1rem;
}

[data-theme="light"] .sidebar-section h2 {
  border-bottom-color: var(--border-color);
}

.sidebar-section p {
  color: #b4b4b4;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

[data-theme="light"] .sidebar-section p {
  color: var(--text-secondary);
}

.sidebar-section a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sidebar-section a:hover {
  border-bottom-color: var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar-layout {
    flex-direction: column;
  }
  
  .sidebar-nav {
    width: 100%;
    min-width: unset;
    position: relative;
    height: auto;
    top: 0;
    border-right: none;
    border-bottom: 1px solid #1f1f1f;
  }
  
  [data-theme="light"] .sidebar-nav {
    border-bottom-color: var(--border-color);
  }
  
  .sidebar-content {
    width: 100%;
  }
}

/* ===== GITHUB STATS (TOP-RIGHT) ===== */
/* ===== REAL-WORLD USE SECTION ===== */
.real-world-section {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title-minimal {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-subtitle-minimal {
  font-size: 1.15rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.real-world-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.real-world-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 120px;
}

.real-world-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Patua One', cursive;
  letter-spacing: 0.05em;
}

/* ===== STATIC DEMO SECTION ===== */
.demo-section-static {
  padding: 0rem 0;
  background-color: var(--bg-secondary);
}

[data-theme="light"] .demo-section-static {
  background-color: var(--bg-primary);
}

.demo-section-static > .section-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
}

[data-theme="light"] .demo-section-static > .section-container {
  background-color: var(--bg-secondary);
}

.demo-static-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.demo-static-content h2.demo-title {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.demo-static-content p.demo-description {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
}

.demo-static-preview {
  display: block;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.demo-static-preview:hover {
  transform: translateY(-8px);
  text-decoration: none;
}

.terminal-window {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="light"] .terminal-window {
  background-color: #2d2d2d;
  border-color: #444;
}

.terminal-header {
  background-color: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #444;
}

[data-theme="light"] .terminal-header {
  background-color: #3d3d3d;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #555;
}

.terminal-button:nth-child(1) {
  background-color: #ff5f56;
}

.terminal-button:nth-child(2) {
  background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
  background-color: #27c93f;
}

.terminal-title {
  color: #999;
  font-size: 0.85rem;
  margin: 0 auto;
}

.terminal-body {
  padding: 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.terminal-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.1rem;
  color: #d4d4d4;
  margin: 0;
  white-space: pre;
}

.cursor {
  animation: blink 1s infinite;
  color: #2EC4B6;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(59, 130, 246, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.demo-static-preview:hover .demo-overlay {
  opacity: 1;
}

.play-icon {
  width: 64px;
  height: 64px;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.overlay-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 12rem;
  }
  
  .real-world-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .demo-static-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 8rem;
  }
  
  .hero-description {
    font-size: 1.3rem;
  }
  
  .real-world-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  body {
    font-size: 16px;
  }
}

/* ===== COMMUNITY MEMBERS TABLE FIX ===== */
[data-theme="dark"] .table-hover > tbody > tr:hover > td,
[data-theme="dark"] .table-hover > tbody > tr:hover > th {
  background-color: rgba(59, 130, 246, 0.1) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .table-hover > tbody > tr:hover a {
  color: var(--accent-primary) !important;
}

/* ===== ARTICLES PAGE STYLING ===== */
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content-wrapper h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.content-wrapper h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-wrapper h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.content-wrapper p {
  font-size: 1.59rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.content-wrapper a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content-wrapper a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

}
