:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --white: #ffffff;
    --black: #000000;

    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.7;
    font-size: 16px;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gray-900);
}

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

/* Hero */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-200);
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

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

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

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.feature-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Steps */
.steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2.5rem;
}

.step::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

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

.step p {
    color: var(--gray-600);
}

/* Info Box */
.info-box {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* CTA */
.cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-900);
    border-radius: var(--radius);
    color: var(--white);
    margin: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--gray-200);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gray-50);
}

.footer p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0.5rem 0;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Documentation Pages */
.doc-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: var(--gray-900);
}

.sidebar a.active {
    color: var(--primary);
    font-weight: 600;
}

.doc-content {
    max-width: 800px;
}

.doc-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.doc-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.doc-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.doc-content p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.doc-content ul,
.doc-content ol {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content code {
    background: var(--gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.875em;
    color: var(--primary-dark);
}

.doc-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .section {
        padding: 3rem 0;
    }

    .doc-layout,
    .doc-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Additional Documentation Styles */
.lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tip-box {
    padding: 1.5rem;
    background: #dcfce7;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.tip-box strong {
    color: var(--primary-dark);
}

.warning-box {
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: var(--radius);
    border-left: 4px solid #f59e0b;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 0.75rem;
}

.success-box {
    padding: 1.5rem;
    background: #dcfce7;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.success-box h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.glossary {
    margin: 1.5rem 0;
}

.glossary dt {
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.glossary dd {
    color: var(--gray-700);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-list li {
    counter-increment: step-counter;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.next-steps {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.next-card {
    padding: 2rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}

.next-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.next-card h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.next-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.reference-links {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.reference-links h3 {
    margin-bottom: 1rem;
}

.reference-links ul {
    list-style: none;
    padding: 0;
}

.reference-links li {
    margin-bottom: 0.75rem;
}

.reference-links a {
    color: var(--primary);
    text-decoration: none;
}

.reference-links a:hover {
    text-decoration: underline;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* CSS Variables for better theming */
:root {
    --primary-green: #22c55e;
    --text-secondary: var(--gray-600);
    --bg-secondary: var(--gray-50);
    --glass-border: var(--gray-200);
    --radius-lg: 12px;
    --transition-base: all 0.2s ease;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}