/**
 * Alphatec Cyberpunk & Dark Tech UI/UX Design System
 * Silicon Valley AI Lab Aesthetics
 */

:root {
  --neon-cyan: #00d2ff;
  --neon-glow: rgba(0, 210, 255, 0.35);
  --neon-border: rgba(0, 210, 255, 0.22);
  --matrix-green: #00ff87;
  --cyber-dark: #05070a;
  --cyber-surface: rgba(11, 15, 23, 0.75);
  --cyber-surface-hover: rgba(16, 22, 34, 0.88);
  --text-pure: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Canvas */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--cyber-dark) !important;
  color: var(--text-pure) !important;
  font-family: var(--font-main) !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.alphatec-cyberpunk-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Header */
.cyber-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neon-border);
  padding: 16px 0;
}

.cyber-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  letter-spacing: 0.05em;
}

.cyber-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cyber-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
}

.cyber-nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-glow);
}

.cyber-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--matrix-green);
}

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

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 255, 135, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

/* Cyberpunk Buttons */
.btn-cyber-primary {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-cyber-primary:hover {
  background: var(--neon-cyan);
  color: #05070a;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.7);
  transform: translateY(-2px);
}

.btn-cyber-ghost {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-cyber-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* Bento Grid Architecture */
.bento-container {
  max-width: 1240px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--cyber-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--neon-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  background: var(--cyber-surface-hover);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.25);
  transform: translateY(-4px);
}

/* Bento Card Grid Spans */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* Hero Section */
.hero-card {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 210, 255, 0.35);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 0 32px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Card Headers & Badges */
.card-header-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

/* Terminal Log Stream Simulator */
.cyber-terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
}

.terminal-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeInLine 0.3s ease;
}

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

/* Tech Tags */
.tech-tag-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Telemetry Metrics */
.metric-val {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: -0.04em;
  margin: 0 0 8px 0;
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.45);
}

.metric-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

/* Cyber Footer */
.cyber-footer {
  margin-top: auto;
  background: rgba(5, 7, 10, 0.95);
  border-top: 1px solid var(--neon-border);
  padding: 40px 0;
}

.cyber-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 12;
  }
  .hero-card {
    padding: 36px 24px;
  }
}
