/* ===== CATPPUCCIN MOCHA COLOR PALETTE ===== */
:root {
    /* Base colors */
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;
    --ctp-surface0: #313244;
    --ctp-surface1: #45475a;
    --ctp-surface2: #585b70;

    /* Text colors */
    --ctp-text: #cdd6f4;
    --ctp-subtext0: #a6adc8;
    --ctp-subtext1: #bac2de;

    /* Accent colors */
    --ctp-lavender: #b4befe;
    --ctp-blue: #89b4fa;
    --ctp-sapphire: #74c7ec;
    --ctp-sky: #89dceb;
    --ctp-teal: #94e2d5;
    --ctp-green: #a6e3a1;
    --ctp-yellow: #f9e2af;
    --ctp-peach: #fab387;
    --ctp-maroon: #eba0ac;
    --ctp-red: #f38ba8;
    --ctp-mauve: #cba6f7;
    --ctp-pink: #f5c2e7;

    /* Semantic colors */
    --primary: var(--ctp-mauve);
    --secondary: var(--ctp-blue);
    --success: var(--ctp-green);
    --warning: var(--ctp-yellow);
    --danger: var(--ctp-red);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(203, 166, 247, 0.3);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--ctp-base);
    color: var(--ctp-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ctp-text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ctp-lavender);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--ctp-mauve) 0%, var(--ctp-pink) 50%, var(--ctp-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ctp-surface0);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ctp-text);
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--ctp-subtext0);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--ctp-base) 0%, var(--ctp-mantle) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(203, 166, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--ctp-subtext0);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hero-features {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
}

.hero-feature svg {
    color: var(--ctp-green);
}

/* ===== APP WINDOW DEMO ===== */
.hero-image {
    position: relative;
    z-index: 1;
}

.app-window {
    background: var(--ctp-mantle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ctp-surface0);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.window-header {
    background: var(--ctp-surface0);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--ctp-surface1);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: var(--ctp-red); }
.dot-yellow { background: var(--ctp-yellow); }
.dot-green { background: var(--ctp-green); }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ctp-subtext0);
}

.window-content {
    padding: var(--spacing-lg);
    min-height: 200px;
}

.demo-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.demo-line {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--ctp-surface0);
    border-radius: var(--radius-md);
    animation: slideIn 0.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.demo-line.delay-1 {
    animation-delay: 1s;
}

.demo-line.delay-2 {
    animation-delay: 2s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-icon {
    font-size: 1.5rem;
}

.demo-content {
    color: var(--ctp-text);
    font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ctp-mauve) 0%, var(--ctp-pink) 100%);
    color: var(--ctp-crust);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface1);
}

.btn-secondary:hover {
    background: var(--ctp-surface1);
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, var(--ctp-mauve) 0%, var(--ctp-pink) 100%);
    color: var(--ctp-crust);
    font-size: 1.25rem;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: var(--spacing-xs);
}

.btn-download:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.download-size {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--ctp-subtext0);
    margin-bottom: var(--spacing-2xl);
}

/* ===== FEATURES ===== */
.features {
    background: var(--ctp-mantle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--ctp-base);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ctp-surface0);
    transition: all 0.3s ease;
    opacity: 0;
}

.feature-card.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ctp-mauve) 0%, var(--ctp-pink) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    color: var(--ctp-crust);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--ctp-subtext0);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--ctp-base);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    opacity: 0;
}

.step.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ctp-mauve) 0%, var(--ctp-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ctp-crust);
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.step-description {
    color: var(--ctp-subtext0);
}

.step-arrow {
    color: var(--primary);
}

/* ===== DOWNLOAD ===== */
.download {
    background: var(--ctp-mantle);
}

.download-card {
    background: linear-gradient(135deg, var(--ctp-surface0) 0%, var(--ctp-surface1) 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--ctp-surface2);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--ctp-subtext0);
    margin-bottom: var(--spacing-xl);
}

.download-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--ctp-surface2);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.download-info p {
    color: var(--ctp-subtext0);
}

.download-info strong {
    color: var(--ctp-text);
}

.download-links {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.download-link {
    color: var(--primary);
    font-weight: 500;
}

.separator {
    color: var(--ctp-surface2);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ctp-crust);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--ctp-surface0);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-description {
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ctp-text);
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-text {
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-github {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--ctp-surface0);
    border-radius: var(--radius-sm);
    color: var(--ctp-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.footer-github:hover {
    background: var(--ctp-surface1);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--ctp-surface0);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--ctp-subtext0);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-bottom a {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        gap: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .nav {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
