:root {
    --color-bg: #faf9f8;
    --color-surface: #ffffff;
    --color-surface-soft: rgba(255, 255, 255, 0.82);
    --color-primary: #0f6cbd;
    --color-primary-hover: #115ea3;
    --color-text-main: #242424;
    --color-text-muted: #616161;
    --color-border: #e0e0e0;
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 2px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 8px 16px rgba(0, 0, 0, 0.14);
    --radius-card: 8px;
    --radius-button: 4px;
    --font-stack: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
    --color-bg: #0b0c0f;
    --color-surface: #11131a;
    --color-surface-soft: rgba(17, 19, 26, 0.82);
    --color-primary: #3796ff;
    --color-primary-hover: #2a7dd6;
    --color-text-main: #f3f4f6;
    --color-text-muted: #b6b9c3;
    --color-border: #2a2d36;
    --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    view-transition-name: root;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
}

.section {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar {
    background-color: var(--color-surface-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:active {
    transform: scale(0.98);
}

.hero {
    padding: 50px 0;
    text-align: center;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
}

.hero-visual-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    background-color: var(--color-surface);
    position: relative;
    margin-bottom: 48px;
}

.fluent-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-out;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.visible {
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background-color: var(--color-bg);
}

.features-grid-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--color-text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(15, 108, 189, 0.1);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.core-features-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    overflow: hidden; 
}
.showcase-row {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
}

.showcase-image-wrapper {
    width: 65%;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.showcase-card {
    width: 45%;
    padding: 40px;
    border-radius: 16px;
    z-index: 2;
}
.overlap-right {
    margin-left: -10%; 
}

.mica-effect {
    background-color: var(--color-surface-soft);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-float);
}

.showcase-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

.showcase-card p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.feature-icon-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-icon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.feature-icon-list svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .showcase-row {
        flex-direction: column;
        margin-bottom: 80px;
    }
    
    .showcase-image-wrapper {
        width: 100%;
    }
    
    .showcase-card {
        width: 90%;
        margin-left: 0;
        margin-top: -40px;
        padding: 32px 24px;
        background-color: var(--color-surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
.row-reverse {
    flex-direction: row-reverse;
}

.overlap-left {
    margin-right: -10%;
    margin-left: 0;
}
.under-the-hood {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--color-border);
}

.minor-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.minor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.minor-card {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 24px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
    border-radius: var(--radius-card);
}

.minor-card:hover {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

.minor-card svg {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.minor-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.minor-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
@media (max-width: 992px) {
    .row-reverse {
        flex-direction: column;
    }
    
    .overlap-left {
        margin-right: 0;
        margin-left: 0;
    }
}

.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
    text-align: center;
}

.download-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.download-section .support-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-section .hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.support-section {
    padding: 100px 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.support-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
}

.support-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.support-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.support-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
}
.github-card .support-icon-wrapper {
    background-color: var(--color-primary); 
}
.kofi-card .support-icon-wrapper {
    background-color: #FF5E5B;
}

.support-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.support-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    flex-grow: 1;
}

.btn-support {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s;
    text-align: center;
}

.btn-github {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-github:hover {
    background-color: var(--color-primary-hover);
}

.btn-kofi {
    background-color: #FF5E5B;
    color: #ffffff;
}

.btn-kofi:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .nav-content {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
    }

    .download-section .section-title {
        font-size: 2rem;
    }
    
    .download-section .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .download-section .btn-primary,
    .download-section .btn-secondary {
        width: 100%;
    }
    
    .nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1rem;
    }

    .logo-mark {
        width: 24px;
        height: 24px;
    }
    
    .title {
        font-size: 2rem;
    }

    
    .subtitle {
        font-size: 1rem;
    }

    .theme-switch {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .nav-content {
        justify-content: center;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }
}

.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-disclaimer {
    max-width: 600px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-disclaimer a, .footer-credit a {
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-disclaimer a:hover, .footer-credit a:hover {
    color: var(--color-primary);
}

.footer-credit {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    font-weight: 500;
}
.theme-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-left: 24px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-switch:hover {
    border-color: var(--color-text-muted);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    z-index: 1;
}

.theme-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, box-shadow 0.2s;
}
.theme-switch.is-dark .theme-thumb {
    transform: translateX(24px);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
    html {
        view-transition-name: none;
    }
}

/* Fluent Modal Base */
.fluent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.fluent-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.fluent-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Solid Fluent 2 Dialog */
.solid-dialog {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.fluent-modal.active .solid-dialog {
    transform: scale(1) translateY(0);
}

[data-theme="dark"] .solid-dialog {
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}
.browser-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
}

.browser-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.browser-card:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .browser-card:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.06);
}

.browser-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.browser-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}

.browser-name {
    font-weight: 500;
    font-size: 14px;
}
.status-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    min-height: 16px; 
}
.static-badge {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .static-badge {
    background: rgba(255, 255, 255, 0.1);
}
.browser-card.highlighted {
    background: rgba(15, 108, 189, 0.05);
    border: 1px solid rgba(15, 108, 189, 0.4);
}

[data-theme="dark"] .browser-card.highlighted {
    background: rgba(15, 108, 189, 0.15);
    border: 1px solid rgba(15, 108, 189, 0.6);
}

.browser-card.highlighted .dynamic-badge {
    background: var(--theme-color, #0f6cbd);
    color: #ffffff;
}

.dynamic-badge:empty {
    display: none;
}
.featured-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.featured-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 32px;
}
.scroller {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
}
.scroller-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll 20s linear infinite;
}
.scroller-track:hover {
    animation-play-state: paused;
}
.featured-logo {
    max-height: 30px;
    width: auto;
    filter: grayscale(100%) opacity(50%);
    transition: filter 0.3s ease, transform 0.2s ease;
    display: block;
}
[data-theme="dark"] .featured-logo {
    filter: grayscale(100%) invert(1) brightness(2) opacity(50%);
}
.featured-logo:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

[data-theme="dark"] .featured-logo:hover {
    filter: grayscale(0%) invert(1) brightness(2) opacity(100%);
}
@keyframes scroll {
    to {
        transform: translate(calc(-50% - 40px)); 
    }
}
@media (max-width: 768px) {
    .scroller-track {
        gap: 48px;
    }
    @keyframes scroll {
        to {
            transform: translate(calc(-50% - 24px)); 
        }
    }
}