:root {
    --brand: #ff5a1f;
    --brand-strong: #ff4d12;
    --brand-soft: #ff8a4d;
    --amber: #ffb347;
    --ink-900: #14161d;
    --ink-700: #3d4351;
    --ink-500: #6a7181;
    --ink-300: #a3a9b7;
    --paper: #ffffff;
    --paper-2: #f6f7f9;
    --dark: #0a0c12;
    --dark-2: #10131b;
    --line: rgba(20, 22, 29, .08);
    --line-dark: rgba(255, 255, 255, .09);
    --gradient-brand: linear-gradient(135deg, #ffb347 0%, #ff5a1f 55%, #ff3d2e 100%);
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-card: 0 1px 2px rgba(20, 22, 29, .04), 0 8px 24px -12px rgba(20, 22, 29, .12);
    --shadow-lift: 0 2px 4px rgba(20, 22, 29, .05), 0 24px 48px -16px rgba(20, 22, 29, .18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink-700);
    background: var(--paper);
    padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900);
    letter-spacing: -0.015em;
}

::selection {
    background: rgba(255, 90, 31, .18);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--brand);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.eyebrow-light {
    color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .35);
    outline-offset: 2px;
}

.btn-brand {
    background: linear-gradient(180deg, var(--brand-soft), var(--brand-strong));
    border: 1px solid rgba(255, 61, 46, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -8px rgba(255, 77, 18, .55);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 32px -8px rgba(255, 77, 18, .6);
}

.btn-outline-brand {
    border: 1.5px solid rgba(255, 90, 31, .55);
    color: var(--brand);
    background: rgba(255, 90, 31, .04);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(255, 77, 18, .5);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 13px 30px;
    font-size: 1rem;
}

/* ---------- Navbar ---------- */
.site-navbar {
    padding-top: 0;
    padding-bottom: 0;
    background: rgba(8, 10, 15, .94);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-navbar.scrolled {
    background: rgba(8, 10, 15, .98);
    border-bottom-color: var(--line-dark);
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
}

.site-navbar > .container {
    min-height: 64px;
}

.site-navbar .navbar-brand {
    color: #fff;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}

.site-navbar .navbar-brand img {
    filter: drop-shadow(0 3px 8px rgba(255, 90, 31, .5));
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, .68);
    font-weight: 500;
    font-size: .94rem;
    margin: 0 3px;
    padding: 8px 12px;
    border-radius: 9px;
    transition: color .18s ease, background .18s ease;
}

.site-navbar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.site-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 90, 31, .16);
}

.site-navbar .nav-link.active::after {
    display: none;
}

.site-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    padding: 6px 9px;
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 90, 31, .3);
}

.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(720px 380px at 78% 8%, rgba(255, 90, 31, .26), transparent 62%),
        radial-gradient(560px 340px at 4% 96%, rgba(255, 179, 71, .12), transparent 58%),
        var(--dark);
    color: #fff;
    padding: 104px 0 116px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(820px 480px at 62% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(820px 480px at 62% 30%, #000 30%, transparent 78%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 71, .3);
    background: rgba(255, 90, 31, .1);
    backdrop-filter: blur(6px);
    color: #ffc9a3;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 26px;
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 0 rgba(255, 179, 71, .55);
    animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 179, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}

.hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 4.4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    color: rgba(255, 255, 255, .64);
    font-size: 1.06rem;
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-actions {
    margin-bottom: 34px;
}

.hero-points li {
    position: relative;
    padding: 6px 14px 6px 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb347' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e") no-repeat center / contain;
}

/* ---------- App window mockup ---------- */
.app-window {
    position: relative;
    background: #fbfbfd;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(20, 22, 29, .28),
        0 2px 0 rgba(255, 255, 255, .06) inset,
        0 30px 60px -18px rgba(0, 0, 0, .65),
        0 40px 100px -20px rgba(255, 90, 31, .28);
    overflow: hidden;
    color: var(--ink-900);
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
    animation: float-soft 7s ease-in-out infinite;
}

@keyframes float-soft {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

.app-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f3f4f8, #eceef3);
    border-bottom: 1px solid #e2e5ec;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.app-title {
    margin-left: 10px;
    font-size: .8rem;
    color: var(--ink-500);
    font-weight: 600;
}

.app-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 310px;
    background: #fff;
}

.app-side {
    background: #f7f8fb;
    border-right: 1px solid #eceef3;
    padding: 14px 10px;
    font-size: .82rem;
}

.side-item {
    padding: 8px 11px;
    border-radius: 9px;
    color: var(--ink-500);
    margin-bottom: 4px;
    font-weight: 500;
}

.side-item.active {
    background: linear-gradient(90deg, rgba(255, 90, 31, .14), rgba(255, 179, 71, .1));
    color: var(--brand);
    font-weight: 700;
    box-shadow: inset 2px 0 0 var(--brand);
}

.side-mcp {
    margin-top: 28px;
    padding: 8px 11px;
    font-size: .74rem;
    font-weight: 600;
    color: #188a4e;
    background: rgba(40, 200, 64, .08);
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mcp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 3px rgba(40, 200, 64, .18);
}

.app-main {
    padding: 18px;
}

.app-search {
    background: #f4f5f9;
    border: 1px solid #e6e8ef;
    border-radius: 11px;
    padding: 10px 14px;
    font-size: .84rem;
    color: var(--ink-500);
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(20, 22, 29, .03);
}

.app-result {
    border: 1px solid #eceef3;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.app-result:hover {
    border-color: rgba(255, 90, 31, .4);
    box-shadow: 0 6px 18px -8px rgba(255, 90, 31, .25);
}

.result-title {
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.file-badge {
    font-size: .66rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.badge-doc {
    background: rgba(255, 90, 31, .12);
    color: var(--brand);
}

.badge-img {
    background: rgba(24, 138, 78, .12);
    color: #188a4e;
}

.badge-design {
    background: rgba(94, 92, 230, .12);
    color: #5e5ce6;
}

.result-snippet {
    font-size: .78rem;
    color: var(--ink-500);
    line-height: 1.65;
}

.app-status {
    font-size: .72rem;
    color: var(--ink-300);
    margin-top: 16px;
    letter-spacing: .01em;
}

/* ---------- Sections ---------- */
.section {
    padding: 104px 0;
    position: relative;
}

.section-alt {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-dark {
    background:
        radial-gradient(680px 360px at 88% 12%, rgba(255, 90, 31, .18), transparent 60%),
        radial-gradient(520px 320px at 6% 90%, rgba(255, 179, 71, .08), transparent 55%),
        var(--dark);
    color: #fff;
}

.section-dark h2 {
    color: #fff;
}

.section-dark-text {
    color: rgba(255, 255, 255, .64);
    line-height: 1.9;
}

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 60px;
}

.section-head .eyebrow {
    justify-content: center;
}

.section-head .eyebrow::after {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.section-head h2,
.cta-section h2 {
    font-weight: 800;
    font-size: clamp(1.65rem, 2.8vw, 2.3rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-head p {
    color: var(--ink-500);
    margin: 14px 0 0;
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-dark .section-head p {
    color: rgba(255, 255, 255, .6);
}

/* ---------- Feature cards ---------- */
.feature-card {
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-card);
    transition: transform .28s cubic-bezier(.2, .6, .2, 1), box-shadow .28s ease, border-color .28s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity .28s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 20px 0 9px;
}

.feature-card p {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.75;
    margin: 0;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 90, 31, .13), rgba(255, 179, 71, .13));
    border: 1px solid rgba(255, 90, 31, .2);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -6px rgba(255, 90, 31, .35);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-icon-lg {
    width: 62px;
    height: 62px;
    border-radius: 17px;
}

.feature-icon-lg svg {
    width: 30px;
    height: 30px;
}

/* ---------- Steps ---------- */
.step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform .28s cubic-bezier(.2, .6, .2, 1), box-shadow .28s ease, border-color .28s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.step-card h3 {
    font-size: 1.04rem;
    font-weight: 700;
    margin: 18px 0 9px;
}

.step-card p {
    color: var(--ink-500);
    font-size: .92rem;
    line-height: 1.75;
    margin: 0;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -6px rgba(255, 77, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ---------- Levels / MCP ---------- */
.level-list li {
    position: relative;
    padding: 13px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .72);
    font-size: .93rem;
    line-height: 1.7;
    transition: background .2s ease, border-color .2s ease;
}

.level-list li:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 179, 71, .35);
}

.level-list strong {
    color: #fff;
}

.level-tag {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    margin-right: 10px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    box-shadow: 0 4px 10px -3px rgba(255, 77, 18, .5);
}

.level-tag-lg {
    font-size: .86rem;
    padding: 5px 13px;
    margin-bottom: 16px;
    border-radius: 9px;
}

.code-window {
    background: #0c0f17;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .4),
        0 30px 70px -20px rgba(0, 0, 0, .7),
        0 30px 80px -30px rgba(255, 90, 31, .25);
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .035);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.code-title {
    margin-left: 10px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

.code-body {
    margin: 0;
    padding: 22px 24px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
    line-height: 1.85;
    color: #cdd6e6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ---------- CTA ---------- */
.cta-section {
    background:
        radial-gradient(640px 320px at 50% -20%, rgba(255, 90, 31, .3), transparent 65%),
        var(--dark);
    border-top: 1px solid var(--line-dark);
}

.cta-section h2 {
    color: #fff;
}

.cta-sub {
    color: rgba(255, 255, 255, .6);
    margin: 16px auto 34px;
    max-width: 480px;
    line-height: 1.8;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    position: relative;
    background:
        radial-gradient(560px 260px at 50% -40%, rgba(255, 90, 31, .16), transparent 70%),
        linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
    padding: 84px 0 64px;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 22, 29, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 22, 29, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(560px 300px at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(560px 300px at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--ink-500);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.04rem;
    line-height: 1.8;
}

/* ---------- Features page ---------- */
.lead-sm {
    font-size: 1.14rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 14px;
}

.text-muted-2 {
    color: var(--ink-500);
    line-height: 1.9;
}

.check-list li {
    position: relative;
    padding: 9px 14px 9px 42px;
    margin-bottom: 8px;
    border-radius: 11px;
    color: var(--ink-700);
    font-size: .96rem;
    background: rgba(255, 90, 31, .035);
    border: 1px solid rgba(255, 90, 31, .09);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-brand) no-repeat center / 11px, rgba(255, 90, 31, .12);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e"), linear-gradient(135deg, #ffb347, #ff3d2e);
    background-size: 11px, cover;
    box-shadow: 0 3px 8px -2px rgba(255, 77, 18, .5);
}

.visual-panel {
    background: linear-gradient(180deg, #ffffff, #fafafc);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: var(--shadow-lift);
    position: relative;
    overflow: hidden;
}

.visual-panel::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(255, 90, 31, .09), transparent);
    pointer-events: none;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.chip {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: .83rem;
    font-weight: 500;
    color: var(--ink-700);
    box-shadow: 0 2px 6px -2px rgba(20, 22, 29, .1);
}

.visual-flow {
    text-align: center;
    color: var(--brand);
    font-size: .88rem;
    font-weight: 700;
    margin: 20px 0;
    position: relative;
}

.visual-flow::before {
    content: "↓";
    display: block;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.kb-box {
    background: linear-gradient(135deg, rgba(255, 90, 31, .1), rgba(255, 179, 71, .08));
    border: 1.5px dashed rgba(255, 90, 31, .5);
    border-radius: var(--radius-md);
    text-align: center;
    padding: 18px;
    font-weight: 800;
    color: var(--brand);
    font-size: .96rem;
    position: relative;
}

.vector-line {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.vector-word {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink-900);
    box-shadow: var(--shadow-card);
}

.vector-arrow-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand) 0 7px, transparent 7px 14px);
    opacity: .5;
}

.vector-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.vector-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 3px 8px -2px rgba(255, 77, 18, .5);
}

.vector-dots i:nth-child(2n) { opacity: .6; }
.vector-dots i:nth-child(3n) { opacity: .35; }

.visual-caption {
    text-align: center;
    color: var(--ink-500);
    font-size: .86rem;
    margin-top: 20px;
    position: relative;
}

.mcp-diagram .mcp-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.level-bar {
    display: flex;
    align-items: center;
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(255, 90, 31, .1), rgba(255, 179, 71, .06));
    border: 1px solid rgba(255, 90, 31, .22);
    padding: 13px 16px;
    font-size: .87rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 12px -6px rgba(255, 90, 31, .25);
}

.level-bar-0 { width: 58%; }
.level-bar-1 { width: 79%; }
.level-bar-2 { width: 100%; }

.privacy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: center;
    position: relative;
}

.privacy-stat {
    padding: 18px 8px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.privacy-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.privacy-stat span {
    font-size: .82rem;
    color: var(--ink-500);
}

.search-demo .app-search,
.search-demo .app-result {
    margin-bottom: 12px;
    position: relative;
}

/* ---------- Works page ---------- */
.flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flow-node {
    background: linear-gradient(180deg, #ffffff, #fafafc);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
    min-width: 152px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.flow-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.flow-node-title {
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 6px;
    font-size: .98rem;
}

.flow-node-desc {
    font-size: .79rem;
    color: var(--ink-500);
}

.flow-node-brand {
    background: var(--gradient-brand);
    border: none;
    color: #fff;
    box-shadow: 0 16px 32px -10px rgba(255, 77, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.flow-node-brand .flow-node-title {
    color: #fff;
}

.flow-node-brand .flow-node-desc {
    color: rgba(255, 255, 255, .88);
}

.flow-arrow {
    align-self: center;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.6rem;
    font-weight: 800;
}

.detail-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.detail-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 9px;
}

.detail-card p {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.85;
}

.level-card {
    background: linear-gradient(180deg, #ffffff, #fafafc);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.level-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.level-card p {
    color: var(--ink-500);
    font-size: .92rem;
    line-height: 1.8;
}

.tool-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, .04);
    font-size: .92rem;
    color: rgba(255, 255, 255, .72);
    transition: background .2s ease, border-color .2s ease;
}

.tool-list li:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 179, 71, .35);
}

.tool-list code {
    background: rgba(255, 90, 31, .2);
    color: #ffc9a3;
    padding: 4px 11px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    flex-shrink: 0;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* ---------- Download page ---------- */
.platform-card {
    background: linear-gradient(180deg, #ffffff, #fafafc);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .28s cubic-bezier(.2, .6, .2, 1), box-shadow .28s ease, border-color .28s ease;
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .35);
}

.platform-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(255, 90, 31, .14), rgba(255, 179, 71, .12));
    border: 1px solid rgba(255, 90, 31, .22);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(255, 90, 31, .4);
}

.platform-icon svg {
    width: 32px;
    height: 32px;
}

.platform-card h3 {
    font-weight: 800;
    margin-bottom: 9px;
}

.platform-require {
    color: var(--ink-500);
    font-size: .88rem;
    margin-bottom: 5px;
}

.platform-size {
    color: var(--ink-300);
    font-size: .8rem;
    margin-bottom: 22px;
    font-family: SFMono-Regular, Consolas, monospace;
}

.alert-brand {
    background: linear-gradient(135deg, rgba(255, 90, 31, .08), rgba(255, 179, 71, .06));
    border: 1px solid rgba(255, 90, 31, .25);
    color: #b3400f;
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.install-steps {
    list-style: none;
    counter-reset: install;
    padding: 0;
    margin: 0;
}

.install-steps li {
    counter-increment: install;
    position: relative;
    padding: 2px 0 26px 56px;
    line-height: 1.8;
    color: var(--ink-700);
}

.install-steps li::before {
    content: counter(install);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -6px rgba(255, 77, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.install-steps li:last-child {
    padding-bottom: 0;
}

.release-list {
    border-left: 2px solid rgba(255, 90, 31, .28);
    padding-left: 28px;
}

.release-item {
    position: relative;
    padding-bottom: 28px;
}

.release-item:last-child {
    padding-bottom: 0;
}

.release-item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 0 5px rgba(255, 90, 31, .14);
}

.release-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 9px;
}

.release-head strong {
    color: var(--ink-900);
    font-size: 1.02rem;
}

.release-date {
    color: var(--ink-300);
    font-size: .84rem;
    font-family: SFMono-Regular, Consolas, monospace;
}

.release-item ul {
    color: var(--ink-500);
    font-size: .93rem;
    line-height: 1.85;
    padding-left: 20px;
}

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(255, 90, 31, .35);
    box-shadow: 0 12px 32px -14px rgba(255, 90, 31, .25);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink-900);
    padding: 20px 24px;
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(255, 90, 31, .06), transparent);
    color: var(--brand);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 90, 31, .16);
}

.faq-accordion .accordion-body {
    color: var(--ink-500);
    line-height: 1.9;
    padding: 2px 24px 22px;
}

/* ---------- About ---------- */
.about-story p {
    font-size: 1.05rem;
    line-height: 2.05;
    color: var(--ink-700);
    margin-bottom: 20px;
}

.principle-card {
    background: linear-gradient(180deg, #ffffff, #fafafc);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 90, 31, .3);
}

.principle-card .step-num {
    margin: 0 auto 18px;
}

.principle-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.principle-card p {
    color: var(--ink-500);
    font-size: .92rem;
    line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #07080d;
    color: rgba(255, 255, 255, .66);
    border-top: 1px solid var(--line-dark);
}

.site-footer strong {
    color: #fff;
}

.footer-desc {
    color: rgba(255, 255, 255, .48);
    font-size: .9rem;
    line-height: 1.85;
    max-width: 380px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: .95rem;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: .9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .18s ease;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .38);
    font-size: .84rem;
    text-align: center;
}

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    right: 26px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: rgba(16, 19, 27, .85);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .5), 0 8px 20px -8px rgba(255, 90, 31, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
    z-index: 1050;
}

#backToTop:hover {
    background: var(--brand);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop svg {
    width: 20px;
    height: 20px;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

.hero .hero-copy,
.hero .hero-visual {
    animation: hero-in .9s cubic-bezier(.2, .6, .2, 1) both;
}

.hero .hero-visual {
    animation-delay: .18s;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    [data-reveal],
    .hero .hero-copy,
    .hero .hero-visual {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .app-window {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero {
        padding: 72px 0 80px;
    }

    .app-window {
        transform: none;
        animation: none;
        margin-top: 20px;
    }

    .section {
        padding: 72px 0;
    }

    .flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-node {
        width: 100%;
        max-width: 360px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .level-bar-0 { width: 74%; }
    .level-bar-1 { width: 88%; }
}

@media (max-width: 575.98px) {
    .app-body {
        grid-template-columns: 102px 1fr;
    }

    .privacy-stats {
        grid-template-columns: 1fr;
    }

    .hero-points {
        gap: 10px !important;
    }
}
