:root {
    /* Color Palette */
    --bg-base: #090b10;
    --bg-surface: #0e111a;
    --bg-card: rgba(22, 27, 39, 0.6);
    --bg-card-hover: rgba(30, 37, 54, 0.8);
    --bg-glass: rgba(14, 17, 26, 0.75);
    --bg-modal: rgba(4, 6, 10, 0.85);

    /* Brand Accents */
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.25);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.25);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.25);
    --accent-yellow: #eab308;
    --accent-yellow-glow: rgba(234, 179, 8, 0.25);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    --border-focus: rgba(59, 130, 246, 0.6);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

/* Ambient Background Lights */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.ambient-glow.top-left {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.ambient-glow.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    user-select: none;
    white-space: nowrap;
}

.brand-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.brand-text {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    padding: 0.3rem;
    background: transparent;
    border: none;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.github-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.github-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Common Section Layout */
.section {
    width: 85%;
    max-width: 80%;
    margin: 0 auto;
    padding: 100px 0 60px;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-header .section-main-title-yellow {
    color: var(--accent-yellow);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.section-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #9333ea 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 40px;
}

#features.section {
    padding-top: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.main-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.2rem;
}

.subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.75rem 0;
    min-width: 200px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.primary-btn:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.6);
    color: #ffffff;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* App Window Container */
.app-window {
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.img-zoom-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoom-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(9, 11, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.img-zoom-wrapper:hover .zoom-badge,
.card-img-wrapper:hover .zoom-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.carousel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    overflow: hidden;
    width: 100%;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
}

.slide-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.slide-badge.soft-blue {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.slide-badge.soft-purple {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.slide-badge.soft-green {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.highlight-blue {
    color: var(--accent-blue);
}

.highlight-purple {
    color: var(--accent-purple);
}

.highlight-green {
    color: var(--accent-green);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.93rem;
    color: var(--text-primary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.post-script {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-style: italic;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-indicators {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 99px;
}

/* Features Grid */
.features-grid-wrapper {
    margin-top: 2rem;
}

.section-subheading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subheading h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Attributions Section */
.attributions-section {
    padding-top: 20px;
    padding-bottom: 60px;
}

.attributions-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.attributions-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attribution-accordion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.attribution-accordion[open] {
    border-color: rgba(255, 255, 255, 0.15);
}

.attribution-section-title {
    padding: 1.1rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s ease;
}

.attribution-section-title::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.attribution-accordion[open] .accordion-icon::after {
    transform: rotate(90deg);
}

.attribution-accordion.is-collapsing .accordion-icon::after {
    transform: rotate(0deg) !important;
}

.attributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.2rem 1.4rem 1.4rem;
    border-top: 1px solid var(--border);
}

.attribution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attribution-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.attribution-title:hover {
    color: var(--accent-blue);
}

.license-btn,
.card-btn.primary {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.license-btn:hover,
.card-btn.primary:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.6);
    color: #ffffff;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 2rem;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    max-width: 600px;
}

.footer-license {
    font-size: 0.85rem;
    font-weight: unset;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    color-scheme: dark;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-scroll {
    width: 100vw;
    height: 100vh;
    overflow: auto;
    position: absolute;
    top: 0;
    left: 0;
    scroll-behavior: auto !important;
    color-scheme: dark;
}

.lightbox-centerer {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-centerer.zoomed {
    min-width: 200vw;
    min-height: 200vh;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: zoom-in;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox.active img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10000;
}

/* License Modal */
.license-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-modal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    color-scheme: dark;
}

.license-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(15px);
    transition: transform 0.25s ease;
    backdrop-filter: blur(16px);
}

.license-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-blue);
}

.modal-body {
    padding: 1.8rem;
    overflow-y: auto;
    flex-grow: 1;
    color-scheme: dark;
}

.modal-body pre {
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {

    .section,
    .nav-container,
    .footer-container {
        width: 88%;
        max-width: 88%;
    }
}

@media (max-width: 968px) {

    .hero-grid,
    .feature-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-badge,
    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .section,
    .nav-container,
    .footer-container {
        width: 100%;
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-container {
        padding: 0.75rem 1.25rem;
    }

    .brand {
        font-size: 1.05rem;
    }

    .github-link-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 25px;
    }

    .main-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .section-main-title {
        font-size: 1.75rem;
    }

    .primary-btn {
        min-width: unset;
        width: fit-content;
        max-width: 100%;
        padding: 0.75rem 1.75rem;
    }

    .carousel-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .attributions-container {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}