/* === Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --teal: #029386;
    --teal-dark: #017a6f;
    --teal-light: #e6f5f4;
    --apricot: #ffb16d;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.site-header nav {
    display: flex;
    gap: 28px;
}

.site-header nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--teal);
    text-decoration: none;
}

/* === Hero === */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--teal-light) 0%, var(--white) 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--teal-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    text-decoration: none;
    transform: translateY(-1px);
}

/* === Features === */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 48px;
}

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

.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 10px;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* === Highlights === */
.highlights {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

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

.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 6px;
}

.highlight-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.55;
}

.highlight-item code {
    background: var(--gray-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gray-700);
}

/* === Getting Started === */
.getting-started {
    padding: 80px 0;
}

.getting-started h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
}

.section-intro {
    text-align: center;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: 1.05rem;
}

.step {
    margin-bottom: 48px;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.step > p {
    margin: 0 0 16px 50px;
    color: var(--gray-500);
}

.step > p code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--gray-700);
}

/* === Code Block === */
.code-block {
    margin-left: 50px;
    background: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.code-header span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--gray-600);
    color: var(--gray-300);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--gray-700);
    border-color: var(--gray-500);
    color: var(--white);
}

.code-block pre {
    margin: 0;
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.65;
}

.code-block code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    color: #e2e8f0;
}

/* === Requirements === */
.requirements {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.requirements h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 20px;
}

.requirements ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.requirements li {
    padding: 6px 0;
    font-size: 1rem;
}

.requirements li::before {
    content: '✓';
    color: var(--teal);
    font-weight: 700;
    margin-right: 10px;
}

.requirements .note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-400);
    font-style: italic;
}

/* === Footer === */
.site-footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.site-footer a {
    color: var(--gray-500);
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--teal);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        padding: 64px 0 56px;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

    .highlight-list {
        grid-template-columns: 1fr;
    }

    .step > p,
    .code-block {
        margin-left: 0;
    }

    .step-header {
        margin-bottom: 10px;
    }

    .site-header .container {
        height: 56px;
    }

    .site-header nav {
        gap: 16px;
    }

    .site-header nav a {
        font-size: 0.85rem;
    }
}
