/* ==========================================================================
   Wilang Documentation Design System
   Modern, elegant, minimalist, responsive & adaptive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0&display=swap');

:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Menlo, Monaco, Consolas, monospace;

  /* Light Theme (Default) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-active: #eef2ff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-subtle: #eef2ff;
  --accent-glow: rgba(79, 70, 229, 0.15);

  --code-bg: #f8fafc;
  --code-border: #e2e8f0;
  --code-inline-bg: #f1f5f9;
  --code-inline-border: #e2e8f0;

  --example-shelf: #f1f5f9;
  --example-action-bg: #ffffff;
  --example-primary: #595992;
  --example-title: #09090b;
  --example-muted: #52525b;

  --callout-bg: #fffbeb;
  --callout-border: #f59e0b;
  --callout-text: #92400e;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --header-height: 60px;
  --sidebar-width: 290px;
  --toc-width: 230px;
  --content-max-width: 820px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #09090b;
    --bg-surface: #121215;
    --bg-surface-elevated: #18181b;
    --bg-subtle: #1a1a1f;
    --bg-hover: #27272a;
    --bg-active: rgba(99, 102, 241, 0.18);

    --text-primary: #f4f4f5;
    --text-secondary: #d4d4d8;
    --text-muted: #9ca3af;
    --text-inverse: #09090b;

    --border-subtle: #27272a;
    --border-strong: #3f3f46;

    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-subtle: rgba(99, 102, 241, 0.15);
    --accent-glow: rgba(129, 140, 248, 0.25);

    --code-bg: #111114;
    --code-border: #27272a;
    --code-inline-bg: #18181b;
    --code-inline-border: #27272a;

    --example-shelf: #18181b;
    --example-action-bg: #111114;
    --example-primary: #c2c1ff;
    --example-title: #fafafa;
    --example-muted: #a1a1aa;

    --callout-bg: #221b06;
    --callout-border: #d97706;
    --callout-text: #fef3c7;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg-page: #09090b;
  --bg-surface: #121215;
  --bg-surface-elevated: #18181b;
  --bg-subtle: #1a1a1f;
  --bg-hover: #27272a;
  --bg-active: rgba(99, 102, 241, 0.18);

  --text-primary: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #9ca3af;
  --text-inverse: #09090b;

  --border-subtle: #27272a;
  --border-strong: #3f3f46;

  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-subtle: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(129, 140, 248, 0.25);

  --code-bg: #111114;
  --code-border: #27272a;
  --code-inline-bg: #18181b;
  --code-inline-border: #27272a;

  --example-shelf: #18181b;
  --example-action-bg: #111114;
  --example-primary: #c2c1ff;
  --example-title: #fafafa;
  --example-muted: #a1a1aa;

  --callout-bg: #221b06;
  --callout-border: #d97706;
  --callout-text: #fef3c7;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  color: var(--text-primary);
  background-color: var(--bg-page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header (Fixed on top) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-height);
  padding: 0 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s, border-color 0.2s;
}

@supports (backdrop-filter: blur(12px)) {
  header {
    background-color: rgba(248, 250, 252, 0.85);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) header {
      background-color: rgba(18, 18, 21, 0.85);
    }
  }
  :root[data-theme="dark"] header {
    background-color: rgba(18, 18, 21, 0.85);
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.brand-logo {
  flex-shrink: 0;
  border-radius: 6px;
}

.version-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.menu-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
}

/* Language Picker */
.lang-picker {
  position: relative;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.lang-toggle .chevron-icon {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.lang-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.lang-item.active {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}

.lang-item .check-icon {
  color: var(--accent);
}

/* Layout Grid */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--header-height) 24px 0 24px;
  gap: 36px;
  min-height: 100vh;
}

.layout.no-toc {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  max-width: 1200px;
}

/* Sidebar (Aside) */
aside.sidebar {
  grid-column: 1;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 20px 8px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

aside.sidebar::-webkit-scrollbar {
  width: 5px;
}
aside.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-hint {
  position: absolute;
  right: 10px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  pointer-events: none;
}

#docs-search {
  width: 100%;
  padding: 9px 36px 9px 36px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#docs-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Search Results */
#docs-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#docs-search-results a {
  display: block;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.15s ease;
}

#docs-search-results a:hover,
#docs-search-results a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  outline: none;
}

#docs-search-results a .search-result-page {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-no-results {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Navigation Tree (#docs-contents) */
#docs-contents {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#docs-contents details.nav-section,
#docs-contents > details {
  margin-bottom: 2px;
}

#docs-contents details.nav-section > summary,
#docs-contents > details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-radius: 6px;
  user-select: none;
  transition: color 0.15s, background-color 0.15s;
}

#docs-contents details.nav-section > summary:hover,
#docs-contents > details > summary:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

#docs-contents summary::-webkit-details-marker {
  display: none;
}

#docs-contents details.nav-section > summary::after,
#docs-contents > details > summary::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 4px;
  opacity: 0.7;
}

#docs-contents details.nav-section[open] > summary::after,
#docs-contents > details[open] > summary::after {
  transform: rotate(45deg);
}

/* Tier 1 children container */
.nav-group {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
  margin-bottom: 6px;
}

/* Tier 2: Category inside Reference */
#docs-contents details.nav-category {
  margin: 2px 0;
}

#docs-contents details.nav-category > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  border-radius: 5px;
  user-select: none;
  transition: color 0.15s, background-color 0.15s;
}

#docs-contents details.nav-category > summary:hover {
  color: var(--accent);
  background: var(--bg-hover);
}

#docs-contents details.nav-category > summary::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 3px;
  opacity: 0.6;
}

#docs-contents details.nav-category[open] > summary::after {
  transform: rotate(45deg);
}

/* Tier 2 children container (functions under category) */
.nav-subgroup {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Navigation Links */
#docs-contents a.nav-link,
#docs-contents a {
  display: block;
  padding: 5px 8px;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.45;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.15s ease;
  word-break: break-word;
}

#docs-contents a.nav-link-ref {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 4px 7px;
  letter-spacing: -0.01em;
}

#docs-contents a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

#docs-contents a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}

/* Main Content Area */
main {
  grid-column: 2;
  min-width: 0;
  max-width: var(--content-max-width);
  padding: 24px 0 64px 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.breadcrumbs .sep {
  color: var(--border-strong);
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Typography */
main h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0.5rem 0 1.5rem 0;
}

main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

main h4, main h5, main h6 {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.heading-anchor {
  opacity: 0;
  margin-left: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.15s;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

main p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 1rem 0;
}

main ul, main ol {
  padding-left: 24px;
  margin: 1rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

main li {
  margin: 6px 0;
}

main blockquote {
  margin: 1.5rem 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg-surface);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* Code & Pre */
pre {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

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

code:not(pre code) {
  font-size: 0.875em;
  padding: 0.2em 0.45em;
  background: var(--code-inline-bg);
  border: 1px solid var(--code-inline-border);
  border-radius: 6px;
  color: var(--text-primary);
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  box-shadow: var(--shadow-sm);
}

pre:hover .code-copy-btn,
.code-copy-btn:focus-visible {
  opacity: 1;
}

/* Touch screens have no hover, so the copy control must stay visible. */
@media (hover: none) {
  .code-copy-btn {
    opacity: 1;
  }
}

.code-copy-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: table;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: table;
}

th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: left;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}
th:last-child, td:last-child {
  border-right: none;
}
tr:hover td {
  background: var(--bg-hover);
}

/* Callouts & Translation Alerts */
.translation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin: 0 0 1.5rem 0;
  border-radius: 8px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  color: var(--callout-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.translation svg {
  flex-shrink: 0;
}

/* Interactive Examples (.example) */
.example {
  position: relative;
  margin: 1.75rem 0;
  border: 1px solid var(--code-border);
  border-radius: 8px;
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.example:focus-within,
.example:hover {
  border-color: var(--border-strong);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  user-select: none;
  vertical-align: middle;
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: var(--example-shelf);
  border-bottom: 1px solid var(--code-border);
  font-size: 12px;
  color: var(--example-title);
  min-height: 36px;
  box-sizing: border-box;
}

.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Plus Jakarta Sans", var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--example-title);
}

.example-terminal-icon {
  color: var(--example-primary);
  width: 16px;
  height: 16px;
  font-size: 16px;
  flex-shrink: 0;
}

.example-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: var(--example-action-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  box-sizing: border-box;
}

.example-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--example-muted);
  transition: background-color 0.15s, color 0.15s;
  box-sizing: border-box;
}

.example-action-btn:hover {
  background: var(--bg-hover);
  color: var(--example-title);
}

.example-run-btn {
  color: var(--example-primary);
}

.example-run-btn:hover {
  color: var(--example-primary);
}

.example-reset-btn {
  color: var(--example-muted);
}

.example-reset-btn:hover {
  color: var(--example-title);
}

.example-copy-btn {
  color: var(--example-muted);
}

.example-copy-btn:hover {
  color: var(--example-title);
}

.example-copy-btn.copied {
  color: #10b981;
}

.example-action-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border-subtle);
  margin: 0;
}

.example-fallback {
  padding: 0;
  margin: 0;
  background: transparent;
}

.example-content {
  display: flex;
  align-items: stretch;
  padding: 8px 0;
  background: transparent;
  min-height: 44px;
}

.example-gutter {
  display: flex;
  flex-direction: column;
  min-width: 28px;
  text-align: right;
  padding: 0 8px 0 6px;
  border-right: 1px solid var(--code-border);
  color: var(--text-muted);
  opacity: 0.6;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
  user-select: none;
  flex-shrink: 0;
}

.example-code-pane {
  flex: 1;
  overflow-x: auto;
  padding: 0 12px;
}

.example-code-pane pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
}

.example-code-pane code {
  background: transparent;
  padding: 0;
  border: none;
  color: var(--text-primary);
}

.example-host {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.example.is-embedded {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.example-error {
  padding: 10px 14px;
  margin: 0;
  font-size: 0.85rem;
  background: var(--callout-bg);
  border-top: 1px solid var(--callout-border);
  color: var(--callout-text);
}

/* Previous / Next Pagination Cards */
.previous-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.prev-next-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg-surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prev-next-card.next {
  justify-content: flex-end;
  text-align: right;
}

.prev-next-card:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-direction {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.card-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.15s;
}

.prev-next-card:hover .card-title {
  color: var(--accent);
}

.card-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
}

.prev-next-card:hover .card-arrow {
  color: var(--accent);
}

.prev-next-card.prev:hover .card-arrow {
  transform: translateX(-3px);
}

.prev-next-card.next:hover .card-arrow {
  transform: translateX(3px);
}

.card-spacer {
  display: block;
}

/* Table of Contents Rail (Right Sidebar) */
aside.toc-rail {
  grid-column: 3;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 24px 0 32px 0;
}

.toc-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--border-subtle);
}

.toc-link {
  display: block;
  padding: 4px 0 4px 14px;
  margin-left: -1px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.toc-link.toc-depth-3 {
  padding-left: 26px;
  font-size: 0.8rem;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.drawer-backdrop {
  display: none;
}

/* Responsive & Adaptive Breakpoints */
@media (max-width: 1160px) {
  .layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
  aside.toc-rail {
    display: none;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0 16px;
  }
  .header-left,
  .brand {
    min-width: 0;
  }
  .brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .version-badge {
    display: none;
  }
}

@media (max-width: 840px) {
  .menu-toggle {
    display: flex;
  }
  .layout {
    display: block;
    padding: var(--header-height) 16px 0 16px;
  }

  aside.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 60;
    background: var(--bg-surface);
    padding: 20px 16px;
    border-right: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  }

  body.nav-open aside.sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
  }

  body.nav-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  main {
    max-width: 100%;
    padding: 20px 0 48px 0;
  }

  .previous-next {
    grid-template-columns: 1fr;
  }

  .prev-next-card.next {
    text-align: left;
    justify-content: space-between;
  }
  .prev-next-card.prev {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  header,
  aside.sidebar,
  aside.toc-rail,
  .code-copy-btn,
  .previous-next,
  .search-hint,
  .drawer-backdrop {
    display: none !important;
  }

  .layout {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  pre, .example, blockquote {
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Wilang Promotional Landing Page Styles
   ========================================================================== */

.landing-page {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  display: block;
  height: auto;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s, border-color 0.2s;
}

[data-theme="dark"] .landing-nav {
  background: rgba(9, 9, 11, 0.85);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.landing-nav-links a:hover {
  color: var(--accent);
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.landing-btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 12px var(--accent-glow);
}

.landing-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.landing-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong);
}

.landing-btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-1px);
}

.landing-btn-lg {
  padding: 13px 26px;
  font-size: 1.0625rem;
  border-radius: 10px;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Icons */
.theme-toggle-btn .dark-icon { display: none; }
.theme-toggle-btn .light-icon { display: inline-block; }
[data-theme="dark"] .theme-toggle-btn .dark-icon { display: inline-block; }
[data-theme="dark"] .theme-toggle-btn .light-icon { display: none; }

/* Main Content */
.landing-main {
  max-width: none;
  width: 100%;
  padding: 0;
  flex: 1;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.landing-hero {
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-pills span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Showcase Window Preview */
.landing-showcase {
  padding: 40px 24px 80px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
}

[data-theme="dark"] .preview-window {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.1);
}

.preview-titlebar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.preview-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}

.preview-sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  font-size: 0.8125rem;
}

.preview-sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 8px;
}

.preview-sidebar-item {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.preview-sidebar-item.active {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}

.preview-editor {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 28px 36px;
  background: var(--bg-surface);
}

.preview-cell-markdown {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-cell-markdown h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-cell-markdown p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.preview-cell-row {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.preview-cell-gutter {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
  min-width: 14px;
}

.preview-cell-input {
  min-width: 0;
  flex: 1;
  color: var(--text-primary);
}

.preview-cell-arrow {
  color: var(--accent);
  font-weight: 700;
}

.preview-cell-result {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.preview-slider-box {
  flex-wrap: wrap;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
}

.preview-slider-box label {
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.preview-slider-box input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.preview-plot-box {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}

.preview-plot-svg {
  width: 100%;
  height: 140px;
}

.preview-caption {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Feature Pillars Grid */
.landing-pillars {
  padding: 80px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Syntax Showcase */
.landing-syntax {
  padding: 80px 24px;
}

.syntax-container {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.syntax-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.syntax-tab-btn {
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.syntax-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-surface);
}

.syntax-pane {
  display: none;
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.syntax-pane.active {
  display: block;
}

.syntax-line {
  flex-wrap: wrap;
  gap: 8px 20px;
  overflow-wrap: anywhere;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.syntax-code {
  color: var(--text-primary);
}

.syntax-result {
  color: var(--accent);
  font-weight: 600;
}

.syntax-comment {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* Comparison Table */
.landing-comparison {
  padding: 80px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-wrapper {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}

.check-yes { color: #10b981; font-weight: 700; }
.check-partial { color: #f59e0b; font-weight: 700; }
.check-no { color: #ef4444; font-weight: 700; }

/* Call To Action Banner */
.landing-cta-banner {
  padding: 90px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
}

.cta-box {
  max-width: 780px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.cta-box p {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.landing-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 32px;
  font-size: 0.875rem;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 860px) {
  .landing-nav-links {
    display: none;
  }
  .preview-body {
    grid-template-columns: 1fr;
  }
  .preview-sidebar {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .landing-nav-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .landing-nav-right {
    margin-left: auto;
  }
  .window-title {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .preview-editor {
    padding: 18px;
  }
  .landing-btn-lg {
    width: 100%;
  }
}


/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */

body.privacy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-primary);
}

body.privacy-page main.privacy-policy {
  grid-column: auto;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
  flex: 1;
  box-sizing: border-box;
}

body.privacy-page main.privacy-policy h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

body.privacy-page main.privacy-policy > p:first-of-type em {
  display: inline-block;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.privacy-policy-footer {
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-policy-footer strong {
  color: var(--text-primary);
  font-size: 1rem;
}

/* ==========================================================================
   Changelog Page
   ========================================================================== */

body.changelog-page main.changelog-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 2.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

body.changelog-page main.changelog-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

body.changelog-page main.changelog-content ul {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

body.changelog-page main.changelog-content li {
  margin: 6px 0;
}
