*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --nav-bg: #000000;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --text-light: #ffffff;
  --text-dark: #111111;
  --muted-light: #888888;
  --muted-dark: #555555;
  --border: rgba(255, 255, 255, 0.1);
  
  /* Badges */
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --blue: #3b82f6;

  /* Home */
  --bg-deep: #000000;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.1);

  /* Pages */
  --bg-dark: #000000;
  --surface-dark: #0a0a0a;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* Backgrounds */
body.home {
  color: var(--text-light);
  background-color: #000000;
  background-image: none;
  position: relative;
}

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/img/io/io-chan.png") no-repeat right -10px bottom 0 / min(44vw, 700px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

body.home > * {
  position: relative;
  z-index: 1;
}

body.changelog {
  background: var(--bg-dark);
  color: var(--text-light);
}

body.docs {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
  border: 3px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Navigation */
nav {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9rem;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  color: #aaa; /* Default for both */
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-links a.active {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.15);
}

.nav-links .nav-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.nav-links .nav-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Footer */
footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-light);
}

.footer-design a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-design a:hover {
  color: var(--accent);
}

/* Utils */
.bg-a {
  background: transparent;
}
.bg-b {
  background-color: transparent;
  background-image: none;
}

/* Hero */
#hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 9rem;
  position: relative;
  /* Transparent to show body background */
  background-color: transparent;
  text-align: left;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#hero-images {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 24px;
  /* overflow: hidden; Removed to allow 3D edges if needed, but kept for border-radius masking usually. Let's keep overflow hidden but add transform */
  overflow: hidden; 
  border: 1px solid var(--border);
  box-shadow: 20px 30px 50px rgba(0,0,0,0.6);
  background: #000;
  /* 3D Perspective Effect */
  transform: perspective(1000px) rotateY(-12deg) rotateX(2deg) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.hero-reqs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted-light);
}

/* Hover */
#hero-images:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(0deg) scale(1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.req-text {
  cursor: default;
  transition: color 0.2s;
}

.req-text:hover {
  color: #fff;
}

.req-dot {
  color: rgba(255,255,255,0.2);
}

.req-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  margin: 0 0.5rem;
}

.req-java {
  color: #fca5a5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
  animation: hero-move 8s ease-out forwards;
}

@keyframes hero-move {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Indicators */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 2;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.15);
}

/* Shine */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn img {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-gh {
  background: #1f2937;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-gh:hover {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-gh:hover img {
  transform: rotate(15deg) scale(1.1);
}

.btn-dl {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
}

.btn-dl:hover {
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6);
}

.btn-dl:hover img {
  transform: translateY(3px) scale(1.1);
}

.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-meta strong { color: rgba(255,255,255,0.8); }

/* Sections */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--muted-light);
  font-size: 0.92rem;
  margin-bottom: 2.8rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Why IO */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  text-align: left;
  margin-top: 1.5rem;
}

/* If the card count is odd, center the final item */
.why-grid > .why-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.why-grid > .why-item:last-child:nth-child(odd) p {
  margin-left: auto;
  margin-right: auto;
}

.why-item {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.25);
}

.why-item h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.why-item p {
  color: var(--muted-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.about-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--muted-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* About */
.about-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2.8rem 3rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.09);
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-card p:last-of-type { margin-bottom: 1.8rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.badge-v  { background:#f3f0ff; color:#7c3aed; border-color:#ddd6fe; }
.badge-os { background:#f0fdf4; color:#15803d; border-color:#bbf7d0; }
.badge-an { background:#fff7ed; color:#c2410c; border-color:#fed7aa; }
.badge-fr { background:#fdf2f8; color:#9d174d; border-color:#fbcfe8; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
}

.step-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.step-body {
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.step-body a { color: var(--accent-hover); text-decoration: none; }
.step-body a:hover { text-decoration: underline; }

.code {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.cat-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-radius: 4px; /* Slightly rounded, mostly sharp */
}

/* Accent */
.cat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.cat-card:hover::after {
  transform: scaleX(1);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cat-icon {
  width: 48px; height: 48px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.cat-card:hover .cat-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
}

.cat-icon img {
  width: 24px; height: 24px;
  display: block;
  /* Icons are white by default in SVG file */
}

.cat-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cat-desc {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.5;
  min-height: 3em;
}

/* Accordion */
.cat-card {
  cursor: pointer;
}

.cat-chevron {
  position: absolute;
  top: 1.8rem;
  right: 1.5rem;
  color: var(--muted-light);
  transition: transform 0.3s ease, color 0.3s ease;
}

.cat-card:hover .cat-chevron {
  color: #fff;
}

.cat-card.active .cat-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.module-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  padding-top: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
}

.cat-card.active .module-list {
  max-height: 800px;
  opacity: 1;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.module-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: default;
}

.module-list li:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Gallery */
.gallery-section {
  margin-bottom: 4rem;
}

.gallery-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gallery-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(800px) rotateY(0deg);
}

/* Hover */
.gallery-img-wrapper:hover {
  transform: perspective(800px) rotateY(-3deg) scale(1.02);
  box-shadow: 15px 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.2);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alignment */
.gallery-item:first-child .gallery-img-wrapper img {
  object-position: top left;
}

.gallery-item-title {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.team-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  text-align: center;
  width: 240px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.2);
}

.mc-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mc-avatar::after {
  display: none;
}

.mc-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.team-name { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.team-role { font-size: 0.74rem; color: var(--muted-light); }

.team-social {
  margin-top: 0.8rem;
  display: inline-flex;
  color: var(--muted-light);
  transition: color .2s, transform .2s;
}

.team-social:hover {
  color: #fff;
  transform: translateY(-2px);
}

.team-social img {
  width: 20px;
  height: 20px;
}

/* Changelog */
.cl-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.cl-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cl-header p {
  color: var(--muted-light);
  font-size: 0.9rem;
}

.cl-header a {
  color: var(--accent);
  text-decoration: none;
}

.cl-header a:hover { text-decoration: underline; }

.cl-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.version-block {
  margin-bottom: 3rem;
}

.version-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.version-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', monospace;
}

.version-date {
  font-size: 0.78rem;
  color: var(--muted-light);
  font-family: 'JetBrains Mono', monospace;
}

.version-latest {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.change-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: #c4bedd;
  line-height: 1.55;
}

.change-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-family: 'JetBrains Mono', monospace;
}

.badge-add  { background: rgba(34,197,94,0.12);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.badge-fix  { background: rgba(239,68,68,0.12);  color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.badge-imp  { background: rgba(255, 255, 255, 0.1); color: #ffffff;    border: 1px solid rgba(255, 255, 255, 0.2); }
.badge-new  { background: rgba(220, 38, 38, 0.15); color: #fca5a5;     border: 1px solid rgba(220, 38, 38, 0.2); }

.subsection {
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  body.home::before {
    background-position: right -120px bottom -20px;
    background-size: min(70vw, 560px);
    opacity: 0.14;
  }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 2rem;
  }
  .hero-content { align-items: center; }
  .hero-buttons { justify-content: center; }
  .hero-specs { align-items: center; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(10px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.subsection-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subsection-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  
  /* Home */
  .hero-title { font-size: 3.2rem; }
  .about-card { padding: 1.8rem 1.5rem; }
  .team-card { width: 145px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  
  /* Changelog */
  .cl-header { padding: 2rem 1.2rem 1.5rem; }
  .cl-wrap { padding: 2rem 1.2rem 4rem; }
  
  footer { flex-direction: column; text-align: center; }
}

/* Guide */
.docs-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.docs-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.docs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.docs-header p {
  color: var(--muted-light);
  font-size: 0.9rem;
}

.docs-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.docs-block {
  margin-bottom: 3.5rem;
}

.docs-block h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* Installation */
.install-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.install-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.install-step:first-child { padding-top: 0; }
.install-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-dark);
  margin-bottom: 0;
  margin-top: 0.1rem;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.install-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.install-step p {
  color: var(--muted-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Troubleshooting */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trouble-card {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trouble-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.25);
}

.trouble-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.trouble-card p {
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.5;
}
