:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c22;
  --text: #f4f7fb;
  --muted: #9aa6b2;
  --line: #27303a;
  --accent: #7ee787;
  --accent-2: #58a6ff;
  --warning: #f2cc60;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { 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 15% -5%, rgba(88,166,255,.13), transparent 30rem),
    radial-gradient(circle at 85% 5%, rgba(126,231,135,.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11,13,16,.78);
  border-bottom: 1px solid rgba(39,48,58,.7);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07110a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(88,166,255,.13);
}

.nav-links { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }

.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: rgba(18,22,27,.7); font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(126,231,135,.75); }

h1 { font-size: clamp(48px, 8vw, 92px); line-height: .98; letter-spacing: -.055em; margin: 24px 0 22px; max-width: 900px; }
.hero p { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2.3vw, 22px); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-weight: 700; font-size: 14px;
}
.button.primary { background: var(--text); color: #0b0d10; border-color: var(--text); }
.button.primary:hover { color: #0b0d10; transform: translateY(-1px); }
.button:hover { border-color: #465363; }

.section { padding: 72px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--muted); max-width: 520px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 6;
  min-height: 260px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,28,34,.86), rgba(18,22,27,.86));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -110px; top: -110px; background: rgba(126,231,135,.06);
}
.card h3 { font-size: 28px; margin: 12px 0 8px; letter-spacing: -.03em; }
.card p { color: var(--muted); margin: 0; max-width: 540px; }
.card-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 34px; color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: rgba(126,231,135,.08); color: var(--accent); border: 1px solid rgba(126,231,135,.18); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge.dev { color: var(--warning); background: rgba(242,204,96,.08); border-color: rgba(242,204,96,.18); }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  border: 1px solid var(--line); border-radius: 16px; background: rgba(18,22,27,.7); padding: 20px;
}
.feature strong { display: block; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 14px; }

.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.release { position: relative; padding: 0 0 28px 28px; }
.release::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px var(--bg); }
.release h3 { margin: 0 0 4px; font-size: 18px; }
.release .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.release p { margin: 0; color: var(--muted); }

.plugin-hero { padding: 78px 0 52px; }
.plugin-hero h1 { font-size: clamp(46px, 7vw, 78px); margin-bottom: 16px; }
.plugin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 20px; }
.sidebar dl { margin: 0; display: grid; gap: 14px; }
.sidebar dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sidebar dd { margin: 2px 0 0; font-weight: 700; }
.content-panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(18,22,27,.72); padding: 28px; }
.content-panel h2 { margin-top: 0; font-size: 30px; letter-spacing: -.03em; }
.content-panel h3 { margin-top: 30px; }
.content-panel p, .content-panel li { color: var(--muted); }
.code {
  padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #090b0e; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #d7e0ea;
}

footer { padding: 44px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero { padding-top: 72px; }
  .card { grid-column: span 12; }
  .feature-list { grid-template-columns: 1fr; }
  .section-title { align-items: start; flex-direction: column; }
  .plugin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding: 58px 0 48px; }
  .section { padding: 52px 0; }
  .card, .content-panel { padding: 20px; border-radius: 16px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

/* Static one-page additions */
.projects-grid { align-items: stretch; }
.project-card { grid-column: span 7; }
.quiet-card { grid-column: span 5; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge.neutral {
  color: var(--muted);
  background: rgba(154,166,178,.07);
  border-color: rgba(154,166,178,.16);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.project-meta strong {
  color: var(--text);
  font-weight: 700;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.downloadButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(126,231,135,.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(126,231,135,.14), rgba(88,166,255,.08)),
    var(--panel);
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.downloadButton:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(126,231,135,.5);
  background:
    linear-gradient(135deg, rgba(126,231,135,.20), rgba(88,166,255,.12)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(0,0,0,.26), 0 0 24px rgba(126,231,135,.07);
}

.downloadButton.secondary {
  border-color: rgba(88,166,255,.25);
  background:
    linear-gradient(135deg, rgba(88,166,255,.12), rgba(126,231,135,.05)),
    var(--panel);
}

.downloadButton.secondary:hover {
  border-color: rgba(88,166,255,.5);
  background:
    linear-gradient(135deg, rgba(88,166,255,.18), rgba(126,231,135,.08)),
    var(--panel);
}

.compact-section { padding-top: 18px; }

.support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(126,231,135,.08), transparent 20rem),
    rgba(18,22,27,.78);
  box-shadow: var(--shadow);
}

.support-cta h2 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.035em;
}

.support-cta p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
  margin: 0;
}

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

.check-list { padding-left: 20px; }
.check-list li + li { margin-top: 7px; }
.support-actions { margin-top: 24px; }
.sidebar-button { width: 100%; margin-top: 20px; }

@media (max-width: 820px) {
  .project-card,
  .quiet-card { grid-column: span 12; }
  .support-cta { align-items: flex-start; flex-direction: column; }
  .support-layout { grid-template-columns: 1fr; }
}
