:root {
    --dark: #121131;
    --dark-surface: #181845;
    --dark-elevated: #1e1e5a;
    --lavender: #F0F0FF;
    --lavender-dim: #a0a0c0;
    --berry: #A1A8FF;
    --berry-glow: rgba(161, 168, 255, 0.3);
    --berry-subtle: rgba(161, 168, 255, 0.08);
    --code-bg: #0e0e30;
    --font-display: 'Quicksand', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-max: 1120px;
    --section-padding: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    background-image: radial-gradient(circle, rgba(161, 168, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--lavender);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

a {
    color: var(--berry);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

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

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-inner {
    max-width: 720px;
}

.hero-title {
    color: var(--lavender);
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title .accent {
    color: var(--berry);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--berry);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--lavender-dim);
    max-width: 540px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-code {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid var(--berry);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn:hover {
    border-bottom-color: var(--berry);
}

.btn-primary {
    background: var(--berry);
    color: var(--dark);
}

.btn-primary:hover {
    box-shadow: 0 0 24px var(--berry-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--berry);
}

.btn-secondary:hover {
    background: var(--berry-subtle);
    box-shadow: 0 0 24px var(--berry-glow);
}

/* Sections */

section {
    padding: var(--section-padding) 0;
}

.section-heading {
    margin-bottom: 56px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--lavender-dim);
    max-width: 540px;
}

/* Feature Grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-elevated);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--berry);
    box-shadow: 0 0 40px var(--berry-glow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--berry);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--lavender-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Code Blocks */

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--dark-elevated);
    border-top: 2px solid var(--berry);
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: var(--lavender);
    line-height: 1.6;
    tab-size: 4;
}

.code-block code {
    font-size: 0.8rem;
}

/* Code Showcase */

.code-showcase .code-block {
    max-width: 720px;
}

/* Getting Started */

.steps {
    max-width: 720px;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--berry);
    color: var(--dark);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content .code-block {
    margin-top: 12px;
}

.step-note {
    color: var(--lavender-dim);
    font-size: 0.95rem;
    margin-top: 32px;
    max-width: 720px;
}

.step-note a {
    font-weight: 500;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--dark-elevated);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand h3 {
    color: var(--berry);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--lavender-dim);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4,
.footer-about h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lavender-dim);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--lavender-dim);
}

.footer-about a {
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--dark-elevated);
    padding-top: 24px;
    text-align: center;
    color: var(--lavender-dim);
    font-size: 0.8rem;
}

/* Animations */

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