/* DriftSlider Docs — Main Stylesheet */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --c-primary: #48D9C1;
  --c-primary-light: #B3F0E4;
  --c-primary-dark: #2FB8A1;
  --c-primary-darker: #1F9B87;
  --c-primary-subtle: #E8FAF6;
  --c-header-bg: #0B1120;
  --c-bg: #ffffff;
  --c-surface: #f5f5f7;
  --c-border: #e5e7eb;
  --c-text: #1a1a2e;
  --c-text-secondary: #6b7280;
  --c-code-bg: #1e1e2e;
  --c-code-text: #cdd6f4;
  --header-h: 60px;
  --sidebar-w: 260px;
  --content-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); max-width: 100dvw; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: var(--c-surface);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
pre { margin: 0; }
pre code { background: none; padding: 0; font-size: 0.8125rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; }

/* ========================================
   Header / Nav
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--c-header-bg);
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo img { width: 32px; height: 32px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-icon {
  display: flex !important;
  align-items: center;
  padding: 6px 10px !important;
}
.nav-icon svg { opacity: 0.7; transition: opacity 0.2s; }
.nav-icon:hover svg { opacity: 1; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
}
.lang-toggle span { transition: color 0.2s; }
.lang-toggle span.active { color: #fff; font-weight: 600; }
.lang-sep { margin: 0 2px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-header-bg);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
  .lang-toggle { align-self: flex-start; margin-top: 8px; }
}

/* ========================================
   Layout
   ======================================== */
.page-body { padding-top: var(--header-h); }

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

/* Page with sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.page-body .page-with-sidebar {
  padding-top: 40px;
}
@media (max-width: 960px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 16px;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-secondary);
  margin-bottom: 12px;
  padding-left: 12px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  border-radius: var(--radius-xs);
  border-left: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-nav li a:hover { color: var(--c-text); background: var(--c-surface); }
.sidebar-nav li a.active {
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  background: rgba(72, 217, 193, 0.08);
  font-weight: 500;
}
.sidebar-nav li.sub a { padding-left: 28px; font-size: 0.8125rem; }
@media (max-width: 960px) {
  .sidebar {
    position: static;
    max-height: none;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
  }
}

/* Content area */
.content { min-width: 0; }
.content h1 { font-size: 2rem; margin-bottom: 8px; }
.content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.content h2:first-of-type { border-top: none; margin-top: 24px; }
.content h3 { font-size: 1.125rem; margin: 32px 0 12px; }
.content p { margin-bottom: 16px; }
.content > .lead { font-size: 1.125rem; color: var(--c-text-secondary); margin-bottom: 32px; }
.content ul, .content ol { margin-bottom: 16px; padding-left: 24px; }
.content li { margin-bottom: 6px; }

/* ========================================
   Code Blocks
   ======================================== */
.code-block {
  position: relative;
  margin: 16px 0 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-code-bg);
}
.code-block pre {
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.65;
}
.code-block pre code {
  color: var(--c-code-text);
  font-size: 0.8125rem;
}
.code-block .code-lang {
  position: absolute;
  top: 8px; right: 48px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.copy-btn.copied { color: #a6e3a1; border-color: rgba(166,227,161,0.3); }

/* Code Tabs */
.code-tabs { margin: 16px 0 24px; border-radius: var(--radius-sm); overflow: hidden; }
.code-tabs .tab-bar {
  display: flex;
  background: #181825;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-tabs .tab-btn {
  padding: 8px 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.8125rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.code-tabs .tab-btn:hover { color: rgba(255,255,255,0.7); }
.code-tabs .tab-btn.active {
  color: #fff;
  border-bottom-color: var(--c-primary);
}
.code-tabs .tab-panel {
  display: none;
  background: var(--c-code-bg);
}
.code-tabs .tab-panel.active { display: block; }

/* ========================================
   Tables
   ======================================== */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.875rem;
}
.api-table thead { background: var(--c-surface); }
.api-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-secondary);
  border-bottom: 2px solid var(--c-border);
}
.api-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.api-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--c-primary);
  white-space: nowrap;
}
.api-table td:nth-child(2) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: #e879a8;
}
.api-table td:nth-child(3) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: #a6e3a1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, #0f1729 0%, #1a1f3a 50%, #0f1729 100%);
  padding: 100px 24px 80px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(72,217,193,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.hero h1 span { color: var(--c-primary); }
.hero .hero-desc {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.hero-badge strong { color: #fff; }
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ========================================
   Features Grid
   ======================================== */
.section { padding: 80px 24px; }
.section-alt { background: var(--c-surface); }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  color: var(--c-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--c-primary); box-shadow: 0 4px 24px rgba(72,217,193,0.12); }
.feature-card .icon, .demo-card .icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  background: var(--c-primary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.demo-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  background: #fff;
}
/* Outline Icon Library */
.icon-zap {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}
.icon-crosshair {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='22' y1='12' x2='18' y2='12'/%3E%3Cline x1='6' y1='12' x2='2' y2='12'/%3E%3Cline x1='12' y1='6' x2='12' y2='2'/%3E%3Cline x1='12' y1='22' x2='12' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='22' y1='12' x2='18' y2='12'/%3E%3Cline x1='6' y1='12' x2='2' y2='12'/%3E%3Cline x1='12' y1='6' x2='12' y2='2'/%3E%3Cline x1='12' y1='22' x2='12' y2='18'/%3E%3C/svg%3E");
}
.icon-package {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}
.icon-shield {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
}
.icon-repeat {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 014-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 014-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");
}
.icon-layers {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}
.icon-smartphone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
}
.icon-code {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}
/* Demo gallery icons */
.icon-play {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
}
.icon-infinity {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8z'/%3E%3C/svg%3E");
}
.icon-globe {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
}
.icon-disc {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.icon-sliders {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E");
}
.icon-dollar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6'/%3E%3C/svg%3E");
}
.icon-palette {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='0.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='0.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='0.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='0.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='0.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='0.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='0.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='0.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E");
}
.icon-rocket {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 00-2.91-.09z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 012-3.95A12.88 12.88 0 0122 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 01-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 3 0 3 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-3 0-3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 00-2.91-.09z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 012-3.95A12.88 12.88 0 0122 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 01-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 3 0 3 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-3 0-3'/%3E%3C/svg%3E");
}
.icon-copy {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E");
}
.icon-grid {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
.icon-maximize {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3'/%3E%3C/svg%3E");
}
.icon-image {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}
.icon-hash {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='15' x2='20' y2='15'/%3E%3Cline x1='10' y1='3' x2='8' y2='21'/%3E%3Cline x1='16' y1='3' x2='14' y2='21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='15' x2='20' y2='15'/%3E%3Cline x1='10' y1='3' x2='8' y2='21'/%3E%3Cline x1='16' y1='3' x2='14' y2='21'/%3E%3C/svg%3E");
}
.icon-arrow-up {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'/%3E%3Cpolyline points='5 12 12 5 19 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='19' x2='12' y2='5'/%3E%3Cpolyline points='5 12 12 5 19 12'/%3E%3C/svg%3E");
}
.icon-eye {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.icon-activity {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
}
.icon-loader {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3E%3C/svg%3E");
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--c-text-secondary); margin: 0; line-height: 1.6; }

/* ========================================
   Effects Showcase
   ======================================== */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.effect-item { text-align: center; }
.effect-item h3 { margin-top: 12px; font-size: 0.9375rem; font-weight: 600; }
.effect-item p { font-size: 0.8125rem; color: var(--c-text-secondary); }

/* ========================================
   Quick Install
   ======================================== */
.install-section {
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Demo Cards
   ======================================== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.demo-card {
  display: block;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.demo-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.demo-card .demo-preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.demo-card .demo-info {
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
}
.demo-card .demo-info h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.demo-card .demo-info p { font-size: 0.8125rem; color: var(--c-text-secondary); margin: 0; }
.demo-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  margin-bottom: 4px;
}

/* ========================================
   Demo Pages
   ======================================== */
.demo-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.demo-page h1 { font-size: 2rem; margin-bottom: 8px; }
.demo-page .demo-desc {
  color: var(--c-text-secondary);
  margin-bottom: 24px;
  font-size: 1.0625rem;
}
.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.demo-section-title {
  font-size: 1.125rem;
  margin: 40px 0 16px;
}

/* ========================================
   Slider Core Styles (from demo-common.css)
   ======================================== */
.drift-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--radius);
}
.drift-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.drift-list {
  display: flex;
  transition-property: transform;
  transition-timing-function: ease-out;
  list-style: none;
  margin: 0;
  padding: 0;
}
.drift-slide {
  flex-shrink: 0;
  width: 100%;
}
.drift-slide img { -webkit-user-drag: none; user-select: none; }
.drift-slider--dragging .drift-list { user-select: none; }

/* Arrows */
.drift-arrow {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.9);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s, background 0.3s;
}
.drift-arrow:hover { background: #fff; }
.drift-arrow::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2.5px solid #333;
  border-bottom: 2.5px solid #333;
}
.drift-arrow--prev { left: 12px; }
.drift-arrow--prev::after { transform: rotate(135deg); margin-left: 3px; }
.drift-arrow--next { right: 12px; }
.drift-arrow--next::after { transform: rotate(-45deg); margin-right: 3px; }
.drift-arrow--disabled { opacity: 0.35; pointer-events: none; }

/* Pagination */
.drift-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 10;
  gap: 8px;
}
.drift-pagination__bullet {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.drift-pagination__bullet:hover { background: rgba(255,255,255,0.7); }
.drift-pagination__bullet--active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* Progressbar */
.drift-pagination--progressbar {
  top: 0; bottom: auto;
  height: 4px;
  background: rgba(0,0,0,0.1);
  display: block;
}
.drift-pagination__progress {
  display: block;
  width: 100%; height: 100%;
  background: #007aff;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.3s;
}

/* Slide content — demo colors */
.slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  font-size: 2em;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
}
.slide-1 { background: #5B6ABF; }
.slide-2 { background: #E05A6D; }
.slide-3 { background: #2BA5B5; }
.slide-4 { background: #3BB273; }
.slide-5 { background: #E8734A; }
.slide-6 { background: #9B59B6; }

/* Card (responsive demo) */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.card h3 { font-size: 1.2em; margin-bottom: 8px; }
.card p { color: var(--c-text-secondary); font-size: 14px; text-align: center; }

/* Info bar */
.info {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.info code {
  background: #e8e8ed;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* SR only */
.drift-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Coverflow */
.drift-slider--coverflow { overflow: visible; }
.drift-slider--coverflow .drift-track { overflow: visible; }
.drift-slider--coverflow .drift-list { transform-style: preserve-3d; }
.drift-slider--coverflow .drift-slide { transform-style: preserve-3d; backface-visibility: hidden; }
.drift-coverflow-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: opacity 0.3s; }

/* Cards */
.drift-slider--cards .drift-slide { backface-visibility: hidden; }
.drift-slider--cards-diagonal,
.drift-slider--cards-diagonal .drift-track { overflow: visible; }
.drift-slider--cards-flip .drift-track { perspective: 1200px; }
.drift-cards-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: opacity 0.3s; }

/* Controls panel (demo pages) */
.controls {
  margin-top: 24px;
  padding: 20px;
  background: var(--c-surface);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.controls h3 {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-secondary);
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
}
.controls h3:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.controls label span:first-child { min-width: 120px; }
.controls input[type="range"] { flex: 1; }
.controls .val { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.controls select {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-border);
  font-family: inherit;
}
.controls .dimmed { opacity: 0.35; pointer-events: none; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--c-header-bg);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-links { margin-top: 8px; }
.footer-links .sep { margin: 0 8px; }

/* ========================================
   Changelog
   ======================================== */
.changelog-entry {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-border);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-version {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.changelog-date {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  margin-bottom: 16px;
}
.changelog-entry h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--c-text); }
.changelog-entry ul { padding-left: 20px; }
.changelog-entry li { margin-bottom: 6px; font-size: 0.9375rem; }

/* ========================================
   Presets (demo)
   ======================================== */
.presets {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--c-surface);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.presets span { font-size: 14px; font-weight: 600; }
.presets button {
  padding: 8px 16px;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.presets button:hover,
.presets button.active { background: var(--c-primary); color: #fff; }

/* Size info (coverflow-custom demo) */
.size-info {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--c-surface);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
}
.size-info code { background: #e8e8ed; padding: 2px 6px; border-radius: var(--radius-xs); }
.size-info .highlight { color: var(--c-primary); font-weight: 600; }

/* Ruler (coverflow-custom demo) */
.ruler {
  position: relative;
  margin: 12px auto 0;
  height: 32px;
  border-left: 1px dashed var(--c-border);
  border-right: 1px dashed var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-text-secondary);
}

/* Hero (scroll-aos demo) */
.demo-hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.demo-hero h1 { font-size: 2.5em; margin-bottom: 16px; }
.demo-hero p { color: var(--c-text-secondary); font-size: 1.2em; }
.demo-hero .scroll-hint {
  margin-top: 40px;
  font-size: 14px;
  color: var(--c-text-secondary);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.demo-section-block {
  min-height: 80vh;
  padding: 80px 0;
}
.demo-section-block h2 { font-size: 1.5em; margin-bottom: 8px; }
.demo-section-block p.section-desc { color: var(--c-text-secondary); margin-bottom: 24px; }

/* ========================================
   Responsive Enhancements
   ======================================== */
/* Tablet */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .effects-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .effects-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-desc { font-size: 1rem; }
  .hero-badges { flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: center; }
  .install-section .code-tabs .tab-panel pre { font-size: 12px; }
  .controls { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 1.5rem; }
  .demo-page { padding: 24px 16px 48px; }
  .demo-page h1 { font-size: 1.5rem; }
}

/* API/Modules table responsive */
@media (max-width: 768px) {
  .api-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .api-table-wrap table { min-width: 600px; }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .drift-list { transition-duration: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* ========================================
   i18n
   ======================================== */
[data-i18n-zh] { display: none; }
html[lang="zh-Hant"] [data-i18n-en] { display: none; }
html[lang="zh-Hant"] [data-i18n-zh] { display: revert; }

/* ========================================
   Focus Styles (Accessibility)
   ======================================== */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}
.site-header :focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(72, 217, 193, 0.2);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

/* ========================================
   Utility
   ======================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
