:root {
    --bg-color: #0d0d0f;
    --card-bg: #18181b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --border: #27272a;
    --glow: rgba(139, 92, 246, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo img {
    width: 28px;
    height: 28px;
}

a.logo {
    text-decoration: none;
    color: inherit;
}

/* ── Typography ── */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e4e4e7;
    transform: translateY(-1px);
}

.btn-sm {
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ── Hero Section ── */
.hero {
    padding: 6rem 0 4rem;
    overflow: hidden;
}

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

.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Platform download buttons row */
.platform-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 320px;
    margin-bottom: 0.5rem;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.platform-btn:hover {
    background: var(--border);
    transform: translateY(-1px);
    border-color: #3f3f46;
}

.platform-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.trust-signal {
    display: block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Hero Dual Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshots {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-mobile {
    position: relative;
    width: 260px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #000;
    z-index: 2;
    overflow: hidden;
}

.screenshot-mobile img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* ── Platforms Section ── */
.platforms-section {
    padding: 4rem 0;
    text-align: center;
}

.platforms-section h2 {
    margin-bottom: 0.5rem;
}

.platforms-section>.container>p {
    margin-bottom: 3rem;
}

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

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.platform-card:hover {
    border-color: #3f3f46;
    transform: translateY(-4px);
}

.platform-card .platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 0.25rem;
}

.platform-card .platform-icon svg {
    width: 32px;
    height: 32px;
}

.platform-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.platform-card p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.platform-card .platform-link {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: auto;
}

/* ── Path Routing (Choose Your Path) ── */
.path-section {
    padding: 3rem 0;
}

.path-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.path-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.path-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.path-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.path-links .btn {
    width: 100%;
}

.path-links .secondary-link {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: underline;
    margin-top: 0.25rem;
}

.path-links .secondary-link:hover {
    color: var(--text-primary);
}

/* ── Quick Start ── */
.quick-start-section {
    padding: 2rem 0;
}

.quick-start-box {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-start-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.qs-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qs-step {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.qs-num {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.qs-note {
    font-size: 0.875rem;
    color: #a78bfa;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* ── Callouts ── */
.callout-box {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #fdba74;
    font-size: 0.9375rem;
}

.callout-icon {
    flex-shrink: 0;
}

/* ── Content Sections ── */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.content-block ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* ── Features Grid ── */
.features {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f11);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-tag.tag-all {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.feature-tag.tag-extension {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.feature-tag.tag-mobile {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

/* ── How It Works ── */
.how-it-works {
    padding: 6rem 0;
    text-align: center;
}

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

/* ── App Gallery Carousel ── */
.app-gallery {
    padding: 4rem 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 2rem 2rem;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px -12px rgba(139, 92, 246, 0.2);
}

.gallery-slide img {
    display: block;
    width: auto;
    height: 480px;
    object-fit: cover;
}

/* ── Demo & Infographic ── */
.demo-section {
    padding: 4rem 0;
    text-align: center;
}

.infographic-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.infographic-wrapper img {
    width: 100%;
    display: block;
}

.demo-video {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
    background: #000;
}

.demo-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* ── Privacy Grid ── */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.privacy-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.privacy-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ── Compatibility ── */
.compat-list {
    list-style: none;
    padding: 0;
}

.compat-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.compat-list li:last-child {
    border-bottom: none;
}

.compat-list strong {
    color: var(--text-primary);
}

/* ── Troubleshooting ── */
.troubleshooting {
    margin-top: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.troubleshooting h3 {
    margin-bottom: 1rem;
}

.troubleshooting ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    text-align: left;
    list-style-position: outside;
}

.troubleshooting li {
    margin-bottom: 0.5rem;
}

/* ── Open Source Section ── */
.open-source-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f14, var(--bg-color));
    border-top: 1px solid var(--border);
}

.open-source-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.github-badges {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.github-badges a {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.github-badges a:hover {
    border-color: #3f3f46;
    transform: translateY(-1px);
}

.github-badges img {
    height: 20px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.repo-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.repo-card:hover {
    border-color: #3f3f46;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.15);
}

.repo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.repo-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.repo-info p {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.repo-link {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
}

.contribute-cta-wrapper {
    margin-top: 0.5rem;
}

.btn-contribute {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-contribute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-contribute svg {
    width: 20px;
    height: 20px;
}

/* ── FAQ ── */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f11);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding-bottom: 1.25rem;
}

.faq-item a {
    color: var(--accent);
}

/* ── CTA Section ── */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #0f0f11, var(--bg-color));
}

.cta-section h2 {
    margin-bottom: 0.75rem;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Footer ── */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-weight: 600;
}

.copyright {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.copyright a {
    color: var(--text-secondary);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--text-primary);
}

.links {
    display: flex;
    gap: 2rem;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── Accessibility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

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

    .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .platform-buttons {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-screenshots {
        height: 400px;
    }

    .screenshot-mobile {
        width: 200px;
        right: auto;
    }



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

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

    .content-grid,
    .privacy-grid {
        grid-template-columns: 1fr;
    }

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

    .open-source-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gallery-slide img {
        height: 360px;
    }
}

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

    .hero-screenshots {
        height: 380px;
    }

    .screenshot-mobile {
        width: 180px;
        right: auto;
    }


}