/* Homepage Styles - Stelvio Landing Page */

/* Scoped styles for Homepage sections to avoid affecting global header */

.hero-section, .white-section, .resources-section {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.hero-section *, .white-section *, .resources-section * {
    box-sizing: border-box;
}

/* Old .homepage class removed/repurposed, layout is now section-based */

.hero-section {
    /* Responsive hero background - loads appropriate size per device */
    background:
        linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.8) 40%, rgba(10, 15, 26, 0.5) 70%, rgba(10, 15, 26, 0.3) 100%),
        url('../images/hero-mobile.jpg');
    background-size: cover;
    background-position: center bottom;
    color: #ffffff;
    min-height: calc(100vh - 60px); /* Account for header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Tablet: load medium hero */
@media (min-width: 641px) {
    .hero-section {
        background:
            linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.8) 40%, rgba(10, 15, 26, 0.5) 70%, rgba(10, 15, 26, 0.3) 100%),
            url('../images/hero-tablet.jpg');
        background-size: cover;
        background-position: center bottom;
        padding: 4rem 2rem;
    }
}

/* Desktop: load full hero */
@media (min-width: 1025px) {
    .hero-section {
        background:
            linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.8) 40%, rgba(10, 15, 26, 0.5) 70%, rgba(10, 15, 26, 0.3) 100%),
            url('../images/hero-desktop.jpg');
        background-size: cover;
        background-position: center bottom;
        padding: 5rem 2rem;
    }
}

/* Short viewport - ensure content doesn't get pushed down */
@media (max-height: 800px) and (min-width: 961px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 2rem;
    }
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
    width: 100%;
}

.hero-grid > * {
    min-width: 0; /* Prevent grid items from overflowing */
}

.hero-section .hero-text h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1rem !important;
    line-height: 1.1 !important;
    color: #f8fafc !important;
}

.hero-text h1 .gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .subheadline {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    margin-bottom: 1.5rem !important;
}

.hero-section .subheadline .semi-bold {
    font-weight: 500 !important;
}

/* Hero Call to Action Buttons */
.hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-section .hero-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #06b6d4 !important;
    color: #0a0f1a !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.hero-cta:hover {
    background: #22d3ee;
    transform: translateY(-1px);
}

.hero-section .hero-cta-secondary {
    display: inline-block !important;
    color: #f8fafc !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.2s ease !important;
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Install Commands */
.install-commands {
    display: flex;
    gap: 1rem;
}

.install-cmd {
    background: #111827;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.install-cmd code {
    color: #06b6d4;
    background: transparent !important;
}

.cmd-prefix {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Tech Stack Icons - white by default, colorful on hover */
.tech-stack {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tech-stack img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: all 0.2s;
}

.tech-stack img:hover {
    filter: none;
    opacity: 1;
}

/* Smaller screens: wrap and center tech stack */
@media (max-width: 1200px) {
    .tech-stack {
        gap: 1rem;
    }

    .tech-stack img {
        height: 24px;
    }
}

@media (max-width: 960px) {
    .tech-stack {
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tech-stack {
        gap: 1rem;
    }

    .tech-stack img {
        height: 20px;
    }
}

/* Code Window Container */
.hero-section .code-window {
    background: #1a1f2e;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
}

.hero-section .window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-section .window-content {
    background: #1a1f2e;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Pygments Highlighting Overrides for Hero */
.hero-section .highlight {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    background: transparent !important;
    border: none !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-section .highlight pre {
    margin: 0 !important;
    padding: 1rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.7rem !important;
    line-height: 1.5 !important;
    background: transparent !important;
    flex: 1;
    overflow: auto;
}

.hero-section .highlight pre code {
    font-size: 0.7rem !important;
    line-height: 1.5 !important;
}

.hero-section .highlight code {
    background: transparent !important;
    padding: 0 !important;
    font-size: inherit !important;
}

/* Syntax Highlighting - Match concept colors */
.hero-section .highlight .c,
.hero-section .highlight .cm,
.hero-section .highlight .cp,
.hero-section .highlight .c1,
.hero-section .highlight .cs { color: #546e7a !important } /* Comments - gray */

.hero-section .highlight .k,
.hero-section .highlight .kc,
.hero-section .highlight .kd,
.hero-section .highlight .kn,
.hero-section .highlight .kp,
.hero-section .highlight .kr,
.hero-section .highlight .ow { color: #c792ea !important } /* Keywords - purple */

.hero-section .highlight .kt,
.hero-section .highlight .nc,
.hero-section .highlight .nb,
.hero-section .highlight .bp { color: #ffcb6b !important } /* Types/Classes/Builtins - yellow */

.hero-section .highlight .nf,
.hero-section .highlight .nd,
.hero-section .highlight .nx { color: #82aaff !important } /* Functions/Decorators - blue */

.hero-section .highlight .s,
.hero-section .highlight .s1,
.hero-section .highlight .s2,
.hero-section .highlight .sb,
.hero-section .highlight .sc,
.hero-section .highlight .sd,
.hero-section .highlight .sh,
.hero-section .highlight .sx,
.hero-section .highlight .sr,
.hero-section .highlight .ss { color: #c3e88d !important } /* Strings - green */

.hero-section .highlight .si,
.hero-section .highlight .se,
.hero-section .highlight .o { color: #89ddff !important } /* Operators/Interpolation - cyan */

.hero-section .highlight .m,
.hero-section .highlight .mf,
.hero-section .highlight .mh,
.hero-section .highlight .mi,
.hero-section .highlight .mo,
.hero-section .highlight .il,
.hero-section .highlight .l,
.hero-section .highlight .ld,
.hero-section .highlight .no { color: #f9a66c !important } /* Numbers/Literals - orange */

.hero-section .highlight .n,
.hero-section .highlight .nn,
.hero-section .highlight .na,
.hero-section .highlight .ni,
.hero-section .highlight .nl,
.hero-section .highlight .py,
.hero-section .highlight .nv,
.hero-section .highlight .vc,
.hero-section .highlight .vg,
.hero-section .highlight .vi,
.hero-section .highlight .p,
.hero-section .highlight .w { color: #f8fafc !important } /* Names/Punctuation - white */

.hero-section .highlight .err { color: #f87171 !important }
.hero-section .highlight .ne,
.hero-section .highlight .nt { color: #f87171 !important }
.hero-section .highlight .ge { font-style: italic }
.hero-section .highlight .gs { font-weight: bold }
.hero-section .highlight .hll { background-color: #3e4451 !important }

/* Code Window Styles */
.hero-code {
    width: 100%;
}

/* Code dots and title */
.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}


/* --- New White Section Styles --- */

.white-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
    width: 100%;
    color: #1e293b;
}

.dark-section {
    background-color: #0f1623;
    padding: 6rem 2rem;
    width: 100%;
    color: white;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-column h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.text-column p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}

.dark-section .text-column h2 {
    color: white;
}

.dark-section .text-column p {
    color: #94a3b8;
}

.video-column {
    width: 100%;
}

/* Aspect ratio hack for responsive video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
        flex-wrap: wrap;
    }

    .install-commands {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-code {
        text-align: left;
    }
    
    /* Video section responsive */
    .content-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .video-column {
        order: 1; /* Video on top */
    }
    
    .text-column {
        order: 2; /* Text below video */
        text-align: center;
    }

    .text-column p {
        text-align: left; /* Keep paragraphs readable */
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .white-section {
        padding: 4rem 1.5rem;
    }
}

/* --- Resources Section --- */
.resources-section {
    background: #0a0f1a;
    color: white;
    padding: 4rem 2rem 6rem;
    overflow: hidden;
}

.resources-container {
    max-width: 1000px;
    margin: 0 auto;
}

.resources-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resources-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.resources-header p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Grid Layout */
.resources-grid {
    display: grid;
    gap: 3rem;
}

/* Desktop: 1fr 2fr */
@media (min-width: 961px) {
    .resources-grid {
        grid-template-columns: 260px minmax(auto, 700px);
        gap: 2rem;
        align-items: flex-start;
    }
}

/* --- Left Nav Tabs --- */
.resources-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    background-color: #111827;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: #94a3b8;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.nav-btn.active {
    background-color: #06b6d4;
    color: #0a0f1a;
    border-color: #06b6d4;
}

.nav-icon {
    font-size: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    flex-grow: 1;
}

.nav-text h3 {
    margin: 0 0 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.nav-text p {
    margin: 0;
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.3;
}

/* --- Right Content Area --- */
.resources-content {
    background: #111827;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.05);
    min-height: 300px;
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-pane p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.tab-pane p code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #e2e8f0;
}

/* Code block overrides inside tab pane - macOS style window */
.tab-pane .highlight {
    background-color: #1a1f2e !important;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 0 0 1rem 0;
    position: relative;
}

/* Add dots header via pseudo-element */
.tab-pane .highlight::before {
    content: '';
    display: block;
    height: 12px;
    padding: 0.7rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.tab-pane .highlight::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f;
}

.tab-pane .highlight pre {
    margin: 0;
    padding: 0.75rem 1rem !important;
    background: transparent !important;
    font-size: 0.7rem;
    line-height: 1.5;
}

.tab-pane .highlight pre code {
    font-size: 0.7rem !important;
}

/* Syntax colors for tab panes (same as hero) */
.tab-pane .highlight .c,
.tab-pane .highlight .cm,
.tab-pane .highlight .cp,
.tab-pane .highlight .c1,
.tab-pane .highlight .cs { color: #546e7a !important } /* Comments - gray */

.tab-pane .highlight .k,
.tab-pane .highlight .kc,
.tab-pane .highlight .kd,
.tab-pane .highlight .kn,
.tab-pane .highlight .kp,
.tab-pane .highlight .kr,
.tab-pane .highlight .ow { color: #c792ea !important } /* Keywords - purple */

.tab-pane .highlight .kt,
.tab-pane .highlight .nc,
.tab-pane .highlight .nb,
.tab-pane .highlight .bp { color: #ffcb6b !important } /* Types/Classes/Builtins - yellow */

.tab-pane .highlight .nf,
.tab-pane .highlight .nd,
.tab-pane .highlight .nx { color: #82aaff !important } /* Functions/Decorators - blue */

.tab-pane .highlight .s,
.tab-pane .highlight .s1,
.tab-pane .highlight .s2,
.tab-pane .highlight .sb,
.tab-pane .highlight .sc,
.tab-pane .highlight .sd,
.tab-pane .highlight .sh,
.tab-pane .highlight .sx,
.tab-pane .highlight .sr,
.tab-pane .highlight .ss { color: #c3e88d !important } /* Strings - green */

.tab-pane .highlight .si,
.tab-pane .highlight .se,
.tab-pane .highlight .o { color: #89ddff !important } /* Operators/Interpolation - cyan */

.tab-pane .highlight .m,
.tab-pane .highlight .mf,
.tab-pane .highlight .mh,
.tab-pane .highlight .mi,
.tab-pane .highlight .mo,
.tab-pane .highlight .il,
.tab-pane .highlight .l,
.tab-pane .highlight .ld,
.tab-pane .highlight .no { color: #f9a66c !important } /* Numbers/Literals - orange */

.tab-pane .highlight .n,
.tab-pane .highlight .nn,
.tab-pane .highlight .na,
.tab-pane .highlight .ni,
.tab-pane .highlight .nl,
.tab-pane .highlight .py,
.tab-pane .highlight .nv,
.tab-pane .highlight .vc,
.tab-pane .highlight .vg,
.tab-pane .highlight .vi,
.tab-pane .highlight .p,
.tab-pane .highlight .w { color: #f8fafc !important } /* Names/Punctuation - white */

/* --- Mobile / Tablet Responsiveness --- */
@media (max-width: 960px) {
    .resources-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .resources-header h2 {
        font-size: 2rem;
    }

    /* Mobile Dropdown - Clean Reset */
    .resources-nav {
        padding: 0 !important;
        margin: 0 !important;
        background: #1e293b !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        height: 56px !important;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid #475569 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .resources-nav.expanded {
        height: auto !important;
    }

    /* ALL buttons - exact same sizing */
    .resources-nav .nav-btn {
        background: #1e293b !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 1rem !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        position: relative !important;
    }

    /* Separator line - as pseudo on bottom */
    .resources-nav .nav-btn:not(:last-child)::before {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 1rem !important;
        right: 1rem !important;
        height: 1px !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Active item styling */
    .resources-nav .nav-btn.active {
        background: #06b6d4 !important;
        color: #0a0f1a !important;
        order: -1 !important;
    }

    /* No separator after active */
    .resources-nav .nav-btn.active::before {
        display: none !important;
    }

    /* Text reset */
    .resources-nav .nav-btn .nav-text h3,
    .resources-nav .nav-btn .nav-text p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }

    .resources-nav .nav-btn .nav-text h3 {
        margin-bottom: 2px !important;
    }

    /* Chevron on active */
    .resources-nav .nav-btn.active::after {
        content: '' !important;
        width: 10px !important;
        height: 10px !important;
        border-right: 2px solid #0a0f1a !important;
        border-bottom: 2px solid #0a0f1a !important;
        border-top: none !important;
        border-left: none !important;
        transform: rotate(45deg) !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        background: none !important;
        position: static !important;
    }

    .resources-nav.expanded .nav-btn.active::after {
        transform: rotate(-135deg) !important;
    }

    /* Hover */
    .resources-nav .nav-btn:not(.active):hover {
        background: #283548 !important;
    }
}


.docs-link {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.docs-link:hover {
    text-decoration: underline;
}

/* --- Video Section --- */
.video-section {
    background: #111827;
    padding: 5rem 2rem;
}

.video-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.video-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.video-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
}

.video-player {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-text {
        text-align: center;
    }
}

/* --- Features Section --- */
.features-section {
    background: #0a0f1a;
    padding: 4rem 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.features-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.features-header p {
    font-size: 1rem;
    color: #94a3b8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #111827;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.feature-card code {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CTA Section --- */
.cta-section {
    background: #111827;
    padding: 6rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #06b6d4;
    color: #0a0f1a;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #22d3ee;
    transform: translateY(-1px);
}

.cta-secondary-links {
    margin-top: 1.5rem;
}

.cta-secondary-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cta-secondary-links a:hover {
    color: #06b6d4;
}

/* --- Site Footer --- */
.site-footer {
    background: #0a0f1a;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.site-footer p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Hide palette toggle on homepage when forced dark mode is active */
body.force-dark-home .md-header__option[data-md-component="palette"] {
    display: none !important;
}

