/*
 * SpritePop Site Stylesheet
 * Minimalist dark charcoal aesthetic, crisp white text, Vercel-inspired polish.
 * No gradient text, no glow halos, fully responsive and accessible.
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-body: #09090b;
  --bg-surface: #121215;
  --bg-surface-elevated: #18181c;
  --bg-surface-highlight: #202026;
  --border-subtle: #24242b;
  --border-muted: #303038;
  --border-focus: #52525c;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --accent-pink: #f43f8e;
  --accent-pink-hover: #fb7185;
  --accent-pink-subtle: rgba(244, 63, 142, 0.12);
  --accent-cyan: #22d3ee;
  --accent-cyan-subtle: rgba(34, 211, 238, 0.12);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-main);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code, pre {
  font-family: var(--font-mono);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--text-main);
  color: var(--bg-body);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-link:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 0.4rem 0.2rem;
}

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

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

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

.btn:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-body);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-highlight);
  border-color: var(--border-muted);
}

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

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

.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
}

/* Main Content Wrapper */
.site-main {
  flex: 1;
}

/* Hero Section */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }
}

.hero-content {
  max-width: 820px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-pink);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.6rem;
  }
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 680px;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.meta-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-icon {
  color: var(--accent-cyan);
}

/* Screenshot Preview Showcase */
.showcase-section {
  padding-bottom: 4.5rem;
}

.showcase-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #27272a;
}

.showcase-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.showcase-action {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.showcase-action:hover {
  color: var(--text-main);
}

.showcase-img-link {
  display: block;
  position: relative;
  background-color: #050507;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.25s ease;
}

.showcase-img-link:hover .showcase-img {
  transform: scale(1.008);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.showcase-img-link:hover .showcase-overlay,
.showcase-img-link:focus-visible .showcase-overlay {
  opacity: 1;
}

.showcase-overlay-btn {
  background-color: var(--text-main);
  color: var(--bg-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Feature Grid */
.features-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-pink);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-muted);
  background-color: var(--bg-surface-elevated);
}

.feature-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  color: var(--accent-cyan);
}

.feature-card:nth-child(2) .feature-icon-box {
  color: var(--accent-pink);
}

.feature-card:nth-child(3) .feature-icon-box {
  color: #fbbf24;
}

.feature-card:nth-child(4) .feature-icon-box {
  color: #34d399;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Steps / Workflow */
.steps-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--border-subtle);
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-pink);
  margin-bottom: 0.85rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* CTA Band */
.cta-banner {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--border-subtle);
}

.cta-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 3.5rem 2.5rem;
  }
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Documentation Page Styles
   ========================================================================== */

.docs-layout {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

@media (min-width: 900px) {
  .docs-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* Sticky Docs Sidebar */
.docs-sidebar {
  display: none;
}

@media (min-width: 900px) {
  .docs-sidebar {
    display: block;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 1rem;
  }
}

.docs-nav-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-nav-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.docs-nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
}

/* Mobile Quick Navigation Pills */
.docs-mobile-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .docs-mobile-nav {
    display: none;
  }
}

.docs-pill {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.docs-pill:hover {
  color: var(--text-main);
  border-color: var(--border-muted);
}

/* Docs Content Area */
.docs-content {
  min-width: 0;
}

.docs-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .docs-title {
    font-size: 2.6rem;
  }
}

.docs-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

.docs-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.docs-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  padding-top: 0.5rem;
}

.docs-section-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Docs Setting Item / Card */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.setting-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.setting-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.setting-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.setting-tag.tag-numeric {
  color: var(--accent-cyan);
}

.setting-tag.tag-toggle {
  color: var(--accent-pink);
}

.setting-tag.tag-select {
  color: #fbbf24;
}

.setting-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.setting-tip {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
  background-color: var(--bg-surface-elevated);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-muted);
}

.setting-tip strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Callout Box */
.callout-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.callout-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.callout-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Code Snippet Block */
.code-block {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e4e4e7;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
