/* ═══════════════════════════════════════════════════════
   COGNITIVE INDUSTRIES — Master Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1923;
  --accent-cyan: #00d4ff;
  --accent-steel: #8a9bb5;
  --accent-hot: #ff3366;
  --accent-success: #00ff88;
  --accent-amber: #ffaa00;
  --text-primary: #e8edf5;
  --text-muted: #5a6a80;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Utility ─── */
.mono { font-family: var(--font-mono); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.accent { color: var(--accent-cyan); }

/* ─── Section Labels ─── */
.section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* ─── Glitch Animation ─── */
.glitch {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 93%, 100% { text-shadow: none; }
  94% { text-shadow: 2px 0 var(--accent-cyan), -2px 0 var(--accent-hot); }
  95% { text-shadow: -1px 0 var(--accent-hot), 1px 0 var(--accent-cyan); }
  96% { text-shadow: none; }
  97% { text-shadow: 3px 0 var(--accent-cyan), -3px 0 var(--accent-hot); }
  98% { text-shadow: -2px 0 var(--accent-hot), 2px 0 var(--accent-cyan); }
}

/* ─── Reveal (scroll animations) ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  min-height: 44px;
  min-width: 44px;
}
.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  text-decoration: none;
}
.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--hot {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}
.btn--hot:hover {
  background: var(--accent-hot);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  color: var(--accent-steel);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.3) 0%, var(--bg-primary) 70%);
  overflow: hidden;
}
#circuit-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero__logo {
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2.5rem;
  border-radius: 12px;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1); }
  50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.4), 0 0 100px rgba(0, 212, 255, 0.15); }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════
   MISSION
   ═══════════════════════════════════════════════════════ */
.mission {
  position: relative;
}
.mission::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.02) 2px,
    rgba(0, 212, 255, 0.02) 3px
  );
  pointer-events: none;
}
.directive {
  display: block;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.mission__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-block {
  padding: 1.5rem;
  border-left: 3px solid rgba(0, 212, 255, 0.2);
  transition: border-color 0.3s;
}
.value-block:hover {
  border-color: var(--accent-cyan);
}
.value-block p {
  color: var(--accent-steel);
  line-height: 1.7;
}
mark {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
  padding: 0 4px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS — General
   ═══════════════════════════════════════════════════════ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.product:last-child { border-bottom: none; }
.product--reverse .product__info { order: 2; }
.product--reverse .product__interactive { order: 1; }

.product__info h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}
.product__info .one-liner {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.product__info p {
  color: var(--accent-steel);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.status-badge--live {
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
  animation: pulseGreen 2s ease-in-out infinite;
}
.status-badge--dev {
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
  animation: pulseAmber 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 255, 136, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
}
@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 170, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 170, 0, 0.4); }
}

/* ─── Chat Window (ChazzAI) ─── */
.chat-window {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
  overflow: hidden;
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chat-dot--red { background: #ff5f57; }
.chat-dot--yellow { background: #ffbd2e; }
.chat-dot--green { background: #28ca42; }
.chat-titlebar-text {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.chat-messages {
  padding: 1.25rem;
  min-height: 250px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-user {
  align-self: flex-end;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}
.chat-ai {
  align-self: flex-start;
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
  border-left: 2px solid var(--accent-cyan);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  align-self: flex-start;
}
.chat-typing span {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ─── Lucky 100 Grid ─── */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
}
.lucky-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.lucky-cell.lit {
  background: rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ─── WebSwarm Browser Frame ─── */
.browser-frame {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
  overflow: hidden;
}
.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.browser-address-bar .chat-dot { width: 8px; height: 8px; }
.browser-address-input {
  flex: 1;
  margin-left: 10px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(138, 155, 181, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.browser-canvas-wrap {
  position: relative;
  height: 280px;
}
.browser-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════
   OPEN SOURCE
   ═══════════════════════════════════════════════════════ */
.oss h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.oss > .container > p {
  color: var(--accent-steel);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.repo-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.repo-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}
.repo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.repo-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lang-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.lang-dot--js { background: #f7df1e; }
.lang-dot--ts { background: #3178c6; }
.lang-dot--py { background: #3572A5; }
.lang-dot--rs { background: #dea584; }

/* ═══════════════════════════════════════════════════════
   UPDATES / BLOG
   ═══════════════════════════════════════════════════════ */
.updates__container {
  max-width: 800px;
  margin: 0 auto;
}
.post-card {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.post-card:hover {
  background: rgba(15, 25, 35, 0.9);
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-excerpt {
  color: var(--accent-steel);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact__divider {
  background: rgba(0, 212, 255, 0.2);
}
.contact__grid h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.contact__grid p {
  color: var(--accent-steel);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-steel);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a9bb5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.contact-confirm {
  display: none;
  color: var(--accent-success);
  font-weight: 600;
  margin-top: 1rem;
}
.contact-confirm.visible { display: block; }
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-steel);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--accent-cyan); text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   BOUNTY LEADERBOARD
   ═══════════════════════════════════════════════════════ */
.bounty-section {
  position: relative;
  background:
    radial-gradient(ellipse at top center, rgba(255, 51, 102, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}
.bounty-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.bounty-sub {
  text-align: center;
  color: var(--accent-steel);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.bounty-counters {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.bounty-counter {
  text-align: center;
}
.bounty-counter-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
#total-debt {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-hot);
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}
#total-paid {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-success);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Hacker Cards */
#hackers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hacker-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s;
}
.hacker-card.border-owed { border-color: rgba(255, 51, 102, 0.3); }
.hacker-card.border-paid { border-color: rgba(0, 255, 136, 0.3); }
.hacker-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.border-owed .hacker-avatar { border: 2px solid var(--accent-cyan); }
.border-paid .hacker-avatar { border: 2px solid var(--accent-success); }
.hacker-info { flex: 1; min-width: 0; }
.hacker-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.debt-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 51, 102, 0.3);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.debt-bar-paid {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-success);
  transition: width 1s ease;
}
.debt-amounts {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.bounty-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   SUBMISSION MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}
.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text-primary); }
.modal-inner { position: relative; }
.form-error {
  display: none;
  color: var(--accent-hot);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.success-message p {
  color: var(--accent-success);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer__logo img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}
.footer__logo span {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.footer__copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent-cyan); }
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__links {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product--reverse .product__info { order: 1; }
  .product--reverse .product__interactive { order: 2; }

  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__divider { display: none; }

  .bounty-counters {
    gap: 2rem;
  }
  #hackers-list {
    grid-template-columns: 1fr;
  }

  .mission__grid {
    grid-template-columns: 1fr;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .hero__logo {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 4rem 0; }

  .hero h1 { font-size: 1.5rem; }
  .hero__logo { max-width: 240px; }

  .product__info h2 { font-size: 1.6rem; }
  .bounty-title { font-size: 1.2rem; }

  .chat-messages {
    min-height: 200px;
    max-height: 260px;
  }
  .browser-canvas-wrap { height: 220px; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow { display: none; }
}
