/* ============================================
   JIC × GW Engineering Management — Ecosystem
   Cyberpunk-Institutional Design System
   ============================================ */

:root {
  --bg: #020204;
  --surface: #0a0a0f;
  --elevated: #111118;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0,240,255,0.15);
  --orange: #ff6b35;
  --gold: #C9A227;
  --success: #00ff88;
  --danger: #ff4444;
  --text: #e8e8e8;
  --text-muted: #8899a6;
  --border: #1a1a2e;
  --border-glow: rgba(0,240,255,0.3);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Perspective Grid Background */
.perspective-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  perspective: 1000px;
  overflow: hidden;
}

.perspective-grid::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(60deg);
  animation: gridMove 20s linear infinite;
  opacity: 0.25;
}

@keyframes gridMove {
  0% { transform: rotateX(60deg) translateY(0); }
  100% { transform: rotateX(60deg) translateY(60px); }
}

/* Glowing Orb */
.glow-orb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Navigation */
.nav-glass {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,240,255,0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0,240,255,0.3);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.lang-toggle {
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-orb {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(0,240,255,0.15);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Typewriter */
.typewriter {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.9rem;
}

.typewriter::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,240,255,0.08);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(0,240,255,0.02), transparent);
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 30px rgba(0,240,255,0.1);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,240,255,0.1), 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--cyan), transparent, var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.card-glow:hover::before { opacity: 0.3; }

/* Glass Card */
.glass-card {
  background: rgba(17,17,24,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-shipped {
  background: rgba(0,255,136,0.1);
  color: var(--success);
  border: 1px solid rgba(0,255,136,0.3);
}

.badge-active {
  background: rgba(0,240,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.3);
}

.badge-warning {
  background: rgba(255,107,53,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,107,53,0.3);
}

/* Architecture Diagram */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 2rem 0;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  min-width: 120px;
}

.flow-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.25rem;
  color: var(--cyan);
  transition: all 0.3s;
}

.flow-node:hover .flow-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.flow-arrow {
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0.5;
  position: relative;
}

.flow-arrow .travel-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: travelRight 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes travelRight {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

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

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.bento-item .item-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.bento-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sprint Cards */
.sprint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
}

.sprint-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,240,255,0.08);
  transform: translateY(-4px);
}

.sprint-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sprint-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  opacity: 0.6;
}

.sprint-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sprint-stat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sprint-stat strong {
  color: var(--text);
  display: block;
  font-family: var(--font-mono);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
  opacity: 0.3;
}

.timeline-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 12px; height: 12px;
  background: var(--surface);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.timeline-dot:hover {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  transform: scale(1.3);
}

.timeline-dot::after {
  content: attr(data-sprint);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Tool Cards */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.tool-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,240,255,0.08);
}

.tool-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tool-oss {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--success);
  background: rgba(0,255,136,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Terminal / Console */
.terminal {
  background: #0d0d12;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: var(--elevated);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

.terminal-body {
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}

.terminal-body .cmd { color: var(--cyan); }
.terminal-body .str { color: var(--success); }
.terminal-body .comment { color: #555; }

/* Dashboard Mockups */
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.dash-panel h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CSS Bar Charts */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--cyan), rgba(0,240,255,0.2));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 1s ease-out;
  position: relative;
}

.bar-fill::after {
  content: attr(data-value);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.bar-item:hover .bar-fill::after { opacity: 1; }

.bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

/* Gauges */
.gauge {
  width: 100px; height: 100px;
  margin: 0 auto;
  position: relative;
}

.gauge-bg,
.gauge-fill {
  fill: none;
  stroke-width: 8;
}

.gauge-bg { stroke: var(--border); }

.gauge-fill {
  stroke: var(--cyan);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}

.gauge-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Funnel */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.funnel-bar {
  height: 36px;
  background: linear-gradient(90deg, var(--cyan), rgba(0,240,255,0.3));
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bg);
  font-weight: 600;
  transition: width 1s ease-out;
  white-space: nowrap;
}

.funnel-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 50px;
  text-align: right;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
}

.data-table tr:hover td {
  background: rgba(0,240,255,0.03);
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--elevated);
  color: var(--cyan);
  border: 1px solid var(--border-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Accordion */
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover { background: rgba(0,240,255,0.03); }

.accordion-icon {
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.open .accordion-body {
  max-height: 1000px;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Search / Filter */
.search-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.search-box:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.1);
}

.search-box::placeholder { color: var(--text-muted); }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

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

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

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.oss-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,255,136,0.08);
  color: var(--success);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Counter Animation */
.counter {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--cyan), #0088aa);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,240,255,0.2);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,240,255,0.3);
}

.cta-btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: none;
}

.cta-btn-outline:hover {
  background: var(--cyan-dim);
}

/* Form elements */
input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyan);
}

/* Alert table */
.alert-table td,
.alert-table th {
  font-size: 0.8rem;
}

.alert-high { color: var(--danger); }
.alert-medium { color: var(--orange); }
.alert-low { color: var(--success); }

/* Live status indicator */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success);
}

/* Page header */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 30px rgba(0,240,255,0.1);
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ICP Table */
.icp-table th,
.icp-table td {
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-inner { padding: 0 1rem; }

  .mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(2,2,4,0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .mobile-drawer.open { transform: translateX(0); }

  .mobile-drawer a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
  }

  .mobile-drawer a.active { color: var(--cyan); }

  .mobile-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
  }

  .hero { padding: 6rem 1rem 3rem; }
  .section { padding: 3rem 1rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .arch-flow { flex-direction: column; gap: 1rem; }
  .flow-arrow { transform: rotate(90deg); }
  .timeline-line { display: none; }
  .timeline-dots { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .timeline-dot::after { top: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .funnel-step { flex-wrap: wrap; }
}

/* Bilingual: Arabic */
html[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .sprint-header { flex-direction: row-reverse; }
html[dir="rtl"] .flow-arrow { transform: scaleX(-1); }
html[dir="rtl"] .funnel-step { flex-direction: row-reverse; }
html[dir="rtl"] .data-table th { text-align: right; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
