:root {
  --bg: #101410;
  --bg-soft: #161c16;
  --panel: #1c241c;
  --panel-2: #232d23;
  --text: #eef6ee;
  --muted: #aebaae;
  --line: #314031;
  --accent: #72d572;
  --accent-strong: #91ea91;
  --shadow: 0 18px 50px rgba(0,0,0,.24);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(114,213,114,.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16,20,16,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #102010; border-radius: 10px;
  font-weight: 900;
}
.primary-nav { display: flex; gap: 8px; align-items: center; }
.primary-nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); background: var(--panel); }
.nav-toggle { display: none; }

.hero { padding: 92px 0 72px; border-bottom: 1px solid rgba(255,255,255,.05); }
.hero-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .79rem; font-weight: 900; }
h1,h2,h3 { line-height: 1.1; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
.hero-copy, .lead { color: var(--muted); font-size: 1.15rem; max-width: 720px; }
.hero-actions, .project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 800;
}
.button:hover { transform: translateY(-1px); border-color: #4b624b; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #102010; }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: transparent; }
.button.small { min-height: 40px; font-size: .93rem; }

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow);
}
.stat { padding: 20px; border-radius: 13px; }
.stat + .stat { border-top: 1px solid var(--line); }
.stat strong { display: block; margin-bottom: 5px; }
.stat span { color: var(--muted); }

.section { padding: 72px 0; }
.section.alt { background: rgba(255,255,255,.018); border-top: 1px solid rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.045); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { color: var(--accent); font-weight: 800; white-space: nowrap; }

.card-grid { display: grid; gap: 18px; }
.two-by-two { grid-template-columns: repeat(2, 1fr); }
.project-card {
  min-height: 190px; display: grid; grid-template-columns: 72px 1fr; gap: 18px;
  padding: 24px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); transition: .18s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: #4d664d; box-shadow: var(--shadow); }
.project-card p { color: var(--muted); margin: 0; }
.project-icon, .project-art {
  width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 16px; background: #263426; color: var(--accent); border: 1px solid #3a4e3a;
  font-weight: 900; font-size: 1.2rem;
}
.project-type { display: inline-block; color: var(--accent); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.muted-card { opacity: .68; }

.datapack-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:stretch; }
.mini-card {
  min-height: 120px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line);
}
.mini-card:hover { border-color: #4d664d; transform: translateY(-2px); }
.mini-card span { color: var(--muted); font-size: .86rem; }

.narrow-top { padding-top: 24px; }
.project-list-section { margin-top: 52px; }
.list-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.list-card p { margin: 0; color: var(--muted); }
.simple-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.simple-list article { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.simple-list p { margin: 0; color: var(--muted); }

.project-detail { max-width: 900px; }
.project-hero { display: flex; align-items: center; gap: 24px; }
.project-art { width: 104px; height: 104px; font-size: 1.5rem; }
.project-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: 10px; }
.content-panel {
  margin-top: 38px; padding: 28px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.content-panel p { color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 6px; }
.docs-nav strong { margin-bottom: 10px; }
.docs-nav a { color: var(--muted); padding: 8px 10px; border-radius: 9px; }
.docs-nav a:hover { background: var(--panel); color: var(--text); }
.docs-content section { padding: 28px 0; border-top: 1px solid var(--line); }
.docs-content p { color: var(--muted); }

.site-footer { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 860px) {
  .hero-grid, .docs-layout { grid-template-columns: 1fr; }
  .datapack-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 64px; }
  .two-by-two, .datapack-grid, .simple-list { grid-template-columns: 1fr; }
  .section-heading, .list-card, .footer-wrap { align-items: flex-start; flex-direction: column; }
  .project-card { grid-template-columns: 56px 1fr; }
  .project-icon { width: 56px; height: 56px; }
  .nav-toggle {
    display: inline-flex; border: 1px solid var(--line); background: var(--panel); color: var(--text);
    border-radius: 10px; padding: 9px 12px; font-weight: 800;
  }
  .primary-nav {
    position: absolute; left: 14px; right: 14px; top: 72px;
    display: none; flex-direction: column; align-items: stretch;
    background: #111711; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .project-hero { align-items: flex-start; }
}


/* Datapack release content */
.project-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin: 10px 0 18px; }
.status-badge, .meta-chip { display:inline-flex; align-items:center; min-height:28px; padding:4px 10px; border-radius:999px; font-size:.76rem; font-weight:900; letter-spacing:.02em; }
.status-badge.dev { color:#ffd98a; background:rgba(231,166,47,.12); border:1px solid rgba(231,166,47,.35); }
.meta-chip { color:var(--muted); background:var(--panel); border:1px solid var(--line); }
.section-heading.compact { align-items:flex-start; margin-bottom:18px; }
.section-note { margin:7px 0 0; color:var(--muted); }
.datapack-card { min-width:0; min-height:150px; padding:0; display:grid; grid-template-columns:150px minmax(0,1fr); overflow:hidden; }
.datapack-card img { width:150px; height:150px; object-fit:cover; border-right:1px solid var(--line); }
.datapack-card-copy { min-width:0; padding:18px; display:flex; flex-direction:column; justify-content:center; }
.datapack-card-copy h3 { margin:2px 0 4px; }
.datapack-card-copy p { color:var(--muted); margin:8px 0 0; font-size:.92rem; line-height:1.4; }
.datapack-list { display:grid; gap:12px; }
.datapack-list-card { display:grid; grid-template-columns:110px 1fr auto; align-items:center; gap:20px; padding:14px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); transition:.18s ease; }
.datapack-list-card:hover { transform:translateY(-2px); border-color:#4d664d; box-shadow:var(--shadow); }
.datapack-list-card img { width:110px; height:110px; object-fit:cover; border-radius:13px; }
.datapack-list-copy h3 { margin-bottom:6px; }
.datapack-list-copy p { color:var(--muted); margin:0 0 10px; max-width:720px; }
.open-arrow { color:var(--accent); font-size:1.6rem; padding:0 12px; }
.datapack-detail { max-width:980px; }
.datapack-project-hero { display:grid; grid-template-columns:minmax(280px, 420px) 1fr; align-items:center; gap:34px; }
.project-banner { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow); }
.project-title-block h1 { font-size:clamp(2.5rem,6vw,4.6rem); margin-bottom:10px; }
.quick-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.quick-info { padding:18px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.quick-info span { display:block; color:var(--muted); font-size:.82rem; margin-bottom:4px; }
.release-page { max-width:900px; }
.release-card { margin-top:32px; padding:28px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); }
.release-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.release-card h2 { margin:12px 0 0; }
.release-card p { color:var(--muted); }
.release-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.development-note { margin-top:16px; padding:18px 20px; border:1px solid rgba(231,166,47,.28); background:rgba(231,166,47,.07); border-radius:14px; }
.development-note p { margin:5px 0 0; color:var(--muted); }
.docs-content code { background:var(--panel-2); border:1px solid var(--line); border-radius:6px; padding:2px 6px; color:var(--accent-strong); }
.docs-content li { color:var(--muted); margin:8px 0; }

@media (max-width: 980px) {
  .datapack-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .datapack-project-hero { grid-template-columns:1fr; }
  .project-banner { max-width:620px; }
}
@media (max-width: 700px) {
  .datapack-grid { grid-template-columns:1fr; }
  .datapack-card { grid-template-columns:110px minmax(0,1fr); min-height:110px; }
  .datapack-card img { width:110px; height:110px; }
  .datapack-card-copy { padding:14px; }
  .datapack-card-copy p { font-size:.86rem; }
  .datapack-list-card { grid-template-columns:82px 1fr; }
  .datapack-list-card img { width:82px; height:82px; }
  .open-arrow { display:none; }
  .quick-info-grid { grid-template-columns:1fr; }
  .release-card-top { flex-direction:column; }
}
@media (max-width: 480px) {
  .datapack-grid { grid-template-columns:1fr; }
}

/* Plugin release content */
.plugin-card { min-height:150px; padding:0; grid-template-columns:150px minmax(0,1fr); overflow:hidden; }
.plugin-card-image { width:150px; height:150px; object-fit:cover; border-right:1px solid var(--line); }
.plugin-card-copy { min-width:0; padding:18px; display:flex; flex-direction:column; justify-content:center; }
.plugin-card-copy h3 { margin:2px 0 4px; }
.plugin-card-copy p { margin-top:8px; }
.status-inline { display:block; margin:0; color:#ffd98a; font-size:.76rem; font-weight:800; line-height:1.2; }
@media (max-width:700px) { .plugin-card { grid-template-columns:110px minmax(0,1fr); min-height:110px; } .plugin-card-image { width:110px; height:110px; } }
