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

/* ── DESIGN TOKENS ── */
:root {
  --bg: #0d0d14;
  --bg2: #13131f;
  --card: #181828;
  --border: #5a2fd6;
  --accent: #7b3ff5;
  --orange1: #e07b00;
  --orange2: #f5a623;
  --text: #ffffff;
  --muted: #9090b0;
}

/* ── BASE ── */
html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  height: 100dvh;
  overflow: hidden;
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 40px 56px 48px;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-shrink: 0;
  animation: fadeDown 0.6s ease both;
}

.wordmark {
  font-weight: 800;
  font-size: clamp(64px, 10vw, 150px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}

/* ── LOGO ── */
.logo-svg {
  width: clamp(88px, 12vw, 180px);
  height: auto;
  flex-shrink: 0;
}

/* ── MAIN GRID ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

/* ── SECTION LABELS ── */
.section-label {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.6s ease both;
  flex-shrink: 0;
}

/* ── PANEL ── */
.panel {
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  background: rgba(20, 20, 36, 0.6);
  backdrop-filter: blur(4px);
  flex: 1;
  min-height: 0;
}

/* ── INDEX COL (right sidebar) ── */
.index-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: fadeUp 0.6s 0.2s ease both;
}

.index-panel {
  padding: 28px 32px 32px;
}

.index-panel nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-panel nav a {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
  display: block;
}

.index-panel nav a:hover {
  color: var(--accent);
  padding-left: 10px;
  border-bottom-color: rgba(123, 63, 245, 0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  html,
  body {
    height: auto;
    overflow: auto;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }

  .page {
    height: auto;
    padding: 0 0 60px;
  }

  .main-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .index-col { order: -1; }

  header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
    gap: 0;
    padding-top: 28px;
  }

  .index-col .section-label { display: none; }

  .logo-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 70vw;
    object-fit: contain;
    object-position: center;
    order: -1;
    align-self: center;
    margin-bottom: 16px;
  }

  .wordmark {
    font-size: clamp(36px, 12vw, 100px);
    padding: 0 24px;
    text-align: center;
  }

  .index-panel nav {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }

  .index-panel nav a {
    font-size: clamp(20px, 6vw, 40px);
    border-bottom: 1px solid transparent;
  }

  .index-panel nav a:hover {
    padding-left: 0;
    transform: translateY(-3px);
  }
}
