/* ==========================================================================
   IEA CONSORTIUM & UDT ENTERPRISE - STYLESHEET
   Clean, Responsive, High-Performance CSS (Zero Dependencies)
   ========================================================================== */

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: #131d36;
  --bg-card-hover: #192748;
  --bg-glass: rgba(19, 29, 54, 0.75);
  --border-color: #1e293b;
  --border-focus: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #0ea5e9;
  --accent-cyan-glow: rgba(14, 165, 233, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #38bdf8;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #04121f;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-emerald-glow);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: #334155;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-value.cyan { color: #38bdf8; }
.stat-value.emerald { color: #34d399; }
.stat-value.amber { color: #fbbf24; }

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

/* Hero Visual / Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #10b981, #f59e0b);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e293b;
}

.hero-card-header h3 {
  font-size: 1.1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-row {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  transition: var(--transition);
}

.item-row:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: #334155;
  transform: translateX(3px);
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.item-row.emerald .item-icon { color: var(--accent-emerald); }
.item-row.amber .item-icon { color: var(--accent-amber); }

.item-text h4 {
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.item-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Sections General */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
}

/* 200 MW Grid & Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: #334155;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-top {
  margin-bottom: 24px;
}

.card-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card.solar .card-icon-badge { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.card.wind .card-icon-badge { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.card.transfer .card-icon-badge { background: rgba(14, 165, 233, 0.12); color: #38bdf8; }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
}

.specs-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-list li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Barter & Commodity Section */
.barter-box {
  background: linear-gradient(135deg, #131d36 0%, #0d1527 100%);
  border: 1px solid #243455;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.barter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.barter-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.feature-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature-pill h4 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 4px;
}

.feature-pill p {
  font-size: 0.82rem;
}

/* Clearing Diagram Card */
.clearing-card {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 24px;
}

.clearing-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.clearing-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clearing-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #111827;
  border: 1px solid #1f2937;
  font-size: 0.85rem;
}

.clearing-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #04121f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Consortium & KYC Section */
.consortium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.entity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.entity-card.lead {
  border-top: 4px solid var(--accent-cyan);
}

.entity-card.tech {
  border-top: 4px solid var(--accent-emerald);
}

.entity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.entity-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.entity-role.lead-tag { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.entity-role.tech-tag { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.entity-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.entity-rep {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 600;
}

.entity-table {
  width: 100%;
  margin: 18px 0;
  font-size: 0.84rem;
  border-collapse: collapse;
}

.entity-table td {
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.entity-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.entity-table td:last-child {
  color: #ffffff;
  font-weight: 500;
}

/* Docs Download Strip */
.docs-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.docs-strip-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.docs-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* UDT High-Tech Diagnostics Section */
.udt-terminal-box {
  background: #080d1a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a2333;
  margin-bottom: 24px;
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.telemetry-card {
  background: #0d1527;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 18px;
}

.telemetry-card .t-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.telemetry-card .t-val {
  font-size: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

.telemetry-card .t-sub {
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 4px;
  display: block;
}

.download-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Enhanced Download Area Styles */
.dl-card.highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 23, 42, 0.95) 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}
.dl-card.highlight:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(23, 36, 62, 0.95) 100%);
  border-color: #7dd3fc;
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.25);
}
.dl-card.emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 23, 42, 0.95) 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}
.dl-card.emerald:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(23, 36, 62, 0.95) 100%);
  border-color: #34d399;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.25);
}
.dl-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.dl-badge.cyan {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.dl-badge.emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.dl-badge.purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.dl-secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.dl-info-box {
  margin-top: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.dl-smartscreen {
  border-left: 4px solid #38bdf8;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dl-smartscreen-icon {
  flex-shrink: 0;
  color: #38bdf8;
  margin-top: 2px;
}
.dl-smartscreen-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.dl-smartscreen-text p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
.dl-checksums {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}
.dl-checksum-header {
  font-size: 0.80rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.dl-checksum-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.dl-checksum-item:last-child {
  border-bottom: none;
}
.dl-checksum-item .cs-file {
  color: #e2e8f0;
  font-weight: 600;
}
.dl-checksum-item .cs-hash {
  color: #38bdf8;
  word-break: break-all;
}

.dl-card {
  background: #0e172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
}

.dl-card:hover {
  background: #17243e;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.dl-card-info b {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.dl-card-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dl-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

/* Contact & Footer */
.footer {
  background: #060913;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #131c31;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Document Viewer Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .barter-grid, .consortium-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-cards-row {
    grid-template-columns: 1fr;
  }
  .dl-secondary-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}