/* 1. Reset & Core Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #141414;
  --ink-muted: #595959;
  --border: #dcdcd8;
  --accent: #141414;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --nav-height: 60px;
  --max-width: 1080px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg: #121212;
  --surface: #1a1a1a;
  --ink: #ededed;
  --ink-muted: #888888;
  --border: #2a2a2a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2. Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg);
  opacity: 0.95;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-list a:hover {
  color: var(--ink);
}

/* Theme Toggle Button */
.theme-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--ink);
}

/* 3. Hero Section */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 60ch;
  margin-bottom: 2.25rem;
}

/* 4. Plugin Sections */
.plugin-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.plugin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .plugin-grid {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.index-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.plugin-meta h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.specs-list {
  list-style: none;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.specs-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}

.specs-list strong {
  color: var(--ink);
  font-weight: 600;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.plugin-details p {
  margin-bottom: 1.75rem;
  max-width: 65ch;
}

/* 5. Buttons */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* 6. Footer */
.site-footer {
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.plugin-visual {
  width: 100%;
  aspect-ratio: 2.75 / 1;
  background-color: #1a1d23; /* A rich, dark slate that matches your plugin frame */
  border-top: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.plugin-visual img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}