@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════
   Comic Chat Network — site.css
   Aesthetic: dark terminal + mood dashboard palette
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:          #08080d;
  --surface:     #0e0e16;
  --surface-2:   #121220;
  --border:      #1a1a2e;
  --border-glow: #2a2a44;
  --text:        #b8b8cc;
  --text-bright: #e4e4f0;
  --text-dim:    #4a4a64;
  --text-muted:  #2e2e44;

  /* Signal palette */
  --energy:    #fbbf24;
  --warmth:    #f472b6;
  --playful:   #38bdf8;
  --tension:   #ef4444;

  --accent:    var(--playful);
  --accent-dim: rgba(56,189,248,.08);
}

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

body {
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: 'Fira Code', monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-bright); }

img { max-width: 100%; height: auto; display: block; }

/* ─── Layout shell ───────────────────────────────────── */
.site-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-wide {
  max-width: 1280px;
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  animation: fade-down .5s ease-out both;
}

.nav-prompt {
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 4px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all .2s;
  letter-spacing: .3px;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.nav-link.active {
  color: var(--nav-active, var(--accent));
  border-color: var(--nav-active-border, rgba(56,189,248,.2));
  background: var(--nav-active-bg, var(--accent-dim));
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0 48px;
  animation: fade-up .6s ease-out both;
  animation-delay: .1s;
}

.hero-char {
  width: 140px;
  flex-shrink: 0;
  position: relative;
}
.hero-char img {
  width: 100%;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
  transition: transform .4s cubic-bezier(.22,1,.36,1), filter .3s;
}
.hero-char:hover img {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 8px 32px rgba(56,189,248,.15));
}
/* subtle glow under each character */
.hero-char::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 10%; right: 10%; height: 24px;
  background: radial-gradient(ellipse, rgba(56,189,248,.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-center {
  flex: 1;
  text-align: center;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
/* color the word "Comic" with the playful accent */
.hero-title .hl { color: var(--hero-hl, var(--playful)); }

.hero-tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Quick-access buttons in hero */
.hero-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

/* Live indicator dot */
.nav-live { position: relative; }
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #e53e3e;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ─── Action cards ───────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .25s, transform .3s;
  animation: fade-up .5s ease-out both;
}
.card:nth-child(1) { animation-delay: .2s; }
.card:nth-child(2) { animation-delay: .3s; }
.card:nth-child(3) { animation-delay: .4s; }

.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% -20%, rgba(56,189,248,.03), transparent 70%);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-glow);
  background: var(--surface-2);
  box-shadow: 0 0 20px -6px var(--card-glow, transparent);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-icon .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.card-icon.energy .dot   { background: var(--dot-energy, var(--energy)); }
.card-icon.warmth .dot   { background: var(--dot-warmth, var(--warmth)); }
.card-icon.playful .dot  { background: var(--dot-playful, var(--playful)); }
.card-icon.energy  { color: var(--dot-energy, var(--energy)); }
.card-icon.warmth  { color: var(--dot-warmth, var(--warmth)); }
.card-icon.playful { color: var(--dot-playful, var(--playful)); }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  letter-spacing: .3px;
}
.btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
  background: var(--surface-2);
}
.btn-accent {
  border-color: rgba(56,189,248,.25);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-accent:hover {
  border-color: rgba(56,189,248,.45);
  color: var(--text-bright);
  background: rgba(56,189,248,.12);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform .2s;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── Resources / footer ─────────────────────────────── */
.resources {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  animation: fade-up .5s ease-out both;
  animation-delay: .5s;
}

.resources-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.resource {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.resource:last-child { border-bottom: none; }

.resource-img {
  width: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.resource-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s;
}
.resource:hover .resource-img img { transform: scale(1.05); }

.resource-body { flex: 1; min-width: 0; }
.resource-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.resource-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 6px;
}
.resource-link {
  font-size: 11px;
}
.resource-link a { color: var(--accent); }
.resource-link a:hover { color: var(--text-bright); }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── Page hero (subpages — no flanking characters) ──── */
.page-hero {
  text-align: center;
  padding: 24px 0 40px;
  animation: fade-up .5s ease-out both;
  animation-delay: .1s;
}
.page-hero .hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.8px;
  margin-bottom: 12px;
}
.page-hero .hero-tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.page-hero .hero-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── Content panels (guide steps) ───────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: fade-up .5s ease-out both;
}
.panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% -20%, rgba(56,189,248,.02), transparent 70%);
  pointer-events: none;
}
.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  letter-spacing: -.2px;
}
.panel-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.75;
}
.panel-text p {
  margin-bottom: 10px;
}
.panel-text p:last-child { margin-bottom: 0; }

/* stagger panel animations */
.panel:nth-child(2) { animation-delay: .15s; }
.panel:nth-child(3) { animation-delay: .2s; }
.panel:nth-child(4) { animation-delay: .25s; }
.panel:nth-child(5) { animation-delay: .3s; }
.panel:nth-child(6) { animation-delay: .35s; }
.panel:nth-child(7) { animation-delay: .4s; }
.panel:nth-child(8) { animation-delay: .45s; }

/* ─── Inline code / mono ─────────────────────────────── */
.mono {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(56,189,248,.06);
  border: 1px solid rgba(56,189,248,.12);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
}
/* block-level mono (file paths, etc.) */
p.mono {
  display: block;
  padding: 8px 14px;
  margin: 8px 0;
  line-height: 1.5;
}

/* ─── Callout / tip boxes ────────────────────────────── */
.callout {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  padding: 14px 18px;
  margin: 16px 0;
  background: rgba(251,191,36,.04);
  border: 1px solid rgba(251,191,36,.12);
  border-left: 3px solid var(--energy);
  border-radius: 4px;
}
.callout strong {
  color: var(--energy);
}
.callout a { color: var(--accent); }
.callout a:hover { color: var(--text-bright); }

/* ─── Server table ───────────────────────────────────── */
.server-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}
.server-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.server-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-glow);
}
.server-table td {
  padding: 12px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.server-table tbody tr:last-child td { border-bottom: none; }
.server-table tbody tr:hover td {
  background: var(--accent-dim);
}
.server-yes {
  color: var(--energy);
  font-weight: 500;
}
.server-alt {
  color: var(--text-dim);
}

@media (max-width: 520px) {
  .server-table thead { display: none; }
  .server-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .server-table tbody tr:last-child { border-bottom: none; }
  .server-table td {
    display: block;
    padding: 2px 0;
    border-bottom: none;
  }
  .server-table td::before {
    content: attr(data-label) ": ";
    color: var(--text-dim);
    font-weight: 500;
  }
}

/* ─── Screenshots ────────────────────────────────────── */
.shot {
  margin: 18px 0 4px;
  text-align: center;
}
.shot img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
}

/* ─── Two-column screenshot layout ───────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

.mini-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
}
.mini-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.mini-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 12px;
}
.mini-card .shot { margin: 10px 0 0; }

/* ─── Button row (footer area) ───────────────────────── */
.button-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ─── Footer note (bottom CTA area on subpages) ─────── */
.footer-note {
  border-top: 1px solid var(--border);
  padding: 28px 0 12px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  animation: fade-up .5s ease-out both;
  animation-delay: .45s;
}
.footer-note strong { color: var(--text-bright); }
.footer-note .small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  0%   { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { gap: 16px; padding: 24px 0 36px; }
  .hero-char { width: 70px; }
  .hero-title { font-size: 24px; }
  .hero-tagline { font-size: 12px; }
  .cards { grid-template-columns: 1fr; }
  .resource { flex-direction: column; gap: 12px; }
  .resource-img { width: 56px; }
}

@media (max-width: 420px) {
  .hero-char { display: none; }
  .hero { padding: 20px 0 32px; }
}
