@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap");
:root { --color-bg-primary: #0f1419; --color-bg-secondary: #161c24; --color-bg-tertiary: #1e262f; --color-bg-elevated: #252e3a; --color-bg-hover: #2d3845; --color-border: #2d3845; --color-border-subtle: #232c38; --color-border-focus: #3d8ab8; --color-text-primary: #e8eef4; --color-text-secondary: #a3b1c2; --color-text-tertiary: #6b7c8f; --color-text-muted: #4a5a6b; --color-accent: #4db8a8; --color-accent-hover: #5fcab8; --color-accent-subtle: rgba(77, 184, 168, 0.15); --color-warm: #d4a053; --color-warm-hover: #e0b066; --color-warm-subtle: rgba(212, 160, 83, 0.15); --color-success: #4ade80; --color-warning: #fbbf24; --color-error: #f87171; --color-info: #60a5fa; --color-code-bg: #1a2129; --color-code-border: #2a3440; --shadow-color: 0deg 0% 0%; --shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34), 0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34), 1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34); --shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36), 0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36), 2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36), 5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36); }

[data-theme="light"] { --color-bg-primary: #faf9f7; --color-bg-secondary: #f5f3f0; --color-bg-tertiary: #edeae5; --color-bg-elevated: #ffffff; --color-bg-hover: #e8e4de; --color-border: #d8d3cb; --color-border-subtle: #e8e4de; --color-border-focus: #2d7a9c; --color-text-primary: #1a1815; --color-text-secondary: #4a453d; --color-text-tertiary: #6b6560; --color-text-muted: #9a948c; --color-accent: #2d7a9c; --color-accent-hover: #1d6a8c; --color-accent-subtle: rgba(45, 122, 156, 0.1); --color-warm: #b5872e; --color-warm-hover: #9a7226; --color-warm-subtle: rgba(181, 135, 46, 0.1); --color-code-bg: #f0ede8; --color-code-border: #d8d3cb; --shadow-color: 30deg 20% 50%; }

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 1rem; line-height: 1.7; color: var(--color-text-primary); background-color: var(--color-bg-primary); min-height: 100vh; transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms cubic-bezier(0.4, 0, 0.2, 1); }

.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; padding: 0.75rem 1.5rem; background: var(--color-accent); color: var(--color-bg-primary); font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 1rem; outline: 2px solid var(--color-warm); outline-offset: 2px; }

:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }

::selection { background-color: var(--color-accent-subtle); color: var(--color-text-primary); }

h1, h2, h3, h4, h5, h6 { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-weight: 600; line-height: 1.3; color: var(--color-text-primary); letter-spacing: -0.02em; margin-top: 3rem; margin-bottom: 1rem; }
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child { margin-top: 0; }
h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor { margin-left: 0.5rem; opacity: 0; color: var(--color-text-tertiary); text-decoration: none; transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); }
h1 .anchor:hover, h2 .anchor:hover, h3 .anchor:hover, h4 .anchor:hover, h5 .anchor:hover, h6 .anchor:hover { color: var(--color-accent); }
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { opacity: 1; }

h1 { font-size: 2.5rem; font-weight: 700; }
@media (max-width: 768px) { h1 { font-size: 2rem; } }

h2 { font-size: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border-subtle); }

h3 { font-size: 1.25rem; }

h4 { font-size: 1.125rem; }

h5, h6 { font-size: 1rem; }

p { margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--color-accent-hover); }

strong, b { font-weight: 600; }

em, i { font-style: italic; }

small { font-size: 0.875rem; color: var(--color-text-secondary); }

code { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--color-code-bg); color: var(--color-warm); padding: 0.15em 0.4em; border-radius: 4px; border: 1px solid var(--color-code-border); }

pre { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; line-height: 1.6; background: var(--color-code-bg); border: 1px solid var(--color-code-border); border-radius: 12px; padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; position: relative; }
pre code { background: none; border: none; padding: 0; color: var(--color-text-primary); font-size: inherit; }
pre .copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.5rem 0.75rem; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-tertiary); font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.75rem; cursor: pointer; opacity: 0; transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1); }
pre .copy-btn:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
pre .copy-btn.copied { color: var(--color-success); }
pre:hover .copy-btn { opacity: 1; }

.highlight { background: var(--color-code-bg); border-radius: 12px; margin: 1.5rem 0; }
.highlight pre { margin: 0; border: none; background: transparent; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp, .highlight .cpf { color: #6b7c8f; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kc, .highlight .kv { color: #c792ea; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .sh, .highlight .sx { color: #c3e88d; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .mb, .highlight .mx { color: #f78c6c; }
.highlight .n, .highlight .na, .highlight .nb, .highlight .nc, .highlight .nd, .highlight .ne, .highlight .nf, .highlight .ni, .highlight .nl, .highlight .nn, .highlight .no, .highlight .nt, .highlight .nv, .highlight .nx { color: #82aaff; }
.highlight .o, .highlight .ow { color: #89ddff; }
.highlight .p { color: #89ddff; }
.highlight .err { color: #f07178; background: transparent; }
.highlight .gd { color: #f07178; }
.highlight .gi { color: #c3e88d; }
.highlight .gh, .highlight .gu { color: #89ddff; font-weight: 600; }
.highlight .sr { color: #89ddff; }
.highlight .ss { color: #ffcb6b; }

[data-theme="light"] .highlight .c, [data-theme="light"] .highlight .c1, [data-theme="light"] .highlight .cm, [data-theme="light"] .highlight .cs, [data-theme="light"] .highlight .cp, [data-theme="light"] .highlight .cpf { color: #6a7b8c; }
[data-theme="light"] .highlight .k, [data-theme="light"] .highlight .kd, [data-theme="light"] .highlight .kn, [data-theme="light"] .highlight .kp, [data-theme="light"] .highlight .kr, [data-theme="light"] .highlight .kt, [data-theme="light"] .highlight .kc, [data-theme="light"] .highlight .kv { color: #7c4dff; }
[data-theme="light"] .highlight .s, [data-theme="light"] .highlight .s1, [data-theme="light"] .highlight .s2, [data-theme="light"] .highlight .sb, [data-theme="light"] .highlight .sc, [data-theme="light"] .highlight .sd, [data-theme="light"] .highlight .sh, [data-theme="light"] .highlight .sx { color: #558b2f; }
[data-theme="light"] .highlight .m, [data-theme="light"] .highlight .mi, [data-theme="light"] .highlight .mf, [data-theme="light"] .highlight .mh, [data-theme="light"] .highlight .mo, [data-theme="light"] .highlight .mb, [data-theme="light"] .highlight .mx { color: #e65100; }
[data-theme="light"] .highlight .n, [data-theme="light"] .highlight .na, [data-theme="light"] .highlight .nb, [data-theme="light"] .highlight .nc, [data-theme="light"] .highlight .nd, [data-theme="light"] .highlight .ne, [data-theme="light"] .highlight .nf, [data-theme="light"] .highlight .ni, [data-theme="light"] .highlight .nl, [data-theme="light"] .highlight .nn, [data-theme="light"] .highlight .no, [data-theme="light"] .highlight .nt, [data-theme="light"] .highlight .nv, [data-theme="light"] .highlight .nx { color: #1565c0; }
[data-theme="light"] .highlight .o, [data-theme="light"] .highlight .ow { color: #0277bd; }
[data-theme="light"] .highlight .p { color: #37474f; }

ul, ol { margin: 1rem 0; padding-left: 2rem; }
ul li, ol li { margin-bottom: 0.5rem; }
ul li::marker, ol li::marker { color: var(--color-text-tertiary); }
ul ul, ul ol, ol ul, ol ol { margin: 0.5rem 0; }

ul { list-style-type: disc; }
ul ul { list-style-type: circle; }
ul ul ul { list-style-type: square; }

.task-list-item { list-style-type: none; margin-left: -2rem; }
.task-list-item input[type="checkbox"] { margin-right: 0.5rem; accent-color: var(--color-accent); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; }
table th, table td { padding: 0.75rem 1rem; text-align: left; border: 1px solid var(--color-border); }
table th { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--color-bg-secondary); color: var(--color-text-secondary); }
table tr:nth-child(even) { background: var(--color-bg-tertiary); }
table tr:hover { background: var(--color-bg-hover); }

.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; border: 1px solid var(--color-border); }
.table-wrapper table { margin: 0; }
.table-wrapper table th:first-child, .table-wrapper table td:first-child { border-left: none; }
.table-wrapper table th:last-child, .table-wrapper table td:last-child { border-right: none; }
.table-wrapper table tr:first-child th, .table-wrapper table tr:first-child td { border-top: none; }
.table-wrapper table tr:last-child th, .table-wrapper table tr:last-child td { border-bottom: none; }

blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--color-warm); background: var(--color-warm-subtle); border-radius: 0 8px 8px 0; color: var(--color-text-secondary); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }
blockquote code { background: var(--color-bg-elevated); }

.callout { margin: 1.5rem 0; padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid var(--color-border); }
.callout-title { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.callout-info { border-color: var(--color-info); background: rgba(96, 165, 250, 0.1); }
.callout-info .callout-title { color: var(--color-info); }
.callout-warning { border-color: var(--color-warning); background: rgba(251, 191, 36, 0.1); }
.callout-warning .callout-title { color: var(--color-warning); }
.callout-error { border-color: var(--color-error); background: rgba(248, 113, 113, 0.1); }
.callout-error .callout-title { color: var(--color-error); }
.callout-success { border-color: var(--color-success); background: rgba(74, 222, 128, 0.1); }
.callout-success .callout-title { color: var(--color-success); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg-primary); }
.btn-primary:hover:not(:disabled) { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text-primary); }
.btn-secondary:hover:not(:disabled) { background: var(--color-bg-hover); border-color: var(--color-text-tertiary); }
.btn-ghost { background: transparent; color: var(--color-text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--color-bg-hover); color: var(--color-text-primary); }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.card { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.5rem; transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); }
.card:hover { border-color: var(--color-border-focus); box-shadow: var(--shadow-elevation-medium); transform: translateY(-2px); }
.card-title { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--color-text-primary); }
.card-description { color: var(--color-text-secondary); font-size: 0.875rem; line-height: 1.6; }
.card-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-subtle); border-radius: 8px; margin-bottom: 1rem; color: var(--color-accent); font-size: 1.25rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

.site-header { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: var(--color-bg-secondary); border-bottom: 1px solid var(--color-border); z-index: 100; backdrop-filter: blur(12px); }
.site-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%); pointer-events: none; }
.site-header-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; position: relative; }

.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-text-primary); font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.site-logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warm) 100%); border-radius: 8px; font-size: 1.125rem; }
.site-logo:hover { color: var(--color-accent); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
@media (max-width: 768px) { .site-nav { display: none; } }
.site-nav-link { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; color: var(--color-text-secondary); text-decoration: none; transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.site-nav-link:hover, .site-nav-link.active { color: var(--color-text-primary); }
.site-nav-link.active { position: relative; }
.site-nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--color-accent); border-radius: 9999px; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-secondary); cursor: pointer; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.theme-toggle:hover { background: var(--color-bg-hover); color: var(--color-warm); border-color: var(--color-warm); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: none; color: var(--color-text-primary); cursor: pointer; }
@media (max-width: 768px) { .mobile-menu-toggle { display: flex; } }
.mobile-menu-toggle .hamburger { width: 20px; height: 14px; position: relative; }
.mobile-menu-toggle .hamburger span { display: block; position: absolute; width: 100%; height: 2px; background: currentColor; border-radius: 9999px; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu-toggle .hamburger span:nth-child(1) { top: 0; }
.mobile-menu-toggle .hamburger span:nth-child(2) { top: 6px; }
.mobile-menu-toggle .hamburger span:nth-child(3) { top: 12px; }
.mobile-menu-toggle.active .hamburger span:nth-child(1) { transform: rotate(45deg); top: 6px; }
.mobile-menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger span:nth-child(3) { transform: rotate(-45deg); top: 6px; }

.sidebar { position: fixed; top: 64px; left: 0; bottom: 0; width: 280px; background: var(--color-bg-secondary); border-right: 1px solid var(--color-border); padding: 1.5rem; overflow-y: auto; z-index: 50; transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }
@media (max-width: 1024px) { .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); } }

.sidebar-overlay { display: none; position: fixed; inset: 0; top: 64px; background: rgba(0, 0, 0, 0.5); z-index: 40; opacity: 0; transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 1024px) { .sidebar-overlay.visible { display: block; opacity: 1; } }

.sidebar-section { margin-bottom: 2rem; }
.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-heading { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-tertiary); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-heading .icon { font-size: 0.875rem; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a { display: block; padding: 0.5rem 0.75rem; margin: 0 -0.75rem; font-size: 0.875rem; color: var(--color-text-secondary); text-decoration: none; border-radius: 8px; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-nav a:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
.sidebar-nav a.active { background: var(--color-accent-subtle); color: var(--color-accent); font-weight: 500; }

.site-main { margin-left: 280px; padding-top: 64px; min-height: 100vh; }
@media (max-width: 1024px) { .site-main { margin-left: 0; } }

.content { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; animation: fadeIn 0.4s ease-out; }
@media (max-width: 768px) { .content { padding: 1.5rem 1rem; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); } }
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--color-text-tertiary); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--color-text-tertiary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-text-primary); }
.breadcrumbs .separator { color: var(--color-text-muted); }
.breadcrumbs .current { color: var(--color-text-secondary); }

.site-footer { margin-left: 280px; padding: 3rem 1.5rem; border-top: 1px solid var(--color-border); background: var(--color-bg-secondary); }
@media (max-width: 1024px) { .site-footer { margin-left: 0; } }

.footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-logo { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-weight: 700; font-size: 1.125rem; color: var(--color-text-primary); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-links a { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.875rem; color: var(--color-text-tertiary); text-decoration: none; }
.footer-links a:hover { color: var(--color-text-primary); }

.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-subtle); font-size: 0.875rem; color: var(--color-text-tertiary); }
.footer-meta a { color: var(--color-text-tertiary); }
.footer-meta a:hover { color: var(--color-accent); }

.hero { text-align: center; padding: 6rem 0; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 0%, var(--color-accent-subtle) 0%, transparent 50%); pointer-events: none; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-warm-subtle); border: 1px solid rgba(212, 160, 83, 0.3); border-radius: 9999px; font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 0.75rem; font-weight: 500; color: var(--color-warm); margin-bottom: 1.5rem; animation: fadeIn 0.5s ease-out 0.1s both; }

.hero-title { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 50%, var(--color-warm) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeIn 0.5s ease-out 0.2s both; }
@media (max-width: 768px) { .hero-title { font-size: 2.5rem; } }

.hero-description { font-size: 1.25rem; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto 2rem; line-height: 1.6; animation: fadeIn 0.5s ease-out 0.3s both; }
@media (max-width: 768px) { .hero-description { font-size: 1.125rem; } }

.hero-demo { margin: 2rem auto 3rem; max-width: 800px; animation: fadeIn 0.6s ease-out 0.35s both; }
.hero-demo .demo-gif { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--color-border); box-shadow: var(--shadow-elevation-medium); }

.demo-container { margin: 2rem 0; }
.demo-container .demo-gif { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--color-border); box-shadow: var(--shadow-elevation-low); }
.demo-container .demo-caption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-tertiary); text-align: center; }

.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; animation: fadeIn 0.5s ease-out 0.4s both; }

.demos { padding: 4rem 0; border-bottom: 1px solid var(--color-border-subtle); }

.section-title { text-align: center; font-size: 1.5rem; margin-bottom: 3rem; color: var(--color-text-primary); }

.demo-full { max-width: 900px; margin: 0 auto 3rem; text-align: center; }
.demo-full:last-child { margin-bottom: 0; }
.demo-full h3 { font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--color-accent); }
.demo-full p { font-size: 1rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; }
.demo-full img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--color-border); box-shadow: var(--shadow-elevation-medium); }

.features { padding: 4rem 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.feature-card { padding: 2rem; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: 12px; transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); }
.feature-card:hover { border-color: var(--color-accent); transform: translateY(-4px); box-shadow: var(--shadow-elevation-medium); }
.feature-card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-subtle); border-radius: 8px; margin-bottom: 1rem; font-size: 1.5rem; }
.feature-card-title { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-primary); }
.feature-card-description { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.6; }

.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 64px); text-align: center; padding: 1.5rem; }

.error-code { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; font-size: 8rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--color-text-tertiary) 0%, var(--color-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }
@media (max-width: 768px) { .error-code { font-size: 6rem; } }

.error-message { font-size: 1.25rem; color: var(--color-text-secondary); margin-bottom: 2rem; }

.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; }

.text-center { text-align: center; }

.text-left { text-align: left; }

.text-right { text-align: right; }

.mt-0 { margin-top: 0; }

.mb-0 { margin-bottom: 0; }

.hidden { display: none !important; }

@media (max-width: 768px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
@media print { *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  .site-header, .sidebar, .site-footer, .theme-toggle, .mobile-menu-toggle, .copy-btn, .skip-link { display: none !important; }
  .site-main { margin-left: 0; padding-top: 0; }
  .content { max-width: none; padding: 0; }
  a { text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  @page { margin: 2cm; } }
