:root {
    --bg-dark: #070a10;
    --bg-surface: #0d131f;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-dark: #059669;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --primary: #10b981;
    --primary-hover: #059669;
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --border-light: rgba(148, 163, 184, 0.14);
    --glow-emerald: rgba(16, 185, 129, 0.25);
    --glow-cyan: rgba(6, 182, 212, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.08), transparent 35%),
        linear-gradient(to bottom, rgba(17, 24, 39, 0.3) 1px, transparent 1px),
        linear-gradient(to right, rgba(17, 24, 39, 0.3) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
nav {
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(7, 10, 16, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-tag {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--emerald-light);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

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

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

.nav-links a:hover {
    color: var(--emerald-light);
}

.nav-links a.nav-repo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.nav-links a.nav-repo:hover {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan-light);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--emerald-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-light);
    box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 34px;
    max-width: 620px;
    line-height: 1.7;
}

.hero p strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
    color: #04130e;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.4);
    filter: brightness(1.06);
}

.btn-secondary {
    background-color: rgba(17, 24, 39, 0.8);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.7);
    border-color: var(--emerald);
    transform: translateY(-2px);
}

/* Hero Visual Showcase */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.emblem-card {
    position: relative;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 23, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.emblem-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.emblem-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #070a10;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.emblem-card:hover .emblem-img {
    transform: scale(1.03);
}

.emblem-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.emblem-caption strong {
    color: var(--emerald-light);
    font-family: monospace;
    font-size: 0.8rem;
}

/* Metrics / Key Parameters Strip */
.metrics-strip {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(8px);
}

.metric-item {
    border-left: 2px solid rgba(16, 185, 129, 0.35);
    padding-left: 16px;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 2px;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Docs Grid */
.docs-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

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

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
}

.card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 22px;
    flex-grow: 1;
    line-height: 1.55;
}

.card-footer {
    color: var(--emerald-light);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-footer::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card:hover .card-footer {
    color: var(--cyan-light);
}

.card:hover .card-footer::after {
    transform: translateX(5px);
}

/* Badges */
.card-badge.badge-blue {
    color: #22d3ee;
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.card-badge.badge-green {
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-badge.badge-purple {
    color: #a78bfa;
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.card-badge.badge-orange {
    color: #fbbf24;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.card-badge.badge-red {
    color: #f87171;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Footer */
footer {
    padding: 48px 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: 60px;
    font-size: 0.9rem;
    background: rgba(7, 10, 16, 0.6);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 24px 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.35rem;
    }

    nav {
        padding: 16px 20px;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .metrics-strip {
        padding: 0 20px;
    }

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

    .docs-section {
        padding: 40px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
