/* ============================================
   KernelPanicAttack — clean recreation
   ============================================ */

:root {
  --bg:        #0d0d0f;
  --ink:       #f4f4f5;
  --ink-dim:   #a1a1aa;
  --rule:      rgba(255, 255, 255, 0.10);
  --hover:     #ffffff;
  --max-width: 1200px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { opacity: 0.7; }

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

/* ============================================
   Top nav
   ============================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-right { justify-content: flex-end; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.nav-link:hover,
.nav-link.active { color: var(--ink); opacity: 1; }

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--ink);
  border-radius: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 1; background: var(--ink-dim); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
}

/* ============================================
   Hero — full-bleed banner with logo overlay
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(70%, 900px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}

/* ============================================
   Social links — big text headings
   ============================================ */

.socials {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 24px;
  text-align: center;
}

.social-link {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  display: inline-block;
  position: relative;
  padding: 8px 0;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.3s ease, left 0.3s ease;
}

.social-link:hover {
  opacity: 1;
}

.social-link:hover::after {
  width: 100%;
  left: 0;
}

/* ============================================
   Commands page
   ============================================ */

.page {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.page h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  margin-top: 56px;
}

.page h1:first-child { margin-top: 0; }

.page h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--ink-dim);
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.cmd:last-child { border-bottom: none; }

.cmd .name {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  font-size: 14px;
  margin-right: 8px;
}

/* ============================================
   404 page
   ============================================ */

.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 24px;
}

.notfound-art {
  width: 200px;
  height: 200px;
}

.notfound h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.notfound p {
  color: var(--ink-dim);
  max-width: 50ch;
  margin: 0;
}

.notfound .btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notfound .btn:hover { opacity: 1; background: var(--ink-dim); }

/* ============================================
   Footer
   ============================================ */

.foot {
  border-top: 1px solid var(--rule);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-dim);
}

.foot h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.foot a { color: var(--ink-dim); }
.foot a:hover { color: var(--ink); opacity: 1; }

.foot-socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 760px) {
  .nav {
    padding: 16px 20px;
    gap: 16px;
    position: relative;
  }
  .nav-left { display: none; flex-direction: column; gap: 16px; align-items: flex-start; flex: 0; }
  .nav-left.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--rule);
    z-index: 50;
  }
  .nav-toggle { display: inline-flex; }
  .nav-brand { order: -1; flex: 1; }
  .nav-brand img { height: 24px; }
  .nav-right { flex: 0; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  .hero {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .hero-logo { width: 86%; }

  .socials { padding: 56px 20px; gap: 16px; }

  .page { padding: 40px 20px 80px; }
  .page h1 { margin-top: 40px; }

  .foot {
    grid-template-columns: 1fr;
    padding: 36px 20px;
    gap: 24px;
  }
}
