:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --background: #0f172a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: blur(12px);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --radius: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Header */
header {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: fadeDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

/* Main Content */
main {
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.pdf-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 30px -10px var(--primary);
    color: white;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

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

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

/* Info Sections */
.info-section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-section h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--secondary);
    border-radius: 2px;
}

.info-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #e2e8f0;
}

.info-content h4 {
    color: #cbd5e1;
    margin-top: 25px;
}

.info-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.info-content ul,
.info-content ol {
    margin-left: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.info-content li {
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Code Blocks */
.info-content pre {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.info-content code {
    font-family: 'Fira Code', monospace;
    color: #a5b4fc;
}

.info-content p code {
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #818cf8;
}

/* Blockquote */
.info-content blockquote {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    color: #cbd5e1;
}

/* License Note */
.license-note {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-left: 4px solid #eab308;
    padding: 20px;
    border-radius: 8px;
    color: #e2e8f0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 30px 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

/* Scroll Animation Utilities */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hover effects still work after animation */
.feature-card.is-visible:hover {
    transform: translateY(-5px);
}