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

:root {
  --bg: #0c0d0f;
  --panel: #131518;
  --panel-2: #181b1f;
  --line: #2a2e34;
  --text: #f3f4f6;
  --muted: #9ba3ad;
  --orange: #ff7a1a;
  --orange-2: #ff9a4f;
  --green: #58d68d;
  --yellow: #f6c85f;
  --shadow: 0 20px 70px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 122, 26, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .018;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111;
  background: var(--orange);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(255, 122, 26, .18);
}

.brand-text {
  font-size: .92rem;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: .92rem;
}

.nav a {
  transition: color .18s ease;
}

.nav a:hover {
  color: var(--orange-2);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 70px;
  align-items: center;
  padding: 88px 0 94px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font: 600 .76rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .16em;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

h1 span {
  color: var(--orange);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--orange);
  color: #141414;
}

.button.primary:hover {
  background: var(--orange-2);
}

.button.ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.button.ghost:hover {
  border-color: #444b55;
  background: var(--panel-2);
}

.button.small {
  min-height: 40px;
  padding: 0 15px;
  font-size: .88rem;
}

.drawer-art {
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.cabinet {
  width: min(330px, 100%);
  padding: 20px;
  border: 1px solid #383d45;
  border-radius: 20px;
  background: linear-gradient(145deg, #1e2126, #111316);
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(2deg);
}

.drawer {
  position: relative;
  height: 104px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #333943;
  border-radius: 12px;
  background: linear-gradient(180deg, #20242a, #171a1e);
  color: #69717c;
  font: 600 .72rem "IBM Plex Mono", monospace;
  letter-spacing: .18em;
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.drawer:last-child {
  margin-bottom: 0;
}

.handle {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 78px;
  height: 10px;
  border-radius: 999px;
  background: #090a0b;
  transform: translateX(-50%);
  box-shadow: inset 0 1px #343941;
}

.drawer.open {
  transform: translateZ(50px) translateY(15px);
  border-color: rgba(255,122,26,.35);
  box-shadow: 0 22px 45px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.03);
}

.junk {
  position: absolute;
  border-radius: 5px;
  background: var(--orange);
}

.junk-a {
  width: 58px;
  height: 12px;
  left: 36px;
  bottom: 15px;
  transform: rotate(13deg);
}

.junk-b {
  width: 34px;
  height: 34px;
  right: 48px;
  bottom: 12px;
  border-radius: 50%;
  border: 7px solid #4f5863;
  background: transparent;
}

.junk-c {
  width: 10px;
  height: 52px;
  right: 103px;
  bottom: 5px;
  background: #69717c;
  transform: rotate(-28deg);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -.04em;
}

.project-count {
  color: var(--muted);
  font: 500 .74rem "IBM Plex Mono", monospace;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 350px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.025), transparent 45%), var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #3c424b;
}

.project-card.featured {
  border-color: rgba(255, 122, 26, .32);
}

.project-card.featured::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(255,122,26,.08);
  filter: blur(2px);
}

.card-top {
  margin-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.status,
.version,
.tags span {
  font: 500 .72rem "IBM Plex Mono", monospace;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
}

.status.live {
  color: var(--green);
}

.status.wip {
  color: var(--yellow);
}

.version {
  color: #6e7681;
}

.project-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #343a43;
  border-radius: 14px;
  background: #0e1012;
  color: var(--orange);
  font: 700 1.25rem "IBM Plex Mono", monospace;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.project-card > p {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--muted);
}

.tags {
  margin-bottom: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 5px 9px;
  border: 1px solid #30353c;
  border-radius: 7px;
  color: #9098a3;
  background: #101215;
}

.empty-card {
  min-height: 230px;
  grid-column: span 2;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
}

.empty-card h3 {
  margin-bottom: 4px;
  color: #777f89;
}

.empty-card p {
  margin-bottom: 0;
  color: #565d66;
}

.empty-plus {
  margin-bottom: 14px;
  color: #454b53;
  font-size: 2.2rem;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
}

.about-panel > p:last-child {
  max-width: 620px;
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.mini-terminal {
  overflow: hidden;
  border: 1px solid #333840;
  border-radius: 15px;
  background: #090a0b;
  box-shadow: var(--shadow);
  font-family: "IBM Plex Mono", monospace;
}

.terminal-bar {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #282c31;
  background: #15171a;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #454b53;
}

.terminal-bar span:first-child {
  background: #d65b55;
}

.terminal-bar span:nth-child(2) {
  background: #d4ab50;
}

.terminal-bar span:nth-child(3) {
  background: #56b16f;
}

.terminal-bar b {
  margin-left: 8px;
  color: #777f89;
  font-size: .72rem;
  font-weight: 500;
}

.terminal-body {
  min-height: 250px;
  padding: 28px;
  color: #7f8894;
  font-size: .83rem;
}

.terminal-body p {
  margin-bottom: 12px;
}

.terminal-body strong {
  color: #d8dce1;
  font-weight: 500;
}

.prompt {
  color: var(--orange);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  vertical-align: -2px;
  background: var(--orange);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #646b74;
  font: 500 .72rem "IBM Plex Mono", monospace;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  padding: 12px 16px;
  border: 1px solid rgba(255,122,26,.3);
  border-radius: 10px;
  background: #17191d;
  color: #e7e9ed;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  font-size: .86rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 72px 0;
  }

  .drawer-art {
    order: -1;
  }

  .cabinet {
    width: 280px;
  }

  .project-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .empty-card {
    grid-column: span 1;
  }

  .about {
    gap: 45px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand-text {
    display: none;
  }

  .nav {
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .project-card {
    padding: 22px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}


/* Project page */
.project-hero {
  min-height: 620px;
  padding: 88px 0 94px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font: 500 .8rem "IBM Plex Mono", monospace;
}

.back-link:hover {
  color: var(--orange);
}

.project-title-row {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.project-logo-large {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid #343a43;
  border-radius: 20px;
  background: #0e1012;
  color: var(--orange);
  font: 700 2rem "IBM Plex Mono", monospace;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.project-page-title {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .95;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-pill {
  padding: 4px 8px;
  border: 1px solid #30353c;
  border-radius: 7px;
  color: #9098a3;
  background: #101215;
  font: 500 .7rem "IBM Plex Mono", monospace;
}

.project-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-window {
  overflow: hidden;
  border: 1px solid #333840;
  border-radius: 18px;
  background: #0a0b0d;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.showcase-bar {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #282c31;
  background: #15171a;
}

.showcase-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #454b53;
}

.showcase-bar span:first-child { background: #d65b55; }
.showcase-bar span:nth-child(2) { background: #d4ab50; }
.showcase-bar span:nth-child(3) { background: #56b16f; }

.showcase-bar b {
  margin-left: 8px;
  color: #777f89;
  font: 500 .72rem "IBM Plex Mono", monospace;
}

.showcase-body {
  padding: 34px;
}

.showcase-label {
  color: #69717c;
  font: 500 .72rem "IBM Plex Mono", monospace;
  letter-spacing: .15em;
}

.showcase-status {
  margin: 8px 0 28px;
  color: var(--orange);
  font: 700 2.7rem "IBM Plex Mono", monospace;
}

.showcase-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #202328;
  color: #818995;
  font: 500 .78rem "IBM Plex Mono", monospace;
}

.showcase-row strong {
  color: #d9dde2;
  font-weight: 500;
}

.showcase-note,
.download-note {
  margin: 0;
  color: #666e78;
  font: 500 .72rem "IBM Plex Mono", monospace;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: start;
}

.project-main h2,
.split-section h2 {
  margin-bottom: 34px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.feature-index {
  color: var(--orange);
  font: 600 .76rem "IBM Plex Mono", monospace;
}

.feature-item h3,
.install-steps h3,
.change-entry h3,
.download-card h3 {
  margin-bottom: 6px;
}

.feature-item p,
.install-steps p,
.change-entry p,
.download-card p,
.story-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-card,
.story-card,
.download-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #24282e;
  color: var(--muted);
  font-size: .88rem;
}

.info-row:first-of-type {
  margin-top: 8px;
}

.info-row strong {
  color: #dfe2e6;
  font-weight: 600;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.install-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.install-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.install-steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,122,26,.1);
  color: var(--orange);
  font: 600 .76rem "IBM Plex Mono", monospace;
}

.story-card p + p {
  margin-top: 16px;
}

.changelog {
  display: grid;
  gap: 16px;
}

.change-entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.change-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.change-version {
  color: var(--orange);
  font: 600 .74rem "IBM Plex Mono", monospace;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.download-card h3 {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .project-hero,
  .project-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .project-hero {
    gap: 48px;
  }

  .project-layout,
  .split-section {
    gap: 42px;
  }

  .project-sidebar {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .project-title-row {
    align-items: flex-start;
  }

  .project-logo-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .change-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* Eldara v0.2 real assets */
.image-icon {
  overflow: hidden;
  padding: 0;
}
.image-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-logo-image {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #4b4030;
  box-shadow: 0 18px 45px rgba(0,0,0,.34);
}
.hero-trainer-shot {
  position: relative;
  max-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 72, .26);
  border-radius: 18px;
  background: #08090d;
  box-shadow: var(--shadow);
}
.hero-trainer-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-trainer-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}
.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, .38);
}
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #08090d;
}
.screenshot-card figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 .72rem "IBM Plex Mono", monospace;
}
.checksum-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0d10;
}
.checksum-card > div {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7c8490;
  font: 600 .7rem "IBM Plex Mono", monospace;
}
.checksum-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #c6ccd3;
  font: 500 .68rem/1.7 "IBM Plex Mono", monospace;
}
.copy-hash {
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
}
@media (max-width: 850px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-card {
    max-width: 520px;
  }
}
@media (max-width: 560px) {
  .project-logo-image {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }
}
