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

:root {
    --font-disp: "Unbounded", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    --accent: #6366f1;
    --accent-strong: #818cf8;
    --accent-soft: rgba(99, 102, 241, 0.14);
    --bg-body: #0b0d12;
    --bg-container: #11151d;
    --bg-elevated: #161b26;
    --shadow: rgba(0, 0, 0, 0.55);
    --text: #e7e9ee;
    --text-soft: #a7adbb;
    --text-muted: #7d8494;
    --text-faint: #5b6270;
    --heading: #f4f6fa;
    --model: #f4f6fa;
    --link: #a5aaf5;
    --link-hover: #c7cbfb;
    --border: #1e2430;
    --border-strong: #2a3141;
    --code-inline-bg: #1a202c;
    --code-inline-text: #dfe3ec;
    --pre-bg: #0d1117;
    --pre-text: #dfe3ec;
    --code-header-bg: #161b26;
    --code-header-text: #7d8494;
    --thead-bg: #141a24;
    --th-border: #2a3141;
    --td-border: #1e2430;
    --blockquote-border: #6366f1;
    --blockquote-bg: #121722;
    --blockquote-text: #c3c8d4;
    --badge-bg: #1b2230;
    --badge-text: #c3c8d4;
    --badge-green-bg: #12261a;
    --badge-green-text: #7ee0a3;
    --badge-blue-bg: #141b30;
    --badge-blue-text: #93a3f5;
    --env-bg: #1a202c;
    --anchor: #7d8494;
    --anchor-hover: #e7e9ee;
    --table-shadow: rgba(0, 0, 0, 0.35);
    --select-bg: #11151d;
    --select-text: #e7e9ee;
    --select-border: #2a3141;
}

html[data-theme="monokai"] {
    --accent: #f472b6;
    --accent-strong: #f9a8d4;
    --accent-soft: rgba(244, 114, 182, 0.14);
    --bg-body: #1e1f1c;
    --bg-container: #262723;
    --bg-elevated: #2e2f2a;
    --shadow: rgba(0, 0, 0, 0.4);
    --text: #f3f2ec;
    --text-soft: #cfcdc3;
    --text-muted: #a09d92;
    --text-faint: #75715e;
    --heading: #f3f2ec;
    --model: #f3f2ec;
    --link: #f9a8d4;
    --link-hover: #fbcfe8;
    --border: #35362f;
    --border-strong: #45463d;
    --code-inline-bg: #30312b;
    --code-inline-text: #f3f2ec;
    --pre-bg: #1a1b18;
    --pre-text: #f3f2ec;
    --code-header-bg: #30312b;
    --code-header-text: #a09d92;
    --thead-bg: #30312b;
    --th-border: #45463d;
    --td-border: #35362f;
    --blockquote-bg: #2c2d28;
    --blockquote-text: #cfcdc3;
    --badge-bg: #35362f;
    --badge-text: #f3f2ec;
    --badge-blue-bg: #3a2b36;
    --badge-blue-text: #f9a8d4;
    --env-bg: #30312b;
    --anchor: #75715e;
    --anchor-hover: #f3f2ec;
    --select-bg: #262723;
    --select-text: #f3f2ec;
    --select-border: #45463d;
}

html[data-theme="hacker"] {
    --accent: #10b981;
    --accent-strong: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.14);
    --bg-body: #0a0e0a;
    --bg-container: #101610;
    --bg-elevated: #141b14;
    --shadow: rgba(0, 0, 0, 0.6);
    --text: #b8e8b8;
    --text-soft: #7fd68f;
    --text-muted: #5fae6f;
    --text-faint: #3f7a4f;
    --heading: #d0ffd0;
    --model: #d0ffd0;
    --link: #4fd1a5;
    --link-hover: #86efac;
    --border: #1c3a24;
    --border-strong: #2a5a38;
    --code-inline-bg: #12291a;
    --code-inline-text: #b8e8b8;
    --pre-bg: #050a05;
    --pre-text: #a0e8a0;
    --code-header-bg: #12301d;
    --code-header-text: #3ddc6e;
    --thead-bg: #0f2617;
    --th-border: #2a5a38;
    --td-border: #1c3a24;
    --blockquote-border: #10b981;
    --blockquote-bg: #0d1f12;
    --blockquote-text: #7fd68f;
    --badge-bg: #12301d;
    --badge-text: #7fd68f;
    --badge-green-bg: #0f2617;
    --badge-green-text: #3ddc6e;
    --badge-blue-bg: #0c241c;
    --badge-blue-text: #4fd1a5;
    --env-bg: #12301d;
    --anchor: #3f7a4f;
    --anchor-hover: #4fd1a5;
    --table-shadow: rgba(0, 0, 0, 0.5);
    --select-bg: #101610;
    --select-text: #b8e8b8;
    --select-border: #2a5a38;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 85% -10%, var(--accent-soft), transparent 60%),
        radial-gradient(760px 480px at -10% 105%, var(--accent-soft), transparent 60%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.16;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
}

@keyframes click-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@keyframes logo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes footer-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expand-hr {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

::-webkit-scrollbar-track {
    background: transparent;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    border-bottom: none;
    transition: transform 0.2s ease;
}

.brand:hover {
    border-bottom: none;
    transform: translateY(-1px);
}

.brand-logo {
    width: 30px;
    height: 30px;
    display: block;
    filter: drop-shadow(0 2px 8px var(--accent-soft));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-logo {
    animation: logo-spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--heading);
    transition: color 0.2s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .brand-logo {
        animation: none !important;
    }
}

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

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-family: inherit;
    transition: background-color 0.15s, color 0.15s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn:active {
    animation: click-bounce 0.2s ease;
}

.lang-btn.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.9rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    color: var(--heading);
}

h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.7rem;
    margin-bottom: 0.4rem;
}

h2 {
    font-size: 1.32rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.06rem;
    margin-top: 1.6rem;
}

h4 {
    font-size: 0.98rem;
    margin-top: 1.3rem;
}

h2[id],
h3[id],
h4[id] {
    scroll-margin-top: 80px;
    position: relative;
    cursor: default;
}

h2[id]:hover::after,
h3[id]:hover::after,
h4[id]:hover::after {
    content: '#';
    position: absolute;
    left: -1.3em;
    color: var(--accent);
    font-weight: 400;
    opacity: 0.5;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

a:hover {
    border-bottom-color: var(--link-hover);
    color: var(--link-hover);
}

strong {
    font-weight: 650;
    color: var(--heading);
}

code {
    font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    font-size: 0.875em;
    background: var(--code-inline-bg);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    color: var(--code-inline-text);
    white-space: normal;
    overflow-wrap: anywhere;
}

pre {
    background: var(--pre-bg);
    color: var(--pre-text);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 1.1rem 0;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    white-space: pre;
    word-break: normal;
    border: 1px solid var(--border);
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}

ul,
ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

li>ul,
li>ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.1rem 0;
    font-size: 0.84rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--table-shadow);
}

thead {
    background: var(--thead-bg);
}

th {
    text-align: left;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    border-bottom: 2px solid var(--th-border);
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--td-border);
    vertical-align: top;
}

tbody tr {
    transition: background-color 0.15s;
}

tbody tr:hover td {
    background: color-mix(in srgb, var(--text) 3%, transparent);
}

tr:last-child td {
    border-bottom: none;
}

blockquote {
    border-left: 3px solid var(--blockquote-border);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: var(--blockquote-bg);
    border-radius: 0 10px 10px 0;
    color: var(--blockquote-text);
}

blockquote p:last-child {
    margin-bottom: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
    animation: expand-hr 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    transform-origin: center;
}

.footer-note {
    color: var(--text-faint);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1.75rem;
    animation: footer-fade 0.4s ease 0.2s both;
}

.copy-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 9px;
    padding: 0.42rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.15s;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--link-hover);
    transform: translateY(-1px);
}

.copy-btn:active {
    animation: click-bounce 0.25s ease;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.05rem;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--link-hover);
    transform: translateY(-1px);
}

.btn:active {
    animation: click-bounce 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
    color: #fff;
    border-color: var(--accent-strong);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

:root {
    --l-bg: #06070c;
    --l-surface: #0d1119;
    --l-surface-2: #121726;
    --l-border: rgba(255, 255, 255, 0.08);
    --l-border-strong: rgba(255, 255, 255, 0.16);
    --l-text: #e9edf5;
    --l-muted: #9aa3b5;
    --l-faint: #5d6577;
    --l-accent: #6c7bff;
    --l-accent-2: #22d3ee;
    --l-grad: linear-gradient(120deg, #6c7bff 0%, #22d3ee 100%);
    --l-green: #34d399;
    --l-red: #ff5f56;
    --l-amber: #f5b04c;
}

.landing .bg-grid {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background-image:
        linear-gradient(var(--l-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--l-border) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 0%, transparent 78%);
}

.landing .bg-glow {
    position: fixed; z-index: -2; pointer-events: none;
    border-radius: 50%; filter: blur(110px); opacity: 0.5;
}
.landing .bg-glow-a { width: 640px; height: 640px; top: -220px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(108,123,255,0.55), transparent 65%); }
.landing .bg-glow-b { width: 520px; height: 520px; bottom: -180px; right: -140px; background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 65%); }

.landing .noise {
    position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.landing .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}
.landing .nav.scrolled {
    background: rgba(6, 7, 12, 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--l-border);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
.landing .nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.landing .brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; border-bottom: none; }
.landing .brand-logo { width: 32px; height: 32px; filter: drop-shadow(0 2px 10px rgba(108,123,255,0.5)); }
.landing .brand-name { font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--l-text); }
.landing .brand-accent {
    background: var(--l-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.landing .nav-links { display: flex; align-items: center; gap: 0.25rem; }
.landing .nav-links a {
    padding: 0.45rem 0.85rem; border-radius: 9px;
    color: var(--l-muted); font-size: 0.9rem; font-weight: 600;
    transition: color 0.2s, background 0.2s;
}
.landing .nav-links a:hover { color: var(--l-text); background: rgba(255,255,255,0.05); }
.landing .nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.landing .lang-switch {
    display: inline-flex; gap: 0.15rem; align-items: center;
    padding: 0.2rem; border: 1px solid var(--l-border); border-radius: 11px;
    background: rgba(255,255,255,0.04);
}
.landing .lang-btn {
    appearance: none; border: 1px solid transparent; background: transparent;
    color: var(--l-muted); border-radius: 8px; padding: 0.4rem 0.7rem;
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.landing .lang-btn:hover { color: var(--l-text); }
.landing .lang-btn.active { color: #fff; background: var(--l-grad); box-shadow: 0 6px 16px -6px rgba(108,123,255,0.7); }

.landing .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.62rem 1.15rem; border-radius: 11px;
    font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
    border: 1px solid transparent; cursor: pointer; color: var(--l-text); text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.landing .btn:hover { transform: translateY(-2px); }
.landing .btn:active { transform: translateY(0); }
.landing .btn-primary {
    background: var(--l-grad); color: #fff;
    box-shadow: 0 10px 30px -12px rgba(108,123,255,0.7);
}
.landing .btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(108,123,255,0.85); }
.landing .btn-ghost {
    background: rgba(255,255,255,0.04); color: var(--l-text);
    border-color: var(--l-border-strong);
}
.landing .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.landing .btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; border-radius: 13px; }
.landing .star-count {
    margin-left: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9em;
    color: var(--text-soft);
}
.landing .btn-icon { padding: 0.62rem 0.72rem; }

.landing .hero { padding: 9rem 1.5rem 3rem; position: relative; }
.landing .hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
}
.landing .hero-copy {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.landing .hero-badge {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--l-border-strong); background: rgba(108,123,255,0.08);
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--l-muted);
    letter-spacing: 0.04em; margin-bottom: 1.6rem;
}
.landing .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--l-green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.landing .hero-title {
    font-family: var(--font-disp); font-weight: 900;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.landing .grad-text {
    background: var(--l-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.landing .hero-sub { color: var(--l-muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2rem; margin-inline: auto; }
.landing .hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.8rem; }
.landing .hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.landing .pill {
    padding: 0.32rem 0.8rem; border-radius: 999px;
    border: 1px solid var(--l-border); background: rgba(255,255,255,0.03);
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--l-muted);
}

.landing .section { max-width: 1200px; margin: 0 auto; padding: 6.5rem 1.5rem; }
.landing .section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.landing .eyebrow {
    display: inline-block; margin-bottom: 1rem;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--l-accent-2);
}
.landing .section-title {
    font-family: var(--font-disp); font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--l-text);
}
.landing .section-sub { color: var(--l-muted); font-size: 1.02rem; }
.landing .section-note { color: var(--l-accent-2); font-size: 0.98rem; text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }

.landing .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.landing .card {
    background: var(--l-surface); border: 1px solid var(--l-border);
    border-radius: 16px; padding: 1.7rem 1.6rem; position: relative; overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.landing .card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--l-grad); opacity: 0; transition: opacity 0.25s ease;
}
.landing .card:hover { transform: translateY(-4px); border-color: var(--l-border-strong); background: var(--l-surface-2); }
.landing .card:hover::before { opacity: 1; }
.landing .card-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem; background: rgba(108,123,255,0.12);
    border: 1px solid rgba(108,123,255,0.25); color: var(--l-accent);
}
.landing .card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; color: var(--l-text); }
.landing .card p { color: var(--l-muted); font-size: 0.92rem; }

.landing code {
    font-family: var(--font-mono); font-size: 0.86em;
    background: rgba(108,123,255,0.14); color: #c9d1ff;
    padding: 0.12rem 0.4rem; border-radius: 6px; white-space: nowrap;
}

.landing .models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.landing .model-card {
    background: var(--l-surface); border: 1px solid var(--l-border);
    border-radius: 20px; padding: 2rem 2rem 1.8rem; position: relative; overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing .model-card:hover { transform: translateY(-4px); border-color: var(--l-border-strong); }
.landing .model-card::after {
    content: ""; position: absolute; top: -60px; right: -60px;
    width: 180px; height: 180px; border-radius: 50%; filter: blur(50px); opacity: 0.25;
}
.landing .model-ds::after { background: #4d6bfe; }
.landing .model-qw::after { background: var(--l-amber); }
.landing .model-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.landing .model-logo-tile {
    flex-shrink: 0; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid var(--l-border);
}
.landing .model-logo-tile img { display: block; height: 100%; width: 100%; object-fit: contain; }
.landing .model-logo-tile-qw { background: #fdfdfd; }
.landing .model-logo-tile-qw img { height: 80%; width: auto; }
.landing .model-logo-ds { display: block; flex-shrink: 0; }
.landing .model-logo-ds img { display: block; height: 30px; width: auto; max-width: 100%; }
.landing .model-head h3 { font-family: var(--font-disp); font-size: 1.15rem; font-weight: 700; color: var(--l-text); }
.landing .model-list { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.landing .model-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
    padding: 0.6rem 0.85rem; background: rgba(255,255,255,0.03);
    border: 1px solid var(--l-border); border-radius: 10px;
}
.landing .model-list code { background: transparent; padding: 0; color: var(--l-text); font-size: 0.82rem; white-space: nowrap; }
.landing .model-chip {
    font-size: 0.7rem; color: var(--l-muted); padding: 0.16rem 0.55rem; border-radius: 999px;
}

@media (max-width: 1024px) {
    .landing .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing .nav-inner {
        padding: 0.7rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .landing .nav-links {
        display: none;
    }
    .landing .nav-links a {
        padding: 0.35rem 0.65rem;
        font-size: 0.82rem;
    }
    .landing .nav-actions {
        gap: 0.4rem;
    }
    .landing .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    .landing .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.92rem;
    }
    .landing .hero {
        padding: 7rem 1rem 2rem;
    }
    .landing .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .landing .hero-sub {
        font-size: 1rem;
    }
    .landing .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
    }
    .landing .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    .landing .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .landing .models-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .landing .section {
        padding: 4rem 1rem;
    }
    .landing .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .landing .model-card {
        padding: 1.5rem 1.3rem 1.4rem;
    }
}

@media (max-width: 480px) {
    .landing .nav-inner {
        padding: 0.6rem 0.8rem;
    }
    .landing .brand-name {
        font-size: 0.95rem;
    }
    .landing .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
    .landing .btn-icon {
        padding: 0.5rem 0.6rem;
    }
    .landing .hero {
        padding: 6rem 0.8rem 1.5rem;
    }
    .landing .hero-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 1.2rem;
    }
    .landing .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        margin-bottom: 1rem;
    }
    .landing .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .landing .pill {
        padding: 0.28rem 0.7rem;
        font-size: 0.68rem;
    }
    .landing .section {
        padding: 3rem 0.8rem;
    }
    .landing .section-head {
        margin-bottom: 2.5rem;
    }
    .landing .section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .landing .section-sub {
        font-size: 0.95rem;
    }
    .landing .eyebrow {
        font-size: 0.68rem;
    }
    .landing .card {
        padding: 1.4rem 1.3rem;
    }
    .landing .card-icon {
        width: 38px;
        height: 38px;
    }
    .landing .card h3 {
        font-size: 1rem;
    }
    .landing .card p {
        font-size: 0.88rem;
    }
    .landing .model-card {
        padding: 1.3rem 1.1rem 1.2rem;
        border-radius: 16px;
    }
    .landing .model-head {
        margin-bottom: 1.2rem;
    }
    .landing .model-head h3 {
        font-size: 1.05rem;
    }
    .landing .model-logo-tile {
        width: 48px;
        height: 48px;
    }
    .landing .model-list li {
        padding: 0.5rem 0.7rem;
    }
    .landing .model-list code {
        font-size: 0.78rem;
    }
    .landing .model-chip {
        font-size: 0.65rem;
        padding: 0.14rem 0.5rem;
    }
    .landing .cta-inner {
        padding: 2.5rem 1.2rem;
    }
    .landing .cta-inner h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .landing .cta-inner p {
        font-size: 0.95rem;
    }
    .landing .cta-btns {
        flex-direction: column;
        gap: 0.7rem;
    }
    .landing .cta-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .landing .footer-inner {
        justify-content: center;
        text-align: center;
    }
    .landing .footer-links {
        justify-content: center;
    }
}

.landing .model-note { color: var(--l-faint); font-size: 0.85rem; }

.landing .code-tabs {
    max-width: 780px; margin: 0 auto;
    background: var(--l-surface); border: 1px solid var(--l-border);
    border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.landing .tab-bar {
    display: flex; gap: 0.3rem; padding: 0.55rem 0.6rem;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--l-border);
    overflow-x: auto;
}
.landing .tab {
    appearance: none; border: none; background: transparent; color: var(--l-muted);
    font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
    padding: 0.5rem 0.9rem; border-radius: 9px; cursor: pointer; white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.landing .tab:hover { color: var(--l-text); background: rgba(255,255,255,0.05); }
.landing .tab.active {
    color: #fff; background: linear-gradient(120deg, rgba(108,123,255,0.85), rgba(34,211,238,0.85));
}
.landing .code-pane { display: none; padding: 1.4rem 1.5rem 1.6rem; }
.landing .code-pane.active { display: block; animation: pane-in 0.3s ease; }
.landing .pane-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--l-faint); text-transform: uppercase; letter-spacing: 0.08em;
}
.landing .pane-head:not(:first-child) { margin-top: 1.3rem; }
.landing .copy-btn {
    appearance: none; border: 1px solid var(--l-border-strong);
    background: rgba(255,255,255,0.05); color: var(--l-muted);
    border-radius: 8px; padding: 0.32rem 0.8rem;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; cursor: pointer;
    text-transform: none; letter-spacing: 0.02em;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.landing .copy-btn:hover { color: #fff; border-color: var(--l-accent); background: rgba(108,123,255,0.15); transform: translateY(-1px); }
.landing .copy-btn.copied { color: var(--l-green); border-color: rgba(52,211,153,0.6); }
.landing .code-pane pre {
    background: #080b12; border: 1px solid var(--l-border); border-radius: 12px;
    padding: 1.1rem 1.2rem; overflow-x: auto;
    font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; color: #dbe2f0;
}
.landing .pane-note { color: var(--l-faint); font-size: 0.85rem; margin-top: 1rem; }
.landing .c-cmt { color: #5d6577; font-style: italic; }
.landing .c-kw { color: #c792ea; }
.landing .c-str { color: #7ee787; }
.landing .c-num { color: #79c0ff; }
.landing .c-fn { color: #ffa657; }

.landing .faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.landing .faq {
    background: var(--l-surface); border: 1px solid var(--l-border);
    border-radius: 14px; overflow: hidden; transition: border-color 0.2s;
}
.landing .faq[open] { border-color: var(--l-border-strong); }
.landing .faq summary {
    cursor: pointer; list-style: none; padding: 1.1rem 1.4rem;
    font-weight: 700; font-size: 1rem; color: var(--l-text);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    transition: color 0.2s;
}
.landing .faq summary::-webkit-details-marker { display: none; }
.landing .faq summary::after {
    content: "+"; font-family: var(--font-mono); font-size: 1.3rem;
    color: var(--l-accent-2); transition: transform 0.25s ease; flex-shrink: 0;
}
.landing .faq[open] summary::after { transform: rotate(45deg); }
.landing .faq summary:hover { color: var(--l-accent-2); }
.landing .faq p { padding: 0 1.4rem 1.2rem; color: var(--l-muted); font-size: 0.95rem; }

.landing .cta { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 6rem; }
.landing .cta-inner {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(150deg, rgba(108,123,255,0.18), rgba(34,211,238,0.1) 60%), var(--l-surface);
    border: 1px solid var(--l-border-strong); border-radius: 28px; padding: 4.5rem 2rem;
}
.landing .cta-inner::before {
    content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: 520px; height: 260px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(108,123,255,0.45), transparent 70%); filter: blur(60px);
}
.landing .cta-inner h2 {
    font-family: var(--font-disp); font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 0.9rem; letter-spacing: -0.02em; color: var(--l-text);
}
.landing .cta-inner p { color: var(--l-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.landing .cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

.landing .footer { border-top: 1px solid var(--l-border); padding: 2.5rem 1.5rem; }
.landing .footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.landing .footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-disp); font-weight: 700; color: var(--l-text); }
.landing .footer-brand .brand-logo { width: 26px; height: 26px; }
.landing .footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.landing .footer-links a { color: var(--l-muted); font-size: 0.9rem; transition: color 0.2s; text-decoration: none; }
.landing .footer-links a:hover { color: var(--l-text); }
.landing .footer-note { width: 100%; color: var(--l-faint); font-size: 0.8rem; text-align: center; margin-top: 1.5rem; }

.landing .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.landing .reveal.revealed { opacity: 1; transform: none; }
.landing [data-delay="1"].revealed { transition-delay: 0.08s; }
.landing [data-delay="2"].revealed { transition-delay: 0.16s; }
.landing [data-delay="3"].revealed { transition-delay: 0.24s; }
.landing [data-delay="4"].revealed { transition-delay: 0.32s; }
