/* ══════════════════════════════════════════
   AimalCorp — Terminal UI
   assets/css/style.css
══════════════════════════════════════════ */

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

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

:root {
  --black:    #080808;
  --panel:    #0f0f0f;
  --card:     #141414;
  --border:   #222222;
  --red:      #cc2020;
  --red-hot:  #ff3333;
  --red-dim:  #7a1212;
  --grey:     #e0e0e0;
  --grey-mid: #888888;
  --grey-dim: #444444;
  --font:     'JetBrains Mono', 'Courier New', monospace;
}

html, body {
  background: var(--black);
  color: var(--grey);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Security: no text selection on UI chrome ── */
header, footer, nav {
  -webkit-user-select: none;
  user-select: none;
}

/* ── CRT scanlines overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════════════
   BOOT SCREEN
══════════════════════════════════════════ */
#boot {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  z-index: 1000;
  transition: opacity 0.5s ease;
}
#boot.fade-out { opacity: 0; pointer-events: none; }

#boot-log {
  width: min(640px, 90vw);
  font-size: 13px;
  color: var(--grey-mid);
}
#boot-log .line { opacity: 0; animation: appear 0.05s forwards; }
#boot-log .ok   { color: #22aa44; }
#boot-log .err  { color: var(--red-hot); }
#boot-log .red  { color: var(--red-hot); }

@keyframes appear { to { opacity: 1; } }

/* ══════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════ */
#app { display: none; flex-direction: column; min-height: 100vh; }
#app.visible { display: flex; }

/* ══════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════ */
header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky; top: 0;
  z-index: 100;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-bracket { color: var(--red); }
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-hot);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 4px var(--red-hot); }
  50%      { box-shadow: 0 0 12px var(--red-hot), 0 0 24px var(--red-dim); }
}

nav { display: flex; gap: 4px; }

nav a {
  background: none;
  border: none;
  color: var(--grey-mid);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  border-left: 2px solid transparent;
}
nav a:hover { color: var(--grey); background: var(--card); }
nav a.active {
  color: var(--red-hot);
  background: rgba(204,32,32,0.08);
  border-left: 2px solid var(--red);
}

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
main {
  flex: 1;
  padding: 40px 32px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ── Status bar ── */
.statusbar {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; color: var(--grey-dim);
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.statusbar .tag {
  display: flex; align-items: center; gap: 6px;
}
.statusbar .dot-on {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22aa44;
  box-shadow: 0 0 6px #22aa44;
  animation: pulse-g 2.5s infinite;
}
@keyframes pulse-g {
  0%,100% { box-shadow: 0 0 4px #22aa44; }
  50%      { box-shadow: 0 0 10px #22aa44; }
}
.statusbar .on  { color: #22aa44; font-weight: 600; }
.statusbar .sep { color: var(--border); }

/* ══════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════ */
.sect-label {
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.sect-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--red-dim), transparent);
}

h1.page-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--grey);
  margin-bottom: 4px;
  line-height: 1.2;
}

.page-sub {
  font-size: 12px;
  color: var(--grey-mid);
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--grey-dim); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red-dim);
  border-radius: 3px 0 0 3px;
}
.card.red-accent::before { background: var(--red); }

.card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card h3 .prompt { color: var(--red); }

.card p, .card li {
  font-size: 13px;
  color: var(--grey-mid);
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   FOUNDERS GRID (index only)
══════════════════════════════════════════ */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.founder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}
.founder-card:hover { border-color: var(--red-dim); transform: translateY(-2px); }
.founder-card .role {
  font-size: 10px; color: var(--red); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 6px;
  font-family: var(--font);
}
.founder-card .name {
  font-size: 18px; font-weight: 700; color: var(--grey);
  margin-bottom: 4px;
  font-family: var(--font);
}
.founder-card .desc {
  font-size: 12px; color: var(--grey-mid);
  font-family: var(--font);
}
.founder-card .arrow {
  position: absolute; right: 16px; bottom: 16px;
  color: var(--red-dim); font-size: 18px;
  transition: color 0.2s, right 0.15s;
}
.founder-card:hover .arrow { color: var(--red-hot); right: 12px; }

/* ══════════════════════════════════════════
   SKILL TAGS
══════════════════════════════════════════ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-item {
  font-size: 11px;
  color: var(--grey-mid);
  background: #1a1a1a;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.tag-item:hover { border-color: var(--red-dim); color: var(--grey); }
.tag-item.red {
  border-color: var(--red-dim);
  color: var(--red-hot);
  background: rgba(204,32,32,0.05);
}

/* ══════════════════════════════════════════
   CONTACT ROWS
══════════════════════════════════════════ */
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  color: var(--red); width: 80px; flex-shrink: 0;
  font-size: 11px; letter-spacing: 0.08em;
}
.contact-row a {
  color: var(--grey); text-decoration: none;
  transition: color 0.15s;
  word-break: break-all;
}
.contact-row a:hover { color: var(--red-hot); }

/* ══════════════════════════════════════════
   DISCORD BLOCK
══════════════════════════════════════════ */
.discord-block {
  background: rgba(88,101,242,0.06);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 3px;
  padding: 20px 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.discord-block .d-text { font-size: 13px; color: var(--grey-mid); }
.discord-block .d-text strong {
  color: var(--grey); display: block;
  font-size: 15px; margin-bottom: 4px;
}
.btn-discord {
  background: #5865F2;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   PROFILE HEADER
══════════════════════════════════════════ */
.profile-header {
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  color: var(--red-hot);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.profile-avatar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(204,32,32,0.12) 0%, transparent 60%);
}

.profile-info .handle {
  font-size: 26px; font-weight: 700; color: var(--grey);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 2px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  background: rgba(204,32,32,0.06);
  font-weight: 400;
}
.profile-info .meta {
  font-size: 12px; color: var(--grey-dim); margin-top: 4px;
}
.profile-info .access {
  font-size: 11px; color: var(--red); margin-top: 2px; letter-spacing: 0.06em;
}
/* Founder / Co-founder label */
.founder-label {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--grey-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.founder-label .fl-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--red);
}
.founder-label span { color: var(--red-hot); }

/* ══════════════════════════════════════════
   SKILL GROUPS
══════════════════════════════════════════ */
.skill-group { margin-bottom: 20px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group-label {
  font-size: 10px; color: var(--grey-dim);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════
   EDUCATION BLOCK
══════════════════════════════════════════ */
.edu-block {
  border-left: 2px solid var(--red-dim);
  padding-left: 16px;
  font-size: 12px; color: var(--grey-mid);
  margin-top: 8px;
}
.edu-block strong {
  color: var(--grey); display: block; margin-bottom: 2px;
}

/* ══════════════════════════════════════════
   ASCII ART HEADER
══════════════════════════════════════════ */
.ascii-art {
  font-size: 10px;
  line-height: 1.3;
  color: var(--red-dim);
  margin-bottom: 24px;
  white-space: pre;
  overflow-x: auto;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   GLITCH TEXT
══════════════════════════════════════════ */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  color: var(--grey);
}
.glitch::before {
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  transform: translate(-2px, 0);
  color: var(--red-hot);
  opacity: 0;
  animation: glitch-a 5s infinite 2s;
}
.glitch::after {
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
  transform: translate(2px, 0);
  color: #22aaff;
  opacity: 0;
  animation: glitch-b 5s infinite 2.1s;
}
@keyframes glitch-a {
  0%,94%,100% { opacity:0; transform:translate(0); }
  95% { opacity:1; transform:translate(-3px,1px); }
  96% { opacity:0; }
  97% { opacity:1; transform:translate(2px,-1px); }
  98% { opacity:0; }
}
@keyframes glitch-b {
  0%,94%,100% { opacity:0; transform:translate(0); }
  95% { opacity:1; transform:translate(3px,-1px); }
  96% { opacity:0; }
  97% { opacity:1; transform:translate(-2px,1px); }
  98% { opacity:0; }
}

/* ── Typing cursor ── */
.cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 28px 0; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 14px 32px;
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 11px; color: var(--grey-dim);
  flex-wrap: wrap; gap: 8px;
}
footer .fp { color: var(--red-dim); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  header { padding: 0 16px; }
  footer { padding: 12px 16px; }
  .ascii-art { font-size: 6px; }
  .founders { grid-template-columns: 1fr; }
  nav a { padding: 6px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

