:root {
  color-scheme: dark;
  --bg: #0f1512;
  --bg-2: #131b17;
  --surface: #182420;
  --surface-2: #1f2e28;
  --border: #2a3d34;
  --text: #e8f0eb;
  --muted: #93a89c;
  --accent: #3ecf8e;
  --accent-2: #2fb87a;
  --accent-soft: rgba(62, 207, 142, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(62, 207, 142, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(47, 184, 122, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-2);
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(15, 21, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110b;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(62, 207, 142, 0.35);
}

.brand-mark-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid var(--border);
}

.nav-cta:hover {
  background: var(--accent);
  color: #06110b !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110b;
  box-shadow: 0 10px 24px rgba(62, 207, 142, 0.3);
}

.btn-primary:hover {
  color: #06110b;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 1rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* Plugin groups */
.plugin-group {
  margin-bottom: 3rem;
}

.plugin-group:last-child {
  margin-bottom: 0;
}

.plugin-group-title {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.plugin-group-lede {
  margin: 0 0 1.25rem;
}

/* Plugin grid */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.plugin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plugin-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plugin-card.is-featured {
  border-color: rgba(62, 207, 142, 0.5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.badge-featured {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06110b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plugin-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  overflow: hidden;
}

.plugin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugin-card h3 {
  font-size: 1.25rem;
}

.plugin-tagline {
  color: var(--muted);
  margin: 0 0 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.plugin-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 0.5rem;
}

.empty {
  padding: 3rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-grid h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.about-grid p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-list strong {
  color: var(--text);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Error page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: 2rem;
}

.error-page .btn {
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 720px) {
  .nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero {
    padding: 3.5rem 0 3rem;
  }
}
