/* Neo tech modal */
.neo-modal[hidden] { display: none !important; }
.neo-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; }
.neo-bg { position: absolute; inset: 0; overflow: hidden; background: rgba(5,9,14,0.7); backdrop-filter: blur(10px) saturate(120%); }
.neo-bg--page { position: fixed; z-index: -1; }
.neo-grid { position: absolute; inset: -50% -50% 0 -50%; background-image: linear-gradient(rgba(110,231,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(110,231,255,0.08) 1px, transparent 1px); background-size: 40px 40px; transform: perspective(600px) rotateX(60deg) translateY(10%); opacity: .5; animation: gridMove 12s linear infinite; }
@keyframes gridMove { to { transform: perspective(600px) rotateX(60deg) translateY(-10%); } }
.neo-scan { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.16) 50%, rgba(139,92,246,0) 100%); mix-blend-mode: screen; animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-20%);} 50% { transform: translateY(20%);} }

.neo-panel { position: relative; width: min(960px, 92vw); border-radius: 16px; padding: 16px; background: linear-gradient(rgba(10,14,20,0.85), rgba(10,14,20,0.9)) padding-box, linear-gradient(90deg, rgba(110,231,255,0.4), rgba(139,92,246,0.4)) border-box; border: 1px solid transparent; box-shadow: 0 18px 64px rgba(0,0,0,0.5); transform: scale(0.96); opacity: 0; animation: panelIn .28s ease forwards; }
@keyframes panelIn { to { transform: scale(1); opacity: 1; } }
.neo-header { display: flex; justify-content: space-between; align-items: center; }
.neo-chip { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; color: #e6f0ff; background: rgba(110,231,255,0.16); border: 1px solid rgba(110,231,255,0.36); margin-right: 8px; }
.neo-h { margin: 4px 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neo-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #e6f0ff; cursor: pointer; }
.neo-close:hover { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.36); }
.neo-query { color: #cfe6ff; margin: 4px 0 10px; font-size: 13px; opacity: .9; }
.neo-body { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px; position: relative; overflow: hidden; }
.neo-skeleton .s-row { height: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06)); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; border-radius: 6px; margin: 6px 0; }
.neo-skeleton .s-row.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
.neo-block { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.03); margin: 8px 0; transform: translateY(6px); opacity: 0; animation: blockIn .35s ease forwards; }
@keyframes blockIn { to { transform: translateY(0); opacity: 1; } }
.neo-badge { display: inline-block; padding: 3px 8px; font-size: 11px; border-radius: 999px; background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.36); color: #e6f0ff; margin-left: 6px; }
.neo-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-mask-size: 80% 80%; mask-size: 80% 80%; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.neo-icon.sources { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M4 6h16v4H4zm0 6h10v6H4z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M4 6h16v4H4zm0 6h10v6H4z"/></svg>'); }
.neo-icon.point { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>'); }
.neo-icon.meta { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="%23000"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="%23000"/></svg>'); }
.answer .ans-loading { display: grid; place-items: center; gap: 10px; padding: 24px; color: #cfe6ff; }
.ans-spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ans-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px; }
.ans-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ans-model { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 11px; color: #e6f0ff; background: rgba(110,231,255,0.16); border: 1px solid rgba(110,231,255,0.36); }
.ans-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.ans-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; }
.ans-list { margin: 6px 0; padding-left: 18px; color: #b9c7dd; }
.ans-metadata { display: grid; gap: 6px; font-size: 12px; color: #c0cbe0; }
@media (max-width: 920px) { .ans-grid { grid-template-columns: 1fr; } }
.n-hero { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; }
.n-hero__text { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; }
.n-hero canvas { background: radial-gradient(280px 160px at 60% 40%, rgba(110,231,255,0.14), transparent), radial-gradient(220px 140px at 30% 60%, rgba(139,92,246,0.14), transparent); }
.dev-row {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12px;
    align-items: start;
    margin: 10px 0 14px;
}

.dev-col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: #e6f0ff;
    background: rgba(110, 231, 255, 0.16);
    border: 1px solid rgba(110, 231, 255, 0.36);
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.dev-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
}

@media (max-width: 920px) {
    .dev-row {
        grid-template-columns: 1fr;
    }

    .dev-grid {
        grid-template-columns: 1fr;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

.steps--horizontal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 6px 0 12px;
}
.steps--vertical { display: grid; gap: 10px; margin: 6px 0 12px; }
.steps--vertical .step { display: grid; grid-template-columns: 32px 1fr; text-align: left; align-items: center; }
.steps--vertical .step .step__ico { justify-self: center; }

.step {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform .2s ease;
}

.step:hover {
    transform: translateY(-2px);
}

.step b {
    display: block;
    margin-top: 6px;
    color: #e6f0ff;
}

.step i {
    display: block;
    color: #b9c7dd;
    font-style: normal;
    font-size: 12px;
}

.step.is-active {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5) inset;
}

.step.is-done {
    opacity: 0.9;
}

.s-callouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.arrow-list { list-style: none; padding-left: 0; margin: 6px 0 12px; }
.arrow-list li { position: relative; padding-left: 18px; margin: 6px 0; }
.arrow-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; transform: rotate(45deg); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }

.callout {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.callout__ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M5 6h14M5 12h10M5 18h6"/></svg>') center/70% no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M5 6h14M5 12h10M5 18h6"/></svg>') center/70% no-repeat;
}

.callout__ico--anti {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M4 12l4 4 12-12"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M4 12l4 4 12-12"/></svg>');
}

.callout__ico--shield {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z"/></svg>') center/70% no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z"/></svg>') center/70% no-repeat;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumb {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.thumb__img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.thumb__svg {
    display: block;
    width: 100%;
    height: 120px;
}

.thumb figcaption {
    padding: 8px;
    color: #cfe6ff;
    font-size: 12px;
}

@media (max-width: 920px) {
    .steps--horizontal {
        grid-template-columns: 1fr 1fr;
    }

    .s-callouts {
        grid-template-columns: 1fr;
    }

    .thumbs {
        grid-template-columns: 1fr;
    }
}

.flow-diagram {
    width: 100%;
    height: auto;
    margin: 8px 0 14px;
}

.flow-diagram .edge--anim {
    stroke-dasharray: 60 200;
    animation: flow 2.4s linear infinite;
}

@keyframes flow {
    to {
        stroke-dashoffset: -260;
    }
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.icon-item {
    text-align: center;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.icon-item em {
    display: block;
    margin-top: 6px;
    color: #cfe6ff;
    font-style: normal;
    font-size: 12px;
}

.ico {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 6px;
    animation: pulse 2s ease-in-out infinite;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 90% 90%;
    mask-size: 90% 90%;
}

/* filled masks to ensure full display */
.ico--planner {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="3" fill="%23000"/><rect x="4" y="10.5" width="12" height="3" fill="%23000"/><rect x="4" y="16" width="8" height="3" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="3" fill="%23000"/><rect x="4" y="10.5" width="12" height="3" fill="%23000"/><rect x="4" y="16" width="8" height="3" fill="%23000"/></svg>');
}

.ico--search {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="10" cy="10" r="6" fill="%23000"/><rect x="14" y="14" width="7" height="3" rx="1.5" transform="rotate(45 14 14)" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="10" cy="10" r="6" fill="%23000"/><rect x="14" y="14" width="7" height="3" rx="1.5" transform="rotate(45 14 14)" fill="%23000"/></svg>');
}

.ico--rag {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="4" y="6" width="16" height="3" fill="%23000"/><rect x="6" y="11" width="12" height="3" fill="%23000"/><rect x="8" y="16" width="8" height="3" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="4" y="6" width="16" height="3" fill="%23000"/><rect x="6" y="11" width="12" height="3" fill="%23000"/><rect x="8" y="16" width="8" height="3" fill="%23000"/></svg>');
}

.ico--rank {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="6" y="12" width="3" height="6" fill="%23000"/><rect x="11" y="9" width="3" height="9" fill="%23000"/><rect x="16" y="6" width="3" height="12" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="6" y="12" width="3" height="6" fill="%23000"/><rect x="11" y="9" width="3" height="9" fill="%23000"/><rect x="16" y="6" width="3" height="12" fill="%23000"/></svg>');
}

.ico--proof {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="5" y="4" width="12" height="16" rx="2" fill="%23000"/><path d="M9 12l2 2 4-4" fill="none" stroke="%23000" stroke-width="3" stroke-linecap="round"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="5" y="4" width="12" height="16" rx="2" fill="%23000"/><path d="M9 12l2 2 4-4" fill="none" stroke="%23000" stroke-width="3" stroke-linecap="round"/></svg>');
}

.ico--privacy {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z" fill="%23000"/></svg>');
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 920px) {
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.search-wrap {
    position: relative;
    display: grid;
    place-items: center;
}

.model-menu[hidden] {
    display: none !important;
}

.model-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: min(78vw, 980px);
    padding: 10px 12px;
    background:
        linear-gradient(rgba(12, 16, 24, 0.7), rgba(12, 16, 24, 0.7)) padding-box,
        linear-gradient(90deg, rgba(110, 231, 255, 0.5), rgba(139, 92, 246, 0.5)) border-box;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px) saturate(120%);
}

.model-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e6f0ff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

.model-chip__ico {
    display: inline-grid;
    place-items: center;
    color: #9fc7ff;
}

.model-chip:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.36);
}

.model-chip.is-active {
    background: rgba(139, 92, 246, 0.28);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.4);
}

:root {
    --bg: #070a0f;
    --fg: #e6f0ff;
    --muted: #93a2b6;
    --accent: #6ee7ff;
    --accent-2: #8b5cf6;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    background: var(--bg);
    color: var(--fg);
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#webgl-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: block;
}

.scroller {
    scroll-behavior: smooth;
}

.scene {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    padding: 6vh 6vw;
}

.scene--hero {
    isolation: isolate;
}

.hero__center {
    text-align: center;
    transform: translateY(-10vh);
}

.brand {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(48px, 11vw, 168px);
    line-height: 0.95;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tag {
    color: var(--muted);
    margin-top: 4px;
    font-size: clamp(14px, 2vw, 18px);
}
.hero-chips { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; color: #e6f0ff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(6px); animation: chipIn .6s ease both; }
@keyframes chipIn { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chip-ico { width: 14px; height: 14px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); display: inline-block; border-radius: 3px; -webkit-mask-size: 90% 90%; mask-size: 90% 90%; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ico--check { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"/></svg>'); }
.ico--shield { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 3l8 4v5c0 4.4-3.2 8.4-8 9-4.8-.6-8-4.6-8-9V7l8-4z"/></svg>'); }
.ico--layers { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 4l8 4-8 4-8-4 8-4Zm0 6l8 4-8 4-8-4 8-4Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 4l8 4-8 4-8-4 8-4Zm0 6l8 4-8 4-8-4 8-4Z"/></svg>'); }

.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,0.5), transparent); animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.hero-lines { position: absolute; left: 50%; top: 10%; width: 60%; height: 60%; transform: translateX(-50%); background: radial-gradient(400px 200px at 50% 50%, rgba(110,231,255,0.15), transparent), radial-gradient(300px 180px at 50% 60%, rgba(139,92,246,0.15), transparent); filter: blur(10px); }

.brand-row {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 18px);
}

.brand-logo {
    width: clamp(40px, 6vw, 72px);
    height: auto;
    display: inline-block;
    margin: 0;
    filter: drop-shadow(0 6px 24px rgba(139, 92, 246, 0.28));
}

.searchbar {
    margin: 24px auto 0;
    width: min(78vw, 980px);
    height: 72px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 1fr 72px;
    align-items: center;
    --border: linear-gradient(90deg, var(--accent), var(--accent-2));
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        var(--border) border-box;
    border: 2px solid transparent;
    box-shadow: 0 4px 28px rgba(139, 92, 246, 0.16), 0 2px 18px rgba(110, 231, 255, 0.08);
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
    backdrop-filter: blur(6px);
}

.searchbar:focus-within {
    box-shadow: 0 10px 46px rgba(139, 92, 246, 0.28), 0 6px 22px rgba(110, 231, 255, 0.14);
    transform: translateY(-1px);
}

.searchbar__input {
    height: 100%;
    padding: 0 22px 0 26px;
    border: 0;
    outline: none;
    font-size: 20px;
    color: var(--fg);
    background: transparent;
    text-align: center;
}

.searchbar__input::placeholder {
    text-align: center;
}

.searchbar__input:focus {
    text-align: left;
}

.searchbar__input:not(:placeholder-shown) {
    text-align: left;
}

.searchbar__input::placeholder {
    color: #c6c6c6;
    opacity: .8;
}

.searchbar__icon {
    height: 64px;
    width: 64px;
    margin-right: 4px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: #8b5cf6;
    display: grid;
    place-items: center;
    transition: transform .2s ease, background .2s ease;
}

.searchbar__icon:hover {
    transform: scale(1.04);
    background: rgba(139, 92, 246, 0.12);
}

.social {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 14px;
}

.scene--hero .social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
}

.social__link {
    color: #b7c8ff;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.social__link:hover {
    transform: translateY(-1px);
    background: rgba(139, 92, 246, 0.16);
    color: #e6f0ff;
    border-color: rgba(139, 92, 246, 0.36);
}

.hero__rings::before,
.hero__rings::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero__rings::before {
    background: radial-gradient(600px 600px at 40% 40%, #0ea5e9 0%, transparent 60%);
}

.hero__rings::after {
    background: radial-gradient(500px 500px at 60% 60%, #8b5cf6 0%, transparent 60%);
}

.scene--marquee {
    overflow: hidden;
}

.marquee {
    display: flex;
    gap: 28px;
    will-change: transform;
    width: 140vw;
}

.proof-card {
    flex: 0 0 auto;
    min-width: 280px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
}

.proof-card__title {
    font-weight: 600;
    margin: 0 0 6px;
    font-size: 14px;
    color: #cfe6ff;
}

.proof-card__meta {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.scene--orbit {
    perspective: 1200px;
}

.orbit {
    position: relative;
    width: min(80vw, 900px);
    height: min(80vw, 900px);
}

.orbit__core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.orbit__item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(11, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--fg);
}

.scene--spiral {}

.spiral {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
}

.spiral__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.spiral__cursor {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 24px rgba(110, 231, 255, 0.8);
    transform: translate(-50%, -50%);
}

.scene--cta .cta__box {
    text-align: center;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0b0f14;
    text-decoration: none;
    font-weight: 700;
}

.btn--ghost {
    background: transparent;
    color: #e6f0ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.btn--ghost:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.36);
}

.cta-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .marquee {
        width: 200vw;
    }

    .hero__center {
        transform: translateY(-6vh);
    }
}

/* Overlay */
.overlay[hidden] {
    display: none !important;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: transparent;
    display: grid;
    place-items: center;
}

.overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: #e6f0ff;
    cursor: pointer;
}

.overlay__nav {
    display: grid;
    gap: 16px;
    text-align: center;
}

.overlay__link {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(22px, 3.2vw, 42px);
    font-weight: 700;
    color: #e6f0ff;
    text-decoration: none;
}

.overlay__link:hover {
    color: #a3b8ff;
}

/* Sheet (modal panel) */
.sheet[hidden] {
    display: none !important;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: transparent;
    backdrop-filter: blur(12px) saturate(120%);
    opacity: 0;
    transition: opacity .25s ease;
}
.sheet::before {
    content: "";
    position: absolute;
    inset: -50% -50% 0 -50%;
    background-image: linear-gradient(rgba(110,231,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(110,231,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg) translateY(10%);
    opacity: .5;
    animation: gridMove 12s linear infinite;
    pointer-events: none;
}
.sheet::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.16) 50%, rgba(139,92,246,0) 100%);
    mix-blend-mode: screen;
    animation: scan 2.6s ease-in-out infinite;
    pointer-events: none;
}

.sheet.is-open {
    opacity: 1;
}

.sheet__panel {
    position: relative;
    z-index: 1;
    width: min(980px, 92vw);
    height: 86vh;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    background:
        linear-gradient(rgba(10, 14, 20, 0.8), rgba(10, 14, 20, 0.8)) padding-box,
        linear-gradient(90deg, rgba(110, 231, 255, 0.45), rgba(139, 92, 246, 0.45)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.45);
    transform: scale(0.96) translateY(4px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}

.sheet.is-open .sheet__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.sheet__body {
    position: relative;
    height: 100%;
    overflow: auto;
    padding: 0 24px 24px;
}

.sheet__header {
    margin: 0;
    padding: 16px 16px 12px;
}

/* custom scrollbar */
.sheet__panel::-webkit-scrollbar {
    width: 10px;
}

.sheet__panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.sheet__panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 10px;
}

.sheet__panel {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-2) rgba(255, 255, 255, 0.06);
}

.sheet__header {
    position: sticky;
    top: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(110,231,255,0.10), rgba(139,92,246,0.10)),
        linear-gradient(rgba(10,14,20,0.92), rgba(10,14,20,0.86));
    backdrop-filter: blur(6px);
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 0 0;
}

.sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #e6f0ff;
    border-radius: 999px;
    cursor: pointer;
}

.sheet__close:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.36);
}

.sheet__title {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(20px, 4vw, 36px);
    margin: 6px 0 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sheet__lede {
    color: #cfe6ff;
    margin: 6px 52px 12px 0;
}

/* Two-column layout */
.sheet__layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
}

.sheet__panel {
    --sheet-header-h: 64px;
}

.sheet__main {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
    padding: 12px 16px 16px;
}

.sheet__toc {
    position: sticky;
    top: calc(var(--sheet-header-h) + 8px);
    align-self: start;
}

.sheet__content-scroll {
    max-height: calc(86vh - var(--sheet-header-h) - 24px);
    overflow: auto;
    padding: 8px 12px 20px 12px;
}

.sheet__content-scroll::-webkit-scrollbar {
    width: 10px;
}

.sheet__content-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.sheet__content-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 10px;
}

.sheet__toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sheet__toc a {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #cfe6ff;
    text-decoration: none;
    border: 1px solid transparent;
}

.sheet__toc .toc-ico {
    color: #a7c4ff;
    display: inline-grid;
    place-items: center;
}

.sheet__toc a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.sheet__toc a.is-active {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* pressed state feedback for TOC links */
.sheet__toc a.is-pressed {
    background: rgba(139, 92, 246, 0.32);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5) inset;
}

/* Article layout for sheet */
.sheet__content {
    line-height: 1.8;
}

.sheet__content .h-ico {
    position: relative;
    padding-left: 22px;
    margin: 16px 0 8px;
    font-size: 18px;
}

.sheet__content .h-ico::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
}

.sheet__content p {
    color: #cfe6ff;
    margin: 6px 0 12px;
}

.sheet__content ul {
    margin: 6px 0 12px;
    padding-left: 18px;
    color: #b9c7dd;
}

.sheet__content ol {
    margin: 6px 0 12px;
    padding-left: 18px;
    color: #b9c7dd;
}

.sheet__content .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sheet__content .cols h5 {
    margin: 8px 0;
}

.sheet__content .code {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px;
    overflow: auto;
}

.sheet__content .code {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

/* flash highlight for target section after clicking TOC */
.sheet__content section.is-flash {
    background: rgba(139, 92, 246, 0.10);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.45) inset, 0 0 0 1px rgba(139, 92, 246, 0.35);
    transition: background .6s ease;
}

.dev-code {
    max-width: 100%;
}

.flow-diagram {
    overflow: hidden;
}

.sheet__content .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sheet__content .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 8px;
}

.sheet__content .stat b {
    display: block;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3.2vw, 28px);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sheet__content .stat span {
    display: block;
    color: #c0cbe0;
    font-size: 12px;
}

@media (max-width: 920px) {
    .sheet__layout {
        grid-template-columns: 1fr;
    }

    .sheet__toc {
        position: static;
    }

    .sheet__content .cols {
        grid-template-columns: 1fr;
    }

    .sheet__content .stats {
        grid-template-columns: 1fr 1fr;
    }
}