/* @group Configuration : Design tokens and CSS variables */
:root {
  /* Background layers */
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface-2:   #21262d;
  --border:      #30363d;
  --border-muted:#21262d;

  /* Brand */
  --primary:     #3fb950;
  --primary-dk:  #2ea043;
  --primary-lt:  #56d364;
  --primary-glow:rgba(63, 185, 80, 0.12);

  /* Accent */
  --blue:        #58a6ff;
  --purple:      #bc8cff;
  --orange:      #e3b341;
  --red:         #f85149;

  /* Text */
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --text-subtle: #6e7681;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, .5);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, .6);
  --shadow-lg:   0 12px 32px rgba(0, 0, 0, .7);

  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-full:9999px;

  /* Motion */
  --ease: cubic-bezier(.25, .8, .25, 1);
  --t-fast: 0.15s ease;
  --t:      0.25s var(--ease);

  /* Layout */
  --max-w:  1200px;
  --nav-h:  60px;
}

/* @group LightTheme : Light mode overrides */
body.light {
  --bg:          #ffffff;
  --surface:     #f6f8fa;
  --surface-2:   #eaeef2;
  --border:      #d0d7de;
  --border-muted:#eaeef2;
  --text:        #1f2328;
  --text-muted:  #656d76;
  --text-subtle: #848d97;
}

/* @group Reset : Global box-sizing and base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* @group Layout : Container and section structure */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section     { padding: 96px 0; }
.section-alt { background: var(--surface); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .25);
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Gradient text */
.grad {
  background: linear-gradient(90deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* @group Buttons : Primary and outline variants */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.35rem;
  font-size: .925rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: var(--t);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #0d1117;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-lt);
  border-color: var(--primary-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 185, 80, .3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  color: var(--text);
  text-decoration: none !important;
}

/* @group Navigation : Fixed top nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 17, 23, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
body.light .navbar { background: rgba(255, 255, 255, .9); }
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none !important;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.logo img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
}
.nav-links a {
  padding: .4rem .7rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: var(--t-fast);
  text-decoration: none !important;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.theme-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  transition: var(--t-fast);
  font-size: .85rem;
}
.theme-btn:hover { color: var(--text); border-color: var(--text-muted); }

.github-nav-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: var(--t-fast);
  text-decoration: none !important;
}
.github-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--t-fast);
}

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  z-index: 99;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .25s ease;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  display: block;
  padding: .7rem .25rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-muted);
  text-decoration: none !important;
  transition: color var(--t-fast);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

/* @group Hero : Landing hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4.5rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Grid background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 185, 80, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 185, 80, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(63, 185, 80, .04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .25);
  border-radius: var(--r-full);
  padding: .3rem .85rem;
  margin-bottom: 1.4rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: live-blink 1.6s step-end infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.stat-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Hero visual side */
.hero-visual { position: relative; }

.terminal-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .45rem 1rem;
  margin-bottom: .9rem;
}
.terminal-chip i { color: var(--text-subtle); font-size: .75rem; }

.hero-screen {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
  background: var(--surface);
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.screen-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.screen-dot.red    { background: #f85149; }
.screen-dot.yellow { background: #e3b341; }
.screen-dot.green  { background: #3fb950; }
.screen-url {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  font-family: 'Courier New', monospace;
  color: var(--text-subtle);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .2rem .6rem;
}
.hero-screen img { width: 100%; border-radius: 0; }

/* @group Features : Feature cards grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: var(--t);
}
.feature-card:hover {
  border-color: rgba(63, 185, 80, .4);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, .08), var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .2);
  border-radius: var(--r-md);
  margin-bottom: 1.15rem;
  font-size: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .45rem;
}
.feature-card p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Tech stack banner */
.tech-banner {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}
.tech-banner-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
  display: block;
}
.tech-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.tech-item i { font-size: 1rem; color: var(--text-subtle); }

/* @group Screenshots : 2x2 gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t);
}
.screenshot-card:hover {
  border-color: rgba(88, 166, 255, .35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.screenshot-card img { width: 100%; border-radius: 0; }
.screenshot-label {
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
}
.screenshot-label h4 {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}
.screenshot-label p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* @group Installation : Tabbed install steps */
.install-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: .2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .25rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--r-md);
  transition: var(--t-fast);
  border: none;
}
.tab-btn:hover { color: var(--text); background: var(--surface-2); }
.tab-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
body.light .tab-btn.active { background: #fff; }

.tab-panel { display: none; animation: fade-up .3s ease; }
.tab-panel.active { display: block; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.install-steps { display: flex; flex-direction: column; }
.install-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
}
.install-step:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.install-step:last-child  {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.step-n {
  width: 26px; height: 26px;
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .2rem;
}
.step-body h4 {
  font-size: .925rem; font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
}
.step-body p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .6rem;
}
.step-body p code {
  font-family: 'Courier New', monospace;
  font-size: .83em;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .2);
  padding: .1rem .4rem;
  border-radius: var(--r-sm);
}

/* Code block row */
.code-block {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}
body.light .code-block { background: #f6f8fa; }

.code-prompt {
  display: flex;
  align-items: center;
  padding: .65rem .9rem;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}
.code-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  font-size: .875rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}
.code-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  background: transparent;
  border-left: 1px solid var(--border);
  color: var(--text-subtle);
  transition: var(--t-fast);
  font-size: .82rem;
  flex-shrink: 0;
}
.code-copy:hover { color: var(--text); background: var(--surface-2); }

/* Multi-line code block */
.code-multi {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}
body.light .code-multi { background: #f6f8fa; }
.code-multi .code-copy-abs {
  position: absolute;
  top: .6rem; right: .6rem;
  padding: .3rem .55rem;
  font-size: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-subtle);
  cursor: pointer;
  transition: var(--t-fast);
}
.code-multi .code-copy-abs:hover { color: var(--text); }

/* Compat note */
.compat-note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: rgba(88, 166, 255, .06);
  border: 1px solid rgba(88, 166, 255, .18);
  border-radius: var(--r-md);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.compat-note i { color: var(--blue); margin-top: .15rem; flex-shrink: 0; }

/* @group Documentation : Doc cards */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: var(--t);
}
.doc-card:hover {
  border-color: rgba(63, 185, 80, .35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.doc-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-glow);
  border: 1px solid rgba(63, 185, 80, .2);
  border-radius: var(--r-md);
  color: var(--primary);
  font-size: .9rem;
  flex-shrink: 0;
}
.doc-card h3 {
  font-size: .925rem;
  font-weight: 600;
  color: var(--text);
}
.doc-card p {
  font-size: .845rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none !important;
  margin-top: auto;
  transition: color var(--t-fast);
}
.doc-link:hover { color: var(--primary-lt); }
.doc-link i { font-size: .72rem; transition: transform var(--t-fast); }
.doc-link:hover i { transform: translateX(3px); }

/* @group CTA : Call to action section */
.cta-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(63, 185, 80, .05) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* @group Footer : Site footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.1rem; font-weight: 800;
  color: var(--text);
  text-decoration: none !important;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.footer-logo img { width: 26px; height: 26px; }
.footer-brand p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1.1rem;
}
.footer-social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: .875rem;
  text-decoration: none !important;
  transition: var(--t-fast);
}
.footer-social a:hover { color: var(--text); border-color: var(--text-muted); }

.footer-link-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-subtle);
  margin-bottom: .75rem;
}
.footer-link-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-link-col a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: color var(--t-fast);
}
.footer-link-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-subtle);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none !important; }
.footer-bottom a:hover { color: var(--text); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--t);
  font-size: .82rem;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { color: var(--text); border-color: var(--text-muted); }

/* @group ScrollReveal : Entrance animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal-stagger.in-view > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: .07s; }
.reveal-stagger.in-view > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: .14s; }
.reveal-stagger.in-view > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: .21s; }
.reveal-stagger.in-view > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: .28s; }
.reveal-stagger.in-view > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay: .35s; }
.reveal-stagger.in-view > *:nth-child(7) { opacity:1; transform:translateY(0); transition-delay: .42s; }
.reveal-stagger.in-view > *:nth-child(8) { opacity:1; transform:translateY(0); transition-delay: .49s; }
.reveal-stagger.in-view > *:nth-child(9) { opacity:1; transform:translateY(0); transition-delay: .56s; }

/* @group Responsive : Breakpoint overrides */
@media (max-width: 1024px) {
  .docs-grid      { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid         { grid-template-columns: 1fr; text-align: center; }
  .hero-desc         { margin-left: auto; margin-right: auto; }
  .hero-cta          { justify-content: center; }
  .hero-stats        { justify-content: center; }
  .footer-grid       { flex-direction: column; gap: 2rem; }
  .screenshots-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .github-nav-btn { display: none; }
  .mobile-menu-btn   { display: flex; }
  .features-grid     { grid-template-columns: 1fr; }
  .docs-grid         { grid-template-columns: 1fr 1fr; }
  .section           { padding: 64px 0; }
}

@media (max-width: 576px) {
  .hero-stats        { flex-direction: column; align-items: center; gap: 1.1rem; }
  .docs-grid         { grid-template-columns: 1fr; }
  .tab-bar           { flex-direction: column; }
  .footer-bottom     { flex-direction: column; gap: .6rem; text-align: center; }
  .cta-btns          { flex-direction: column; align-items: center; }
  .hero-cta          { flex-direction: column; align-items: center; }
}
