:root {
  --bg: #050806;
  --surface: rgba(10, 18, 12, 0.9);
  --surface-soft: rgba(21, 33, 24, 0.84);
  --border: rgba(145, 198, 118, 0.22);
  --text: #f3f7ef;
  --muted: #b8c5b4;
  --accent: #8cff3f;
  --accent-strong: #e8ffd5;
  --accent-warm: #86e26e;
  --metal-light: #9da891;
  --metal-mid: #54614d;
  --metal-dark: #1b241d;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(140, 255, 63, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(86, 146, 70, 0.14), transparent 28%),
    linear-gradient(180deg, #0a110b 0%, #040704 100%);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.page-glow-one {
  top: -8rem;
  left: -5rem;
  background: rgba(140, 255, 63, 0.16);
}

.page-glow-two {
  right: -8rem;
  bottom: -10rem;
  background: rgba(73, 160, 64, 0.18);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem 1.25rem 1.4rem;
  gap: 0.7rem;
}

.topbar,
.tab-panels,
.bottom-nav {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.identity-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid rgba(157, 168, 145, 0.8);
  object-fit: cover;
  box-shadow:
    0 0 0 6px rgba(27, 36, 29, 0.9),
    0 0 0 8px rgba(157, 168, 145, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  max-width: 12ch;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--accent-strong);
}

.subtitle,
.hero-text,
.hero-note,
.panel-copy p,
.compact-list,
.publication-list,
.stack-item p {
  color: var(--muted);
}

.subtitle {
  margin: 0;
  font-size: 0.95rem;
}

.top-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
}

.top-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.tab-panels {
  position: relative;
  min-height: 0;
}

.tab-panel {
  display: none;
  height: 100%;
  min-height: calc(100vh - 11.2rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(140, 255, 63, 0.05), rgba(140, 255, 63, 0.01)),
    linear-gradient(145deg, rgba(22, 30, 23, 0.96), rgba(8, 14, 9, 0.98)),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.tab-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(140, 255, 63, 0.1), transparent 22%),
    radial-gradient(circle at center, rgba(140, 255, 63, 0.2), transparent 38%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.42), transparent 54%);
  opacity: 0.75;
  pointer-events: none;
}

.tab-panel::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(157, 168, 145, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(20, 28, 21, 0.8),
    0 0 0 1px rgba(6, 10, 7, 0.6);
  pointer-events: none;
}

.tab-panel.is-active .panel-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(158, 255, 91, 0.28) 0%, rgba(126, 235, 56, 0.26) 18%, rgba(40, 73, 27, 0.12) 42%, transparent 63%),
    radial-gradient(circle at center, rgba(9, 17, 10, 0) 57%, rgba(157, 168, 145, 0.34) 58%, rgba(157, 168, 145, 0.38) 63%, rgba(35, 44, 36, 0.9) 65%, rgba(18, 24, 19, 0.96) 72%, transparent 73%);
  filter: drop-shadow(0 0 20px rgba(133, 255, 62, 0.12));
  opacity: 0.92;
  pointer-events: none;
}

.tab-panel.is-active .panel-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34vw, 330px);
  height: min(52vw, 500px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(190, 255, 143, 0.55) 0%, rgba(134, 255, 58, 0.72) 22%, rgba(82, 191, 29, 0.82) 42%, rgba(36, 84, 18, 0.92) 75%, rgba(18, 40, 12, 0.98) 100%);
  clip-path: polygon(24% 0%, 76% 0%, 60% 30%, 56% 44%, 68% 50%, 56% 56%, 60% 70%, 76% 100%, 24% 100%, 40% 70%, 44% 56%, 32% 50%, 44% 44%, 40% 30%);
  box-shadow:
    0 0 28px rgba(140, 255, 63, 0.24),
    inset 0 0 30px rgba(255, 255, 255, 0.14);
  opacity: 0.3;
  pointer-events: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-grid {
  height: 100%;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  position: relative;
  z-index: 1;
}

.panel-grid-home {
  align-items: center;
}

.panel-copy {
  max-width: 760px;
}

.panel-copy-wide {
  max-width: 920px;
}

.panel-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-text {
  max-width: 56ch;
  font-size: 0.94rem;
}

.hero-note {
  max-width: 42ch;
  margin-top: 0.8rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(140, 255, 63, 0.35);
  font-size: 0.9rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.button-primary {
  background: linear-gradient(180deg, #d6ffae 0%, #9dff55 52%, #67c521 100%);
  color: #0b1408;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-secondary {
  background: linear-gradient(180deg, rgba(74, 84, 73, 0.4), rgba(23, 31, 24, 0.62));
  border-color: rgba(157, 168, 145, 0.18);
  color: var(--text);
}

.info-card,
.stack-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(157, 168, 145, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(157, 168, 145, 0.06), rgba(157, 168, 145, 0.01)),
    linear-gradient(145deg, rgba(31, 40, 32, 0.92), rgba(16, 22, 17, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.compact-list,
.publication-list {
  margin: 0;
  padding-left: 1.2rem;
}

.compact-list li,
.publication-list li {
  margin-bottom: 0.55rem;
}

.publication-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 600;
}

.publication-list span {
  color: var(--muted);
}

.stack-list {
  display: grid;
  gap: 0.7rem;
}

.stack-item p {
  margin: 0;
}

.bottom-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  padding: 0.65rem 0 0;
  scrollbar-width: none;
  position: sticky;
  bottom: 0.35rem;
  z-index: 5;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  border: 1px solid rgba(157, 168, 145, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 54, 42, 0.92), rgba(14, 20, 15, 0.92));
  backdrop-filter: blur(14px);
  color: var(--muted);
  padding: 0.58rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-tab.is-active {
  background: linear-gradient(180deg, #d6ffae 0%, #9dff55 52%, #67c521 100%);
  color: #0b1408;
  border-color: transparent;
}

@media (max-height: 820px) {
  .identity-avatar {
    width: 4rem;
    height: 4rem;
  }

  .top-links a,
  .subtitle,
  .hero-text,
  .hero-note,
  .panel-copy p,
  .compact-list,
  .publication-list,
  .stack-item p {
    font-size: 0.88rem;
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    padding-inline: 1rem;
  }

  .topbar {
    flex-direction: column;
  }

  .tab-panel {
    min-height: auto;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .tab-panel.is-active .panel-grid::before {
    width: min(82vw, 480px);
  }

  .tab-panel.is-active .panel-grid::after {
    width: min(44vw, 250px);
    height: min(70vw, 380px);
  }

  .bottom-nav {
    position: static;
    padding-top: 0.35rem;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1rem 0.75rem 0.75rem;
  }

  .identity {
    align-items: flex-start;
  }

  .identity-avatar {
    width: 3.9rem;
    height: 3.9rem;
  }

  .tab-panel {
    padding: 1.2rem;
    border-radius: 20px;
  }

  h2 {
    max-width: none;
  }
}
