:root {
    --bg-color: #09090b;
    --card-bg: #18181b;
    --primary: #8b5cf6;
    --secondary: #a78bfa;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glass Effect Background */
.glass-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #3f3f46;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #27272a;
    border-color: var(--text-muted);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}


.screenshot-window {
    background: #1e1e1e;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.3);
}

.window-header {
    background: #252526;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

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

/* Features */
.features {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(24, 24, 27, 0.8);
}

.icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.card p {
    color: var(--text-muted);
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.screenshots h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.screenshot-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    position: relative;
}

.screenshot-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.screenshot-card.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screenshot-wrapper {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s;
}

.screenshot-wrapper:hover {
    box-shadow: 0 30px 70px rgba(139, 92, 246, 0.4);
    border-color: var(--primary);
}

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

.screenshot-label {
    margin-top: 2rem;
    padding: 0 1rem;
}

.screenshot-label h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screenshot-label p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.carousel-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot-indicator.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.dot-indicator:hover {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Download */
.download {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.download-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(24, 24, 27, 0.5));
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.btn-download i {
    font-size: 1.5rem;
}

.subtext {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.code-block {
    margin-top: 1rem;
    background: #000;
    border-radius: 8px;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.code-header {
    background: #27272a;
    padding: 5px 15px;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    color: #a78bfa;
}

.copy-btn {
    position: absolute;
    top: 40px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* GitHub Corner */
.github-corner {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
}

.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {

    0%,
    100% {
        transform: rotate(0);
    }

    20%,
    60% {
        transform: rotate(-25deg);
    }

    40%,
    80% {
        transform: rotate(10deg);
    }
}

@media (max-width: 500px) {
    .github-corner:hover .octo-arm {
        animation: none;
    }

    .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out;
    }
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

@media (max-width: 768px) {

    /* Global Section Spacing */
    .hero,
    .features,
    .download,
    nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero,
    .features,
    .download {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Navigation */
    nav {
        flex-direction: column;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .links a {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        display: block;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        display: flex;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        /* Reduce top padding specifically for hero on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 2rem auto;
    }

    .hero-content {
        margin-bottom: 3rem;
        width: 100%;
    }

    .hero-logo {
        width: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }


    /* Screenshot Window */
    .screenshot-window {
        margin-top: 1rem;
    }

    /* Features */
    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 1.5rem;
    }

    /* Screenshots Section */
    .screenshots {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .screenshots h2 {
        font-size: 2rem;
    }

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

    .screenshot-label h3 {
        font-size: 1.5rem;
    }

    .screenshot-label p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-controls {
        gap: 1rem;
        margin-top: 2rem;
    }

    /* Download Section */
    .download-container {
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Code Block */
    .code-block pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .copy-btn {
        top: 10px;
        right: 10px;
        position: relative;
        /* Move it into flow if needed, or keep absolute with adjustments */
        float: right;
        margin-top: -35px;
        /* Hacky fix, let's just keep it absolute but ensure container has space */
        z-index: 10;
        background: rgba(255, 255, 255, 0.15);
    }

    footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }
}

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

    .logo {
        font-size: 1.3rem;
    }

    .logo-img {
        height: 32px;
    }
}