/* CodeFox Apple-like Light Theme */

:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.55), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.95), transparent 24%),
        #f5f5f7;
}

.page-shell {
    padding-bottom: 1rem;
}

.hero-glow {
    background:
        radial-gradient(circle at 20% 18%, rgba(191, 219, 254, 0.5), transparent 28%),
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 245, 247, 0.94));
    filter: blur(10px);
}

.home-card,
.hero-preview-panel,
.trust-strip,
.step-card,
.category-card,
.cta-banner,
.stat-card,
.mini-hero-chip {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.home-card,
.hero-preview-panel,
.trust-strip,
.cta-banner {
    border-radius: 32px;
}

.stat-card {
    border-radius: 28px;
    padding: 1.1rem 1.2rem;
}

.stat-value {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #1d1d1f;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6e6e73;
}

.trust-strip {
    padding: 1.5rem;
}

.trust-item {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(245, 245, 247, 0.9);
    padding: 1rem 1rem 0.95rem;
}

.trust-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6e6e73;
}

.trust-text {
    margin-top: 0.45rem;
    display: block;
    font-size: 0.98rem;
    font-weight: 500;
    color: #1d1d1f;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6e6e73;
}

.section-title {
    margin-top: 0.5rem;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #1d1d1f;
}

.section-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #111827;
}

.category-card {
    display: flex;
    min-height: 104px;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 26px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.category-icon {
    display: flex;
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.step-card {
    border-radius: 28px;
    padding: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d1d1f;
}

.step-title {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.step-desc {
    margin-top: 0.6rem;
    line-height: 1.75;
    color: #6e6e73;
}

.cta-banner {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.6rem;
}

.mini-hero-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 24px;
    padding: 1rem 1.1rem;
}

.mini-chip-dot {
    height: 12px;
    width: 12px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.06);
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(248, 250, 252, 0.98);
    padding: 0.32rem 0.68rem;
    color: #6e6e73;
}

.script-entry {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.script-entry:hover {
    transform: translateY(-2px);
}

.home-script-card {
    position: relative;
    overflow: hidden;
}

.home-script-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%);
    pointer-events: none;
}

pre code {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

#vm-guide-modal {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#vm-guide-modal > div {
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.install-btn,
.uninstall-btn,
.toggle-btn,
.update-btn {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eceef3;
}

::-webkit-scrollbar-thumb {
    background: #c7ccd6;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aeb6c2;
}

@media (min-width: 768px) {
    .cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .section-head {
        align-items: start;
        flex-direction: column;
    }
}
