:root {
  --bg: #0b0d10;
  --bg-soft: #11151b;
  --card: #141a21;
  --line: #222a33;
  --text: #eef1f5;
  --muted: #a4afbd;
  --accent: #8eea6c;
  --accent-2: #2ad1c9;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 2px 6px;
  opacity: 0.15;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.subhead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #07100a;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(142, 234, 108, 0.25);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(142, 234, 108, 0.35);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card {
  background: linear-gradient(150deg, rgba(20, 26, 33, 0.92), rgba(12, 16, 22, 0.9));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-list {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.grid {
  margin-bottom: 100px;
}

.section-title {
  max-width: 560px;
  margin-bottom: 32px;
}

.section-title h2,
.split h2,
.cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.section-title p,
.split p,
.cta p {
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 150px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 100px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}

.step span {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--accent-2);
}

.cta {
  background: linear-gradient(160deg, rgba(20, 30, 28, 0.9), rgba(18, 22, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
}

.cta-actions {
  display: grid;
  gap: 10px;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

body.loaded .hero-copy,
body.loaded .hero-card,
body.loaded .grid,
body.loaded .split,
body.loaded .cta {
  animation: rise 0.8s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

body.loaded .hero-card {
  animation-delay: 0.1s;
}

body.loaded .grid {
  animation-delay: 0.2s;
}

body.loaded .split {
  animation-delay: 0.3s;
}

body.loaded .cta {
  animation-delay: 0.4s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Plugin page styles */
.plugin-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plugin-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  border-color: var(--accent);
}

.plugin-icon {
  color: var(--accent);
  margin-bottom: 4px;
}

.plugin-tagline {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.plugin-format {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.logo {
  text-decoration: none;
  color: inherit;
}

/* Plugin detail page */
.plugin-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.plugin-screenshot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.plugin-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.plugin-screenshot-placeholder {
  width: 100%;
  aspect-ratio: 620 / 480;
  background: linear-gradient(135deg, var(--bg-soft), var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.plugin-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.plugin-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plugin-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.plugin-meta-value {
  font-size: 14px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.feature-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .plugin-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}
