:root {
  /* Color Palette - Industrial / Technical Cyberpunk */
  --bg-dark: #0a0c10;
  --bg-card: #141820;
  --accent-primary: #00f2ff;
  --accent-secondary: #7000ff;
  --text-main: #e0e6ed;
  --text-dim: #94a3b8;
  --border-color: #1e293b;
  --glow: 0 0 15px rgba(0, 242, 255, 0.3);
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -1px;
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 242, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent-primary);
}

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

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Architecture Flow Styles */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -2px;
  background: linear-gradient(to right, #fff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Diagram Components */
.diagram-container {
  position: relative;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  align-items: center;
  width: 100%;
  position: relative;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  border-radius: 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
}

.step-content:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow);
  transform: translateY(-5px);
}

.step-label {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Connectors */
.connector {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  transform: translateX(-50%);
}

.connector::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-secondary);
}

/* Grid/Detail sections */
.side-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0 var(--space-md);
  opacity: 0.6;
}

.side-note.left { text-align: right; }
.side-note.right { text-align: left; }

.tech-pill {
  display: inline-block;
  background: #1e293b;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: 8px;
}

/* Database / End node */
.db-node {
  background: linear-gradient(135deg, #141820 0%, #0f172a 100%);
  border: 2px solid var(--accent-secondary);
  border-radius: 50% / 15%;
  width: 240px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.split-path {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  width: 100%;
  margin-top: 40px;
}

.end-card {
  flex: 1;
  max-width: 400px;
}

/* Decorations */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--accent-primary);
}

footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}