:root {
    --primary: #627cf3;
    --primary-hover: #4f66d8;
    --background: #181b26;
    --background-alt: #1f2330;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-radius: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--background-alt);
}

.mt-4 {
    margin-top: 2rem;
}

/* GLASSMORPHISM */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* GRADIENTS & GLOWS */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(98, 124, 243, 0.15) 0%, rgba(24, 27, 38, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(98, 124, 243, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 124, 243, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.navbar nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a:not(.btn) {
    color: var(--text-muted);
}

.navbar nav a:not(.btn):hover {
    color: white;
}

/* HERO */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
}

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

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(98, 124, 243, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(98, 124, 243, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.main-screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .main-screenshot {
    transform: rotateX(0deg) scale(1.02);
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--card-radius);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

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

/* GALLERY */
.gallery-carousel-wrapper {
    overflow-x: auto;
    padding: 40px 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.gallery-carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.gallery-track {
    display: flex;
    gap: 32px;
    padding: 0 20px;
    width: max-content;
    margin: 0 auto;
}

.gallery-item {
    width: 600px;
    border-radius: var(--card-radius);
    padding: 10px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.gallery-item .caption {
    padding: 12px 0 4px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
}

/* TECH STACK */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.tech-item {
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.tech-name {
    font-weight: 600;
    color: var(--text-muted);
}

/* QUICK START */
.cta-card {
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.code-block-wrapper {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    text-align: left;
}

pre {
    background: #0d1117;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', monospace;
    color: #e6edf3;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* FOOTER */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
}

.social-links {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

/* CHANGELOG */
.changelog-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: var(--card-radius);
    padding: 40px;
    max-height: 600px;
    overflow-y: auto;
}

.changelog-wrapper::-webkit-scrollbar {
    width: 8px;
}

.changelog-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.changelog-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.changelog-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.changelog-content h2:first-child {
    margin-top: 0;
}

.changelog-content h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 20px 0 12px;
    font-weight: 600;
}

.changelog-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.changelog-content li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.changelog-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 24px 0;
}

.changelog-content code {
    background: rgba(98, 124, 243, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.changelog-content a {
    color: var(--primary);
}

.changelog-content a:hover {
    text-decoration: underline;
}

.changelog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.changelog-error {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.changelog-error a {
    color: var(--primary);
    margin-top: 12px;
    display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar nav {
        display: none;
    }

    /* Simplified for MVP */

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

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

    .gallery-item {
        width: 85vw;
    }

    .cta-card {
        padding: 30px;
    }
}