:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1422;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.4);
  --border-glow: rgba(121, 40, 202, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7928ca;
  --accent-pink: #ff0080;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #131b2e 0%, var(--bg-primary) 70%);
}

/* Background Ambient Glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-glow-1 {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.35), transparent 70%);
}
.bg-glow-2 {
  top: 400px;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.3), transparent 70%);
}
.bg-glow-3 {
  bottom: 200px;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-alt {
  background: linear-gradient(135deg, #a855f7 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.green-text { color: var(--accent-emerald); }
.blue-text { color: var(--accent-cyan); }
.purple-text { color: #c084fc; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-accent { color: var(--accent-cyan); }
.logo-dot { color: var(--accent-pink); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}
.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Hero Section (2-Column Grid) */
.hero-section {
  padding: 32px 0 20px;
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.hero-left {
  text-align: left;
}
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

/* Proof Metric Cards */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  backdrop-filter: blur(16px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}
.proof-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}
.proof-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Glassmorphic Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.profile-info {
  text-align: left;
}
.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified-icon {
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.profile-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.profile-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.profile-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; }

.btn-block {
  width: 100%;
}

.avatar-container {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.avatar-glow {
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.7;
}

.avatar-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #0f1422;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.avatar-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--accent-emerald);
  border: 2px solid #0a0d14;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-bottom: 20px;
}
.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Proof Metric Cards */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  backdrop-filter: blur(16px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}
.proof-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Section Common */
.section {
  padding: 40px 0 60px;
}
.portfolio-section {
  padding-top: 10px;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px;
}
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #051329;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.project-card.is-hidden {
  display: none !important;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  z-index: 5;
  text-transform: uppercase;
}
.badge-games { background: rgba(121, 40, 202, 0.3); color: #c084fc; border: 1px solid rgba(121, 40, 202, 0.5); }
.badge-scraping { background: rgba(0, 242, 254, 0.2); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.4); }
.badge-web { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-bots { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-emergency { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.card-preview {
  min-height: 160px;
  background: #090c14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Telegram Integration Styles
   ========================================================================== */

.btn-telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(34, 158, 217, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #37b7fa 0%, #29abeb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.55);
}

.tg-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

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

.card-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.emergency-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Floating Telegram Widget */
.floating-tg-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}

.floating-tg-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(34, 158, 217, 0.7);
}

.floating-tg-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(42, 171, 238, 0.6);
  animation: tgPulse 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
  pointer-events: none;
}

@keyframes tgPulse {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(0.98);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .floating-tg-text {
    display: none;
  }
  .floating-tg-widget {
    padding: 14px;
    bottom: 18px;
    right: 18px;
  }
  .nav-actions {
    display: none;
  }
}

/* Banner Styles for previews */
.game-preview-banner {
  background: linear-gradient(135deg, #18122B 0%, #0c0817 100%);
  gap: 10px;
  padding-top: 36px; /* Leave breathing room for top-right badge */
}
.store-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  max-width: calc(100% - 130px); /* Never collide with the top-right tag */
}
.store-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}
.installs-badge {
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.game-titles-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.game-chip {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }
.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.terminal-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
  line-height: 1.4;
  white-space: pre-wrap;
}

.api-method-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}
.api-status-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.api-payload-box code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a78bfa;
}

.perf-metric-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.perf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-title { font-size: 0.7rem; color: var(--text-muted); }
.stat-val { font-size: 0.95rem; font-weight: 700; }

.socket-ping-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fbbf24;
}
.ping-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px #fbbf24;
}
.ping-dot.green-bg { background: #10b981; box-shadow: 0 0 8px #10b981; }
.ping-dot.blue-bg { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.ping-dot.red-bg { background: #f87171; box-shadow: 0 0 8px #f87171; }

.error-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.red-strike { color: #f87171; text-decoration: line-through; }
.green-fixed { color: #34d399; font-weight: 600; }

/* Card Content */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.status-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}
.card-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}
.card-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Interactive Simulator Section */
.interactive-box {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.9) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
}
.interactive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.interactive-title {
  font-size: 1.8rem;
  font-weight: 800;
}
.interactive-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
}
.interactive-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.simulator-controls {
  margin-bottom: 20px;
}
.input-group {
  display: flex;
  gap: 12px;
}
.demo-input {
  flex-grow: 1;
  background: #07090f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.demo-input:focus {
  border-color: var(--accent-cyan);
}

.simulator-output-box {
  background: #06080e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.output-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.speed-tag { color: var(--accent-emerald); font-weight: 600; }
.output-code {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  line-height: 1.5;
  min-height: 150px;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Emergency Banner */
.emergency-banner {
  background: radial-gradient(circle at 100% 50%, rgba(239, 68, 68, 0.25) 0%, rgba(18, 24, 38, 0.9) 70%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.urgent-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.emergency-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.emergency-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-link:hover { color: #fff; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive & Mobile Optimization */
@media (max-width: 990px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 32px; 
  }
  .hero-left {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-right { 
    justify-content: center; 
  }
  .profile-card { 
    max-width: 440px; 
    margin: 0 auto;
  }
  .hero-title { 
    font-size: 2.4rem; 
  }
  .proof-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
  }
  .projects-grid { 
    grid-template-columns: 1fr; 
  }
  .emergency-banner { 
    flex-direction: column; 
    text-align: center; 
  }
  .emergency-desc { 
    margin: 0 auto; 
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 24px 0 16px;
  }
  .hero-title { 
    font-size: 1.85rem; 
    letter-spacing: -0.5px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions { 
    flex-direction: column; 
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .proof-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px;
  }
  .proof-card {
    padding: 10px 8px;
  }
  .proof-number {
    font-size: 1.3rem;
  }
  .nav-links { 
    display: none; 
  }
  .filter-tabs {
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .terminal-code {
    font-size: 0.72rem;
    padding: 12px;
  }
  .input-group { 
    flex-direction: column; 
  }
  .interactive-demo {
    padding: 20px 14px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
