/* ==========================================================================
   GENERALBOTS.ORG — 2027 REDESIGN SYSTEM
   Dark Mode Developer Platform
   Color Palette: GitHub Dark, Sky Blue, Coral Accent
   Typography: JetBrains Mono + Inter
   ========================================================================== */

:root {
  /* Color System */
  --bg: #0D1117;
  --surface: #161B22;
  --primary: #58A6FF;
  --accent: #F78166;
  --text: #E6EDF3;
  --muted: #8B949E;
  --border: #30363D;
  --hover: #238636;
  
  /* Typography */
  --font-display: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Radius */
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  
  /* Shadows */
  --shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

code, pre {
  font-family: var(--font-display);
  background: var(--surface);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius);
  font-size: 0.875em;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* Hero Visual - Isometric Bot Core */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-core-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.bot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coreGlow 4s ease-in-out infinite;
}

@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(88, 166, 255, 0.4); }
  50% { box-shadow: 0 0 60px rgba(247, 129, 102, 0.6); }
}

.channel-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.channel-node {
  position: absolute;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

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

.channel-node:nth-child(1) { top: -80px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.channel-node:nth-child(2) { top: -40px; right: -100px; animation-delay: -1s; }
.channel-node:nth-child(3) { top: 60px; right: -120px; animation-delay: -2s; }
.channel-node:nth-child(4) { bottom: -80px; left: 50%; transform: translateX(-50%); animation-delay: -3s; }
.channel-node:nth-child(5) { top: 60px; left: -120px; animation-delay: -4s; }
.channel-node:nth-child(6) { top: -40px; left: -100px; animation-delay: -5s; }

.message-flow {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
  animation: messageFlow 2s linear infinite;
}

@keyframes messageFlow {
  0% { opacity: 0; height: 0; }
  50% { opacity: 1; height: 60px; }
  100% { opacity: 0; height: 60px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #79B8FF;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background: rgba(88, 166, 255, 0.1);
}

/* Value Propositions */
.value-props {
  background: var(--bg);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Community Proof */
.community-proof {
  background: var(--surface);
}

.community-proof h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.metric-block {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.metric-block:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Live Channel Pulse */
.channel-pulse {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
}

.pulse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.pulse-canvas {
  position: relative;
  height: 400px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-sm);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

.channel-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  transition: all 0.3s;
}

.channel-item.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

/* Code Block */
.code-sample {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.code-sample pre {
  background: var(--bg);
  padding: var(--space-md);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-sample code {
  color: var(--text);
  padding: 0;
  background: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .value-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-visual {
    height: 400px;
  }
  
  .channel-node {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-visual {
    display: none;
  }
}
