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

:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --border: #1e1e2a;
    --border-hover: #2a2a3a;
    --text: #e4e4ed;
    --text-muted: #8888a0;
    --text-dim: #5e5e75;
    --accent: #b8f17d;
    --accent-dim: rgba(184, 241, 125, 0.12);
    --code-bg: #0d0d14;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.8;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
}

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

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-icon {
    filter: invert(100%);
    -webkit-filter: invert(100%);
    -moz-filter: invert(100%);
    -ms-filter: invert(100%);
    -o-filter: invert(100%);
    /* center icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 1.3rem;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    opacity: 1;
}

.nav-cta {
    background: var(--accent-dim);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: rgba(184, 241, 125, 0.2) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: 0.2s;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(184, 241, 125, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 720px;
    margin: 0 auto 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.install-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.install-box code {
    background: none;
    padding: 0;
    color: var(--text-muted);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.copy-btn.copied {
    color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #0a0a0f;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 241, 125, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    opacity: 1;
    border-color: var(--border-hover);
    color: var(--text);
}

.section-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}


.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 56px;
}

/* --- Features Grid --- */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

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

.feature-icon span:first-child {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--accent-dim); */
    border-radius: 8px;
}

.feature-num {
    font-family: var(--mono);
    font-size: 0.75rem !important;
    color: var(--text-dim);
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Terminal Demo --- */
.demo {
    padding: 80px 0 100px;
}

.terminal {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--code-bg);
}

.terminal-bar {
    background: #111118;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.terminal-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.85rem;
    min-height: 220px;
}

.term-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.term-prompt {
    color: var(--accent);
}

.term-cmd {
    color: var(--text);
}

.term-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.term-output {
    color: var(--text-muted);
    line-height: 1.8;
}

.term-output .term-success {
    color: var(--accent);
}

.term-output .term-warn {
    color: #febc2e;
}

.term-output .term-info {
    color: var(--text-dim);
}

/* --- Code Preview --- */
.code-preview {
    padding: 80px 0 100px;
}

.code-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.code-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.code-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 24px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    background: var(--bg-card);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.code-block pre {
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
    color: var(--text);
    font-size: inherit;
}

/* Syntax colors */
.c {
    color: var(--text-dim);
}

.k {
    color: #c792ea;
}

.t {
    color: #82aaff;
}

.v {
    color: var(--text);
}

.s {
    color: var(--accent);
}

/* --- Get Started --- */
.start {
    padding: 100px 0;
}

.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child {
    border-top: 1px solid var(--border);
}

.step-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--accent-dim);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    font-weight: 600;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-code {
    font-size: 0.85rem;
}

.step-code code {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-muted);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Commands --- */
.commands {
    padding: 60px 0 100px;
}

.cmd-table {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cmd-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cmd-row:first-child {
    border-top: 1px solid var(--border);
}

.cmd-name {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cmd-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-version {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
    opacity: 1;
}

.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 16px;
    }

    .hero {
        padding: 130px 0 70px;
    }

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

    .code-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .install-box {
        font-size: 0.78rem;
        width: 100%;
        justify-content: space-between;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cmd-row {
        flex-direction: column;
        gap: 6px;
    }

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

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}