*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --surface:  #111;
  --border:   rgba(255,255,255,0.07);
  --text:     #e8e8e8;
  --muted:    #555;
  --muted2:   #888;
  --green:    #3ddc84;
  --green-dim: rgba(61,220,132,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'Geist Mono', monospace; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.logo-dot { color: var(--green); }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: color 0.15s;
  font-family: 'Geist Mono', monospace;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.82rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--text); }

/* ── HERO ────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted2);
  font-family: 'Geist Mono', monospace;
  margin-bottom: 28px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.accent { color: var(--green); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted2);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions { display: flex; align-items: center; gap: 20px; }

.btn-solid {
  display: inline-block;
  padding: 9px 20px;
  background: var(--green);
  color: #050505;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.btn-solid:hover { opacity: 0.85; }

.btn-link {
  font-size: 0.875rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-link:hover { color: var(--text); }

/* Decorative grid */
.hero-grid-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, black 20%, transparent 70%);
}
.glow {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61,220,132,0.06) 0%, transparent 65%);
  border-radius: 50%;
}

/* ── PLUGINS ─────────────────────────── */
.plugins { padding: 80px 0 100px; }

.section-label {
  margin-bottom: 32px;
}
.section-label .mono {
  font-size: 0.78rem;
  color: var(--muted);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.plugin-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Zdjęcie */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-family: 'Geist Mono', monospace;
  color: #e8e8e8;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 9px;
  border-radius: 5px;
  text-transform: lowercase;
}

/* Body */
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px 8px;
  gap: 4px;
  flex: 1;
}
.plugin-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.card-price {
  font-size: 1rem;
  color: #3ddc84;
  font-weight: 600;
}
.plugin-card p {
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.versions {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Stopka */
.card-foot {
  padding: 6px 16px 14px;
}
.card-download {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  font-family: 'Geist Mono', monospace;
  color: #050505;
  background: #3ddc84;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  transition: opacity 0.15s;
}
.card-download:hover {
  opacity: 0.85;
}
.card-no-file {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 0;
}

/* ── STRIP ───────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.strip-inner p {
  font-size: 0.95rem;
  color: var(--muted2);
}

/* ── FOOTER ──────────────────────────── */
.footer { padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── NAV AUTH ────────────────────────── */
.nav-auth { display: flex; align-items: center; gap: 14px; }
.nav-user { font-size: 0.78rem; color: var(--muted2); font-family: 'Geist Mono', monospace; }
.nav-logout {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 0.78rem; color: var(--muted); font-family: inherit;
  transition: color 0.15s;
}
.nav-logout:hover { color: var(--text); }

/* ── CARD IMAGE ─────────────────────── */
.card-img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 6px; margin: 4px 0;
}

/* ── EMPTY / LOADING ────────────────── */
.plugins-loading, .plugins-empty {
  font-size: 0.78rem; color: var(--muted);
  padding: 40px 0; grid-column: 1 / -1;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 800px) {
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -1.5px; }
  .nav-links { display: none; }
}
