:root {
    --color-bg: #0d1117;
    --color-bg-secondary: #161b22;
    --color-bg-tertiary: #1c2128;
    --color-surface: #21262d;
    --color-border: #30363d;
    --color-text: #e6edf3;
    --color-text-secondary: #8b949e;
    --color-text-muted: #6e7681;
    --color-cyan: #5de5f9;
    --color-cyan-light: #7eecff;
    --color-purple: #a855f7;
    --color-purple-light: #c084fc;
    --gradient-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    --gradient-text: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow-cyan: 0 0 40px rgba(93, 229, 249, 0.25);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ------------------------------- */
/* NAVIGATION & HEADER */
/* ------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active-nav {
    color: var(--color-text);
}

.nav-link-github {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.nav-link-github:hover {
    background: var(--color-bg-tertiary);
}

/* ------------------------------- */
/* BUTTONS */
/* ------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #0d1117;
    font-weight: 700;
    box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(93, 229, 249, 0.4);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    background: rgba(93, 229, 249, 0.1);
}

/* ------------------------------- */
/* HERO SECTION */
/* ------------------------------- */

.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(93, 229, 249, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.08), transparent);
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-cyan);
    background: rgba(93, 229, 249, 0.1);
    border: 1px solid rgba(93, 229, 249, 0.3);
    border-radius: var(--radius-2xl);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.stat-icon {
    color: var(--color-cyan);
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    border: 1px solid var(--color-border);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, var(--color-bg) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------- */
/* SECTIONS */
/* ------------------------------- */

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ------------------------------- */
/* FEATURES GRID (INDEX PAGE) */
/* ------------------------------- */

.features {
    padding: 6rem 0;
    background: var(--color-bg-secondary);
}

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

.feature-card {
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(93, 229, 249, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ------------------------------- */
/* SCREENSHOTS */
/* ------------------------------- */

.screenshots {
    padding: 6rem 0;
}

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

.screenshot-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.screenshot-card-wide {
    grid-column: span 2;
}

.screenshot-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.screenshot-image {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.screenshot-card:hover .screenshot-image {
    transform: scale(1.02);
}

.screenshot-title {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem 0.5rem;
}

.screenshot-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    padding: 0 1.5rem 1.5rem;
}

/* ------------------------------- */
/* CTA */
/* ------------------------------- */

.cta {
    padding: 6rem 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(93, 229, 249, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(168, 85, 247, 0.08), transparent),
        var(--color-bg-secondary);
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ------------------------------- */
/* FOOTER */
/* ------------------------------- */

.footer {
    padding: 4rem 0 2rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.footer-column a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ------------------------------- */
/* RESPONSIVE */
/* ------------------------------- */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--color-bg);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

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

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

    .screenshot-card-wide {
        grid-column: span 1;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------- */
/* ANIMATIONS */
/* ------------------------------- */

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ========================================================= */
/* FEATURES + COMPARISON PAGE ADDITIONS */
/* ========================================================= */

.features-hero {
    padding: 6.5rem 0 3.5rem;
    text-align: center;
}

.feature-compare-container {
    padding: 3rem 0 6rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.feature-row:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(93,229,249,0.10);
}

.feature-title-compare {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-desc-compare {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.compare-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    font-size: 0.9rem;
}

.compare-entry .label {
    font-weight: 600;
}

.compare-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 999px;
    font-weight: 700;
}

.badge-yes {
    background: rgba(93,229,249,0.12);
    color: var(--color-cyan);
    border: 1px solid rgba(93,229,249,0.18);
}

.badge-partial {
    background: rgba(168,85,247,0.1);
    color: var(--color-purple);
    border: 1px solid rgba(168,85,247,0.15);
}

.badge-no {
    background: rgba(110,119,129,0.06);
    color: var(--color-text-muted);
    border: 1px solid rgba(110,119,129,0.10);
}

.compare-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-input {
    min-width: 240px;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.chip {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.chip.active {
    border-color: var(--color-cyan);
    background: rgba(93,229,249,0.06);
    color: var(--color-cyan);
}

/* Responsive adjustments for comparison page */
@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
    }

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