/* CSS Variables & Theme */
:root {
    --primary-hue: 220;
    --accent-hue: 270;
    --bg-dark: hsl(222, 47%, 7%);
    --bg-card: hsl(222, 40%, 10%);
    --bg-card-hover: hsl(222, 40%, 13%);
    --text-primary: hsl(220, 20%, 95%);
    --text-secondary: hsl(220, 15%, 65%);
    --text-muted: hsl(220, 10%, 45%);
    --border-color: hsl(220, 30%, 18%);
    --gradient-start: hsl(var(--primary-hue), 100%, 65%);
    --gradient-mid: hsl(calc(var(--primary-hue) + 40), 100%, 60%);
    --gradient-end: hsl(var(--accent-hue), 100%, 70%);
    --shadow-glow: 0 0 60px hsla(var(--primary-hue), 100%, 50%, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, hsla(220, 100%, 50%, 0.5), hsla(280, 100%, 50%, 0.3));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, hsla(280, 100%, 50%, 0.4), hsla(180, 100%, 50%, 0.3));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, hsla(180, 100%, 50%, 0.3), hsla(220, 100%, 50%, 0.4));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: hsla(222, 47%, 7%, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.5rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.nav-github:hover {
    background: var(--bg-card-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: hsla(var(--primary-hue), 100%, 50%, 0.1);
    border: 1px solid hsla(var(--primary-hue), 100%, 50%, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gradient-start);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-start);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    box-shadow: 0 4px 20px hsla(var(--primary-hue), 100%, 50%, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px hsla(var(--primary-hue), 100%, 50%, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: hsla(var(--primary-hue), 100%, 50%, 0.3);
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item img {
    height: 24px;
}

/* Hero Image */
.hero-image {
    perspective: 1000px;
}

.browser-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: hsl(222, 40%, 8%);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-address {
    flex: 1;
    background: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.browser-content img {
    width: 100%;
    display: block;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Grid */
.features {
    background: linear-gradient(180deg, transparent, hsla(222, 47%, 5%, 0.5), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: hsla(var(--primary-hue), 100%, 50%, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsla(var(--primary-hue), 100%, 50%, 0.15), hsla(var(--accent-hue), 100%, 50%, 0.1));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gradient-start);
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    border-color: hsla(var(--primary-hue), 100%, 50%, 0.3);
    box-shadow: var(--shadow-glow);
}

.screenshot-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.screenshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-item:hover .screenshot-wrapper img {
    transform: scale(1.05);
}

.screenshot-info {
    padding: 20px;
}

.screenshot-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.screenshot-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Quick Start */
.quickstart {
    background: linear-gradient(180deg, transparent, hsla(222, 47%, 5%, 0.5), transparent);
}

.quickstart-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
}

.tab-btn.active {
    background: linear-gradient(135deg, hsla(var(--primary-hue), 100%, 50%, 0.15), hsla(var(--accent-hue), 100%, 50%, 0.1));
    border-color: hsla(var(--primary-hue), 100%, 50%, 0.3);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.code-block {
    background: hsl(222, 50%, 6%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: hsl(222, 45%, 8%);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: hsl(180, 70%, 70%);
}

.quickstart-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    background: hsla(var(--primary-hue), 100%, 50%, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quickstart-note a {
    color: var(--gradient-start);
    font-weight: 500;
}

.quickstart-note svg {
    stroke: var(--gradient-start);
    flex-shrink: 0;
}

/* Documentation Cards */
.docs {
    padding: 60px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.doc-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: hsla(var(--primary-hue), 100%, 50%, 0.3);
}

.doc-card svg {
    width: 32px;
    height: 32px;
    stroke: var(--gradient-start);
}

.doc-card h4 {
    font-weight: 600;
    font-size: 1.1rem;
}

.doc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(135deg, hsla(var(--primary-hue), 100%, 50%, 0.08), hsla(var(--accent-hue), 100%, 50%, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid hsla(var(--primary-hue), 100%, 50%, 0.2);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-coffee {
    background: linear-gradient(135deg, #FFDD00, #FFB700);
    color: #000;
    font-weight: 700;
}

.btn-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 221, 0, 0.3);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

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

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

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

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 100px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

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

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

    .browser-mockup {
        transform: none;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 16px 60px;
    }

    section {
        padding: 60px 0;
    }

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

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

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

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

    .cta-content {
        padding: 40px 24px;
    }

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