/* CSS Custom Properties */
:root {
    --bg: #0c0a09;
    --color-secondary: #aba09c;
    --cmd-bg: #1d1816;
    --border: #473c39;
    --success: #6db87a;

    /* Spacing */
    --container: 720px;

    /* Typography */
    --font-sans: "Plus Jakarta Sans", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    background: var(--bg);
}

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

/* ─── Header ─── */
header {
    padding: 1.5rem 0;
}

.nav-logo {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    letter-spacing: -0.02em;
}
.nav-logo span {
    color: var(--color-secondary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list a {
    color: var(--color-secondary);
    text-decoration: none;
}
.nav-list a:hover {
    color: white;
}

.nav-item {
    margin-left: 2rem;
    font-size: 0.875rem;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}

/* ─── Main ─── */
.main {
    padding: 5rem 0 0;
}

/* ─── Hero ─── */
.hero {
    padding-bottom: 4rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-secondary);
    max-width: 520px;
}

.cmd {
    background: var(--cmd-bg);
    padding: 0.875rem 1.15rem;
    margin-top: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s;
    font-size: 0.875rem;
    max-width: 360px;
    user-select: none;
}

.cmd:hover {
    border-color: var(--color-secondary);
}

.prompt {
    color: var(--color-secondary);
}

.cmd-text {
    flex: 1;
}

.cmd-copy {
    font-size: 0.75rem;
    color: var(--border);
    transition: color 0.15s;
}

.cmd:hover .cmd-copy {
    color: var(--color-secondary);
}

/* ─── Terminal Demo ─── */
.demo {
    padding-bottom: 5rem;
}

.terminal {
    background: var(--cmd-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #161311;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--border);
    flex: 1;
    text-align: center;
    margin-right: 54px; /* balance the dots */
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
}

.t-line {
    display: flex;
    gap: 0.625rem;
}

.t-prompt {
    color: var(--border);
    user-select: none;
}

.t-input {
    color: white;
}

.t-output {
    padding-left: 1.125rem;
    color: var(--color-secondary);
}

.t-success {
    color: var(--success);
}

.t-gap {
    height: 1rem;
}

.t-markdown {
    display: flex;
    flex-direction: column;
    padding-left: 1.125rem;
    color: var(--color-secondary);
    line-height: 1.7;
}

.t-md-heading {
    color: white;
}

.t-typed {
    color: white;
}

/* Terminal list */
.t-list {
    padding-left: 1.125rem;
    margin-top: 0.25rem;
}

.t-list-row {
    display: grid;
    grid-template-columns: 1.25rem 7.5rem 1fr auto;
    gap: 1.25rem;
    padding: 0.1rem 0;
}

.t-dim {
    color: var(--border);
}

.t-tag {
    color: var(--color-secondary);
}

/* ─── Section Header ─── */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* ─── Features ─── */
.features {
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.feature-card {
    padding: 2rem;
    background: var(--cmd-bg);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-card:nth-child(2n) {
    border-right: none;
}

.feature-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--color-secondary);
    line-height: 1.55;
}

.feature-card code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: white;
    background: rgba(255,255,255,0.07);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ─── Commands ─── */
.commands {
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--border);
}

.commands-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.command-card {
    background: var(--cmd-bg);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 14rem 1fr;
}

.command-card:last-child {
    border-bottom: none;
}

.command-usage {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
}

.command-usage code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: white;
    line-height: 1.5;
}

.command-usage .arg {
    color: var(--color-secondary);
}

.command-body {
    padding: 1.25rem 1.5rem;
}

.command-body p {
    font-size: 0.875rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.command-body p code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: white;
    background: rgba(255,255,255,0.07);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

.command-example {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-secondary);
    display: flex;
    gap: 0.5rem;
}

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

.footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.footer-brand span {
    color: var(--color-secondary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--border);
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: white;
}
