/* -------------------------------------------------------------
   Quarry Website Design System
   Brand: Deep Aqua / Frosted Cyan / Soft Mint / Slate
   ------------------------------------------------------------- */

:root {
  /* Color Palette */
  --accent: #00696e;
  --accent-strong: #004f53;
  --accent-light: #00878e;
  --accent-soft: #e6f7f5;
  --accent-subtle: #f0faf9;
  --accent-border: #bcebe7;
  
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --gold-border: #fde68a;

  --bg: #f8fcfa;
  --bg-card: #ffffff;
  --bg-soft: #eff5f3;
  --bg-elevated: #ffffff;
  
  --border: #dce7e4;
  --border-strong: #c2d6d1;
  --border-focus: #00696e;

  --text: #191c1b;
  --muted: #414e4b;
  --faint: #708480;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 105, 110, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(0, 105, 110, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(0, 105, 110, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-device: 0 16px 40px -8px rgba(0, 105, 110, 0.16), 0 6px 18px -4px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Google Sans Rounded', 'Google Sans', 'Plus Jakarta Sans', 'Outfit', var(--font-sans);
  --font-serif: var(--font-display);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-bn: 'Hind Siliguri', 'Tiro Bangla', sans-serif;

  --max-w: 1200px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------------------------------------------------
   Site Header & Sticky Navigation
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 252, 251, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}

.brand:hover .brand-title {
  color: var(--accent-strong);
}

@media (max-width: 991px) {
  .site-header .brand img {
    display: none;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px 2px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  z-index: 220;
  transition: opacity var(--transition);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger-line {
  display: block;
  height: 2.2px;
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 200ms ease,
              width 260ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color var(--transition);
  transform-origin: center;
}

.hamburger-line.line-1 {
  width: 22px;
}

.hamburger-line.line-2 {
  width: 15px;
}

.hamburger-line.line-3 {
  width: 19px;
}

/* Hover micro-interaction: smooth bar expansion and color shift */
.nav-toggle:hover .hamburger-line {
  background: var(--accent);
}

.nav-toggle:hover .hamburger-line.line-2 {
  width: 22px;
}

.nav-toggle:hover .hamburger-line.line-3 {
  width: 22px;
}

/* Morphing animation into 'X' when drawer is open */
.nav-toggle.is-active .hamburger-line.line-1 {
  width: 22px;
  transform: translateY(7.2px) rotate(45deg);
  background: var(--accent);
}

.nav-toggle.is-active .hamburger-line.line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .hamburger-line.line-3 {
  width: 22px;
  transform: translateY(-7.2px) rotate(-45deg);
  background: var(--accent);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   Mobile Drawer & Overlay
   ------------------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 26, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 290px;
  max-width: 86vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-radius: 0 16px 16px 0;
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px rgba(13, 110, 89, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.drawer-close:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.drawer-close:active {
  transform: scale(0.94);
}

.drawer-body {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
  margin: 12px 10px 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 3px;
}

.drawer-link:hover {
  background: var(--bg-soft);
  color: var(--text);
  transform: translateX(3px);
}

.drawer-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.drawer-link i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: normal;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.drawer-link:hover i {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--bg-card);
}

.drawer-link.is-active i {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* -------------------------------------------------------------
   Page Layout & Sticky Sidebar
   ------------------------------------------------------------- */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 0 16px;
  }
}

@media (min-width: 992px) {
  .page-wrapper {
    grid-template-columns: 220px 1fr;
  }
}

.toc-sidebar {
  display: none;
}

@media (min-width: 992px) {
  .toc-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding-right: 12px;
  }
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.toc-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-nav::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.toc-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px 7px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.toc-link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  transform: translateY(-50%);
  transition: all var(--transition);
}

.toc-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.toc-link:hover::before {
  background: var(--accent);
}

.toc-link.is-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.toc-link.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 89, 0.2);
}

.toc-card {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toc-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.toc-card-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.toc-card-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: white !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}

.toc-card-btn:hover {
  background: var(--accent-strong);
}

/* -------------------------------------------------------------
   Main Content Area
   ------------------------------------------------------------- */
.content-main {
  min-width: 0;
  padding: 32px 0 80px;
}

.doc-section {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 6px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 68ch;
}

/* -------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------- */
.hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 64ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(13, 110, 89, 0.3);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 89, 0.4);
}

/* -------------------------------------------------------------
   Frameless Screenshot Showcase with Live Progress Timer
   ------------------------------------------------------------- */
.screens-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .screens-card {
    padding: 32px 28px;
  }
}

@media (max-width: 540px) {
  .screens-card {
    padding: 20px 12px;
  }
}

/* Stage & Navigators */
.screens-stage-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

@media (min-width: 640px) {
  .screens-stage-wrapper {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .screens-stage-wrapper {
    gap: 10px;
  }
}

.screenshot-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 310px;
  gap: 16px;
}

.screenshot-viewport {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
}

/* Segmented Live Progress Bar (Under Screenshot, Same Width) */
.screens-progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.progress-segment:hover {
  background: var(--accent-border);
  transform: scaleY(1.5);
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.progress-segment.is-completed .progress-fill {
  width: 100%;
}

.screenshot-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-device);
}

.screen-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.screen-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Navigation Buttons Outside Image Area */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}

.carousel-nav-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.carousel-nav-btn:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* Meta info & Captions */
.screens-meta-box {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screens-counter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  display: inline-block;
}

.screen-caption-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.screen-caption-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   Features Minimalist Spec Grid
   ------------------------------------------------------------- */
.features-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.feature-spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
}

.feature-spec-item:hover {
  border-color: var(--accent-border);
  background: #f8fbf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 110, 89, 0.08);
}

.feature-spec-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13, 110, 89, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 110, 89, 0.16);
  box-shadow: 0 2px 5px rgba(13, 110, 89, 0.04);
  transition: all var(--transition);
  margin-top: 1px;
}

.feature-spec-item:hover .feature-spec-icon {
  background: linear-gradient(135deg, var(--accent) 0%, #084c3d 100%);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(13, 110, 89, 0.22);
}

.feature-spec-content {
  flex: 1;
}

.feature-spec-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.feature-spec-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.features-notice-card {
  margin-top: 18px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.features-notice-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.notice-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  margin-top: 1px;
}

.notice-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.notice-text strong {
  color: var(--accent-strong);
  font-weight: 700;
}

/* -------------------------------------------------------------
   Download & Release Hub
   ------------------------------------------------------------- */
.download-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
}

.download-flex {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.dl-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dl-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.dl-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 4px;
}

.dl-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dl-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.btn-apk-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(13, 110, 89, 0.3);
  transition: all var(--transition);
}

.btn-apk-dl:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-gh-release {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.btn-gh-release:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.changelog-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.changelog-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.changelog-list {
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.changelog-list li {
  margin-bottom: 8px;
}

.changelog-list li:last-child {
  margin-bottom: 0;
}

.changelog-list strong {
  color: var(--text);
  font-weight: 600;
}

.changelog-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-strong);
}

.changelog-sublist {
  padding-left: 20px;
  margin-top: 6px;
  margin-bottom: 8px;
  list-style-type: circle;
}

.changelog-sublist li {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.changelog-sublist li:last-child {
  margin-bottom: 0;
}

.commit-link {
  text-decoration: none;
  display: inline-block;
}

.commit-link code {
  color: var(--accent-strong);
  transition: background var(--transition), border-color var(--transition);
}

.commit-link:hover code {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* -------------------------------------------------------------
   Developer Spec Sheet & Architecture Matrix Table
   ------------------------------------------------------------- */
.arch-spec-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.arch-spec-header {
  background: #0f1f1a;
  color: #e1ede8;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-family: var(--font-mono);
}

.arch-spec-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.arch-spec-filename {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9ecdbf;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.arch-spec-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #79a89b;
  font-size: 11.5px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
}

.arch-spec-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.arch-spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
  transition: background var(--transition);
}

.arch-spec-row:last-child {
  border-bottom: none;
}

.arch-spec-row:not(.header-row):hover {
  background: #f8fbf9;
}

.arch-spec-row > div {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Header Row */
.arch-spec-row.header-row {
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

.arch-spec-row.header-row > div {
  padding: 10px 14px;
}

/* Column Gridlines */
.col-layer {
  border-right: 1px solid var(--border);
}

.layer-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.35;
}

.layer-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: none; /* hidden on small viewport for clean title only */
}

.col-details {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile defaults (< 768px): Hide stack and badge */
@media (max-width: 767px) {
  .col-stack,
  .col-badge {
    display: none !important;
  }

  .arch-spec-status {
    display: none;
  }
}

/* Desktop Viewport (≥ 768px): Show all 4 columns with gridlines */
@media (min-width: 768px) {
  .arch-spec-row {
    grid-template-columns: 155px 195px 1fr 135px;
  }

  .arch-spec-row > div {
    padding: 14px 18px;
  }

  .arch-spec-row.header-row > div {
    padding: 10px 18px;
  }

  .layer-name {
    font-size: 14px;
  }

  .layer-code {
    display: block;
  }

  .col-stack {
    border-right: 1px solid var(--border);
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
  }

  .col-details {
    border-right: 1px solid var(--border);
    font-size: 13.5px;
  }

  .col-badge {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
  }
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.mode-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #e8f5f0;
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
}

.mode-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------------------------------------------------------------
   FAQ Accordion
   ------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item details summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-item details summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq-item details[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

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

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: #000000;
  max-width: 44ch;
  line-height: 1.5;
}

.footer-links-group h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #000000;
  font-size: 13.5px;
  transition: opacity var(--transition);
}

.footer-links-list a:hover {
  color: #000000;
  opacity: 0.75;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #000000;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus,
.footer-bottom a:active {
  color: inherit;
  text-decoration: none;
}

.footer-desktop-only {
  display: block;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 24px 0;
  }

  .footer-top {
    display: none;
  }

  .footer-bottom {
    padding-top: 0;
    justify-content: center;
    text-align: center;
    color: #000000;
  }

  .footer-desktop-only {
    display: none;
  }
}
