/* ========================================
   NexDeck — Global Styles
   Dark theme, minimal, tech-oriented
   ======================================== */

:root {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-card: #1C2128;
  --border: #30363D;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --success: #3FB950;
  --error: #F85149;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  --max-width: 880px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding: 96px 0 64px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  border-radius: 16px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.hero .btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Section ---- */

section {
  padding: 64px 0;
}

section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

/* ---- Plugin Card ---- */

.plugin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plugin-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}

.plugin-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.plugin-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.plugin-card .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 6px;
}

.plugin-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.plugin-card .card-link::after {
  content: '→';
}

/* ---- Features List ---- */

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

.feature-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.step {
  padding: 32px 16px;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Screenshot Gallery ---- */

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

.screenshot-item figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- Content Page ---- */

.content-page {
  padding: 48px 0 96px;
}

.content-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.content-page h2 {
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  margin: 32px 0 12px;
}

.content-page p,
.content-page li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-page ul {
  padding-left: 20px;
}

.content-page a {
  font-weight: 500;
}

/* ---- Support Cards ---- */

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

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.support-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .tagline {
    font-size: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 13px;
  }
}
