/* ============================================================
   Ferrum Edge — Main Stylesheet
   Design System: Dark theme with orange (#E8701A) + blue (#3B82F6)
   ============================================================ */

:root {
  --bg-primary: #0A0E1A;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --border: #1E293B;
  --border-hover: #2d3f5c;
  --orange: #E8701A;
  --orange-light: #f0843a;
  --orange-dark: #c45d12;
  --blue: #3B82F6;
  --blue-light: #60a5fa;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --code-bg: #0d1117;
  --nav-height: 64px;
}

/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a:hover {
  color: var(--orange-light);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

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

/* ============================================================
   Navigation
   ============================================================ */
#nav-container nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo-text span {
  color: var(--orange);
}

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

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-links > li > a.active,
.nav-links > li > button.active {
  color: var(--orange);
}

.nav-dropdown-arrow {
  font-size: 0.625rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.375rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: rgba(255,255,255,0.07);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.98);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-mobile-section {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 1rem 0.25rem;
  margin-top: 0.5rem;
}

/* ============================================================
   Page Layout
   ============================================================ */
.page-content {
  padding-top: calc(var(--nav-height) + 2rem); /* nav + alpha banner */
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 112, 26, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#hero-streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Legacy .hero-logo kept for other pages */
.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 40px rgba(232, 112, 26, 0.3));
  animation: float 6s ease-in-out infinite;
}

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

/* ============================================================
   Hero split layout (index page)
   ============================================================ */
/* Ensure all direct children of .hero sit above the canvas */
.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1040px;
  margin: 0 auto 3rem;
}

.hero-logo-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(232, 112, 26, 0.45))
          drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
  animation: float 6s ease-in-out infinite;
}

.hero-content-col {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hero-logo-img {
    width: 180px;
  }
  .hero-content-col {
    text-align: center;
  }
  .hero-content-col .hero-badge {
    justify-content: center !important;
  }
  .hero-content-col h1 {
    text-align: center !important;
  }
  .hero-content-col .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
  }
  .hero-content-col .hero-ctas {
    justify-content: center !important;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 112, 26, 0.12);
  border: 1px solid rgba(232, 112, 26, 0.3);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 20px rgba(232, 112, 26, 0.35);
}

.btn-primary:hover {
  background: var(--orange-light);
  color: #fff;
  box-shadow: 0 0 30px rgba(232, 112, 26, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(232, 112, 26, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(232, 112, 26, 0.1);
}

.card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.1);
}

.card-icon.purple {
  background: rgba(139, 92, 246, 0.1);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* ============================================================
   Grid layouts
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

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

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

/* ============================================================
   Section Headers
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ============================================================
   Stat / Metric tiles
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-tile:hover {
  border-color: rgba(232,112,26,0.4);
  box-shadow: 0 0 20px rgba(232,112,26,0.1);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.375rem;
}

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

/* ============================================================
   Protocol / Tag Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-orange {
  background: rgba(232, 112, 26, 0.15);
  color: var(--orange);
  border: 1px solid rgba(232, 112, 26, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

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

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================================
   Alpha Banner
   ============================================================ */
.alpha-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(20, 15, 5, 0.97);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.8125rem;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.alpha-banner strong {
  color: #fde68a;
}

.alpha-banner a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alpha-banner a:hover {
  color: #fde68a;
}

.alpha-banner-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
}

.alpha-banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fbbf24;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  opacity: 0.7;
}

.alpha-banner-close:hover {
  opacity: 1;
}

.badge-gray {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(100,116,139,0.25);
}

.badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================================
   Code Blocks
   ============================================================ */
.code-wrapper {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.code-wrapper pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-wrapper code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875rem;
}

/* Inline code */
:not(pre) > code {
  background: rgba(255,255,255,0.08);
  color: var(--orange-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.875em;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(255,255,255,0.03);
}

th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  vertical-align: top;
}

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

tbody tr:hover td {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
}

td.highlight {
  color: var(--orange);
  font-weight: 600;
}

td.check {
  color: var(--success);
}

td.cross {
  color: var(--danger);
}

/* ============================================================
   Performance Bar Charts (pure CSS)
   ============================================================ */
.perf-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.perf-bar-label {
  width: 140px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-weight: 500;
}

.perf-bar-track {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.perf-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  min-width: 80px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.perf-bar-fill.blue {
  background: linear-gradient(90deg, #1d4ed8, var(--blue));
}

/* ============================================================
   Plugin Cards
   ============================================================ */
.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.plugin-card:hover {
  border-color: rgba(232,112,26,0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(232,112,26,0.08);
  transform: translateY(-2px);
}

.plugin-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  margin-bottom: 0.375rem;
}

.plugin-priority {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.plugin-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ============================================================
   Feature List
   ============================================================ */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(232, 112, 26, 0.15);
  border: 1px solid rgba(232, 112, 26, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23E8701A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   Dividers and Decorators
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 1px;
  margin: 0 auto;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================================
   Alert / Info boxes
   ============================================================ */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
#footer-container footer {
  background: #080c18;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-logo img {
  height: 32px;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links li a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--orange);
}

/* ============================================================
   Comparison / Callout blocks
   ============================================================ */
.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout h4 {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   Architecture diagram (CSS-based)
   ============================================================ */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  overflow-x: auto;
}

.arch-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.arch-box.orange {
  background: rgba(232, 112, 26, 0.15);
  border: 1px solid rgba(232, 112, 26, 0.4);
  color: var(--orange);
}

.arch-box.blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
}

.arch-box.green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.arch-box.gray {
  background: rgba(100,116,139,0.1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0 0.5rem;
  user-select: none;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.arch-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ============================================================
   Accordion (for FAQ, docs sections)
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.accordion-item.open {
  border-color: var(--border-hover);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-card);
  transition: background 0.2s;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  user-select: none;
}

.accordion-header:hover {
  background: var(--bg-card-hover);
}

.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  background: rgba(255,255,255,0.01);
}

.accordion-item.open .accordion-body {
  padding: 1rem 1.25rem 1.25rem;
  max-height: 600px;
}

.accordion-body p, .accordion-body li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   Page Hero (sub-pages)
   ============================================================ */
.page-hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(232,112,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   Team cards (about.html)
   ============================================================ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  border-color: rgba(232,112,26,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(255,255,255,0.1);
}

.team-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================
   Step indicators (install guides)
   ============================================================ */
.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 112, 26, 0.15);
  border: 1px solid rgba(232, 112, 26, 0.4);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Download buttons
   ============================================================ */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.download-card:hover {
  border-color: rgba(232, 112, 26, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232, 112, 26, 0.1);
  color: inherit;
}

.download-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.download-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.download-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================================
   Contact form
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 112, 26, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 4rem 0 3rem;
  }
  .hero h1 {
    font-size: 1.875rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .perf-bar-label {
    width: 100px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container, .container-lg {
    padding: 0 1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .perf-bar-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .perf-bar-label {
    width: auto;
  }
  .perf-bar-track {
    width: 100%;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 112, 26, 0.2); }
  50% { box-shadow: 0 0 40px rgba(232, 112, 26, 0.4); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.5s ease forwards;
}

/* ============================================================
   Utility
   ============================================================ */
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue-light); }
.text-green { color: #34d399; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
