/*
 * Cloud Brain visual theme for DeepBot website.
 * 仅做视觉覆盖：保持 DeepBot 内容、下载链接、版本信息不变。
 * 目标：云脑黑蓝科技风格 + 二级页清爽导航 + 居中首屏大 Logo。
 */
:root {
    --primary-color: #4f8fd0;
    --primary-strong: #69d2ff;
    --bg-deep: #000207;
    --bg-card: rgba(7, 14, 23, 0.84);
    --bg-card-strong: rgba(9, 19, 31, 0.94);
    --text-primary: #f8fbff;
    --text-secondary: rgba(236, 243, 252, 0.82);
    --text-muted: rgba(222, 233, 248, 0.66);
    --border-color: rgba(111, 178, 239, 0.2);
    --border-glow: rgba(105, 210, 255, 0.48);
    --cloud-shadow: 0 30px 90px rgba(0, 13, 32, 0.55);
    --cloud-radius: 24px;
    --cloud-font: system-ui, Avenir, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
    font-family: var(--cloud-font);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea {
    font-family: var(--cloud-font);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 50% 14%, rgba(24, 93, 164, 0.18), transparent 30%),
        radial-gradient(circle at 12% 32%, rgba(18, 68, 138, 0.12), transparent 34%),
        radial-gradient(circle at 88% 38%, rgba(32, 111, 194, 0.14), transparent 34%),
        linear-gradient(180deg, #010308 0%, #010408 44%, #000206 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(rgba(98, 199, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 199, 255, 0.016) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 78%);
}

body::after {
    background:
        radial-gradient(ellipse at 50% 108%, rgba(45, 104, 188, 0.22), transparent 45%),
        linear-gradient(115deg, transparent 0 48%, rgba(77, 166, 255, 0.045) 49%, transparent 50% 100%);
    opacity: 0.62;
}

main,
.footer,
#release-modal {
    position: relative;
    z-index: 1;
}

main {
    isolation: isolate;
}

.container {
    width: min(100% - 96px, 1440px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

html[lang="en"] .nav-home-link,
html[lang="en"] .nav-link,
html[lang="en"] .lang-url-switch,
html[lang="en"] .btn {
    font-weight: 600;
}

html[lang="en"] .hero-subtitle {
    font-weight: 500;
    letter-spacing: -0.04em;
}

html[lang="en"] .section-title {
    font-weight: 600;
    letter-spacing: -0.045em;
}

html[lang="en"] .hero-desc,
html[lang="en"] .download-subtitle,
html[lang="en"] .partner-subtitle,
html[lang="en"] .inspiration-subtitle,
html[lang="en"] .testimonial-text,
html[lang="en"] .message-text,
html[lang="en"] .prompt-content,
html[lang="en"] .requirements-content {
    letter-spacing: -0.01em;
}

html[lang="en"] .hero-subtitle {
    max-width: 1120px;
    font-size: clamp(28px, 2.65vw, 40px);
    line-height: 1.16;
    white-space: pre-line;
    text-wrap: balance;
}

html[lang="en"] .hero-desc {
    max-width: 1040px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: -0.006em;
}

html[lang="en"] .section-title {
    font-size: clamp(36px, 3.2vw, 52px);
    line-height: 1.12;
}

html[lang="en"] .partner-card h3,
html[lang="en"] .download-card-header h3,
html[lang="en"] .chat-title h3,
html[lang="en"] .testimonial-name,
html[lang="en"] .link-content strong {
    font-weight: 600;
    letter-spacing: -0.025em;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 76px;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(0, 4, 9, 0.92) 0%, rgba(0, 4, 9, 0.58) 100%);
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
    backdrop-filter: blur(14px);
}

.nav-container {
    position: relative;
    z-index: 10001;
    height: 100%;
    display: grid;
    grid-template-columns: auto minmax(520px, 1fr) auto;
    gap: 28px;
    align-items: center;
    pointer-events: auto;
}

.nav-home-link,
.nav-link,
.lang-url-switch,
.lang-url-switch a {
    position: relative;
    z-index: 10002;
    pointer-events: auto;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding-left: 0;
    line-height: 1;
    white-space: nowrap;
}

.nav-home-link::before {
    content: '‹';
    display: inline-flex;
    align-items: center;
    color: var(--primary-strong);
    font-size: 24px;
    line-height: 0.85;
    transform: translateY(-1px);
}

.nav-page-menu {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(105, 210, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 18, 30, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-page-menu .nav-link {
    padding: 8px 15px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-page-menu .nav-link:hover,
.nav-page-menu .nav-link.active {
    color: #fff;
    background: rgba(79, 143, 208, 0.2);
    box-shadow: 0 0 18px rgba(105, 210, 255, 0.22);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.nav-github-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px 4px 9px;
    border: 1px solid rgba(246, 211, 101, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.12), rgba(98, 199, 255, 0.07));
    box-shadow: 0 0 16px rgba(246, 211, 101, 0.1);
}

.nav-github-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.star-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f6d365;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 0 14px rgba(246, 211, 101, 0.35);
}

.star-badge-icon {
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 8px rgba(246, 211, 101, 0.4));
}

.lang-url-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(105, 210, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 18, 30, 0.5);
}

.lang-url-switch,
.lang-url-switch a {
    font-size: 12px;
}

.lang-url {
    opacity: 0.62;
}

.lang-url.active,
.lang-url:hover,
.nav-home-link:hover,
.nav-github-link:hover {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 16px rgba(105, 210, 255, 0.45);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 118px 0 72px;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: min(360px, 56vw);
    max-width: none;
    margin: 0 auto 22px;
}

.hero-logo img {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 28px rgba(74, 151, 224, 0.38));
}

.hero-subtitle {
    max-width: 980px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 52px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 980px;
    margin: 0 auto 26px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

.hero-buttons {
    justify-content: center;
    margin: 0 0 22px;
}

.btn {
    min-width: 158px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 650;
}

.btn-primary,
.btn-download,
.download-btn,
.install-step-number {
    color: #fff;
    background: linear-gradient(135deg, #4d8dcc 0%, #62c7ff 100%);
    box-shadow: 0 14px 38px rgba(77, 141, 204, 0.28);
}

.btn-primary:hover,
.btn-download:hover,
.download-link:hover .download-btn {
    background: linear-gradient(135deg, #5aa3ea 0%, #78dcff 100%);
    box-shadow: 0 18px 46px rgba(91, 164, 232, 0.36);
}

.btn-secondary {
    color: #dfefff;
    border: 1px solid rgba(127, 194, 255, 0.32);
    background: rgba(10, 20, 32, 0.48);
}

.btn-secondary:hover {
    color: #fff;
    border-color: var(--border-glow);
    background: rgba(79, 143, 208, 0.14);
}

.release-banner {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
    padding: 13px 22px;
    border-radius: 999px;
    color: #d9ebff;
    border: 1px solid rgba(105, 210, 255, 0.25);
    background: rgba(10, 21, 35, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 54px rgba(0, 14, 33, 0.3);
}

.release-text strong,
.release-arrow,
.tip-content strong {
    color: #72c7ff;
}

.download,
.partner,
.task-inspiration,
.testimonials-section {
    padding: 64px 0;
    background: transparent;
    scroll-margin-top: 88px;
}

.section-title {
    color: #fff;
    font-size: clamp(34px, 3vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #72c7ff, transparent);
    box-shadow: 0 0 18px rgba(114, 199, 255, 0.8);
}

.download-subtitle,
.config-subtitle,
.partner-subtitle,
.inspiration-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.download-card,
.partner-card,
.chat-demo,
.installation-steps,
.testimonial-card {
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(13, 25, 39, 0.92), rgba(5, 11, 20, 0.84));
    box-shadow: 0 18px 54px rgba(0, 8, 22, 0.34);
    backdrop-filter: blur(12px);
}

.download-card,
.partner-card,
.chat-demo {
    border-radius: var(--cloud-radius);
}

.download-card:hover,
.partner-card:hover,
.chat-demo:hover,
.testimonial-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(47, 142, 231, 0.18);
}

.partner-grid,
.download-cards.three-columns {
    gap: 28px;
}

.partner-icon,
.chat-avatar {
    color: #5ba4e8;
    filter: drop-shadow(0 0 14px rgba(91, 164, 232, 0.3));
}

.download-card-header,
.chat-header,
.full-prompt {
    border-color: rgba(127, 194, 255, 0.16);
}

.version-tag {
    color: #9fd4ff;
    border: 1px solid rgba(98, 199, 255, 0.22);
    background: rgba(79, 143, 208, 0.16);
}

.download-link,
.bot-message .message-content,
.prompt-content,
.requirements-content {
    border-color: rgba(127, 194, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.download-link:hover {
    border-color: var(--border-glow);
    background: rgba(79, 143, 208, 0.12);
}

.user-message .message-content {
    background: linear-gradient(135deg, #3e84c3, #62c7ff);
}

.footer {
    border-top-color: rgba(127, 194, 255, 0.13);
    background: rgba(0, 3, 8, 0.56);
}

.footer p,
.footer-links a,
.link-content small,
.partner-card p,
.chat-title p,
.message-text,
.prompt-content,
.requirements-content,
.testimonial-text {
    color: var(--text-secondary);
}

.link-content strong,
.partner-card h3,
.download-card-header h3,
.chat-title h3,
.testimonial-name {
    color: var(--text-primary);
}

#release-modal {
    background: rgba(0, 3, 8, 0.72) !important;
    backdrop-filter: blur(14px);
}

#release-modal > div {
    background: linear-gradient(180deg, rgba(13, 25, 39, 0.96), rgba(5, 10, 18, 0.96)) !important;
    border: 1px solid rgba(98, 199, 255, 0.24) !important;
    border-radius: 22px !important;
    box-shadow: 0 34px 110px rgba(0, 10, 28, 0.62) !important;
}

#release-modal a[href="#download"] {
    background: linear-gradient(135deg, #4d8dcc, #62c7ff) !important;
    color: #fff !important;
    border-radius: 999px !important;
}

.grid-bg {
    background:
        radial-gradient(circle at 18% 28%, rgba(30, 98, 176, 0.08), transparent 34%),
        radial-gradient(ellipse at 50% 100%, rgba(45, 105, 190, 0.16), transparent 44%);
}

.grid-bg::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -16%;
    height: 34%;
    border-radius: 50% 50% 0 0;
    border-top: 2px solid rgba(89, 178, 255, 0.42);
    box-shadow: 0 -18px 58px rgba(89, 178, 255, 0.18);
}

.grid-orb-1 {
    background: radial-gradient(circle, rgba(54, 135, 219, 0.2) 0%, transparent 66%);
}

.grid-orb-2 {
    background: radial-gradient(circle, rgba(98, 199, 255, 0.14) 0%, transparent 66%);
}

@media (max-width: 1180px) {
    .container {
        width: min(100% - 48px, 980px);
    }

    .nav-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
        padding: 12px 0;
    }

    .navbar {
        height: auto;
    }

    .nav-home-link,
    .nav-actions {
        justify-self: center;
    }

    .nav-page-menu {
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero {
        padding-top: 176px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 640px);
    }

    .nav-page-menu .nav-link,
    .nav-home-link,
    .nav-github-link,
    .lang-url-switch,
    .lang-url-switch a {
        font-size: 13px;
    }

    .nav-github-wrapper {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 154px 0 58px;
    }

    .hero-logo {
        width: min(260px, 68vw);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .partner-grid,
    .download-cards.three-columns {
        grid-template-columns: 1fr;
    }

    .download,
    .partner,
    .task-inspiration,
    .testimonials-section {
        padding: 44px 0;
    }
}

/* GlintBox deployment section */
.sentinel-section {
    padding: 64px 0;
    background: transparent;
    scroll-margin-top: 88px;
}

.sentinel-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 32px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(98, 199, 255, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 15%, rgba(98, 199, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(13, 31, 50, 0.82), rgba(4, 9, 18, 0.9));
    box-shadow: 0 28px 90px rgba(0, 10, 28, 0.36);
}

.sentinel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sentinel-subtitle {
    margin: 18px 0 14px;
    color: #d8e8ff;
    font-size: 20px;
    line-height: 1.65;
}

.sentinel-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.78;
}

.sentinel-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sentinel-card {
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(120, 190, 255, 0.16);
    border-radius: 22px;
    background: rgba(7, 17, 29, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sentinel-card strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sentinel-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.72;
}

@media (max-width: 980px) {
    .sentinel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sentinel-section {
        padding: 44px 0;
    }

    .sentinel-layout {
        padding: 22px;
    }

    .sentinel-card-grid {
        grid-template-columns: 1fr;
    }

}
