@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --bg: #0a0a0f;
    --surface: #111118;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e4e4ec;
    --muted: #8888a0;
    --accent: #ff5c00;
    --accent-hover: #e05200;
    --green: #2ea86c;
    --amber: #d9a034;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────── */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 32px;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.cta-row { display: flex; justify-content: center; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); text-decoration: none; }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ── Sections ────────────────────────────────────────── */

section {
    max-width: 720px;
    margin: 0 auto 72px;
    padding: 0 24px;
}

section h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    margin-top: 24px;
}

section h3:first-of-type { margin-top: 0; }

section p { color: var(--muted); margin-bottom: 20px; line-height: 1.65; }

/* ── Editor config blocks ────────────────────────────── */

.code-block.claude  { border-left: 2px solid #d97706; }
.code-block.cursor  { border-left: 2px solid #6366f1; }
.code-block.agy     { border-left: 2px solid #10b981; }

/* ── Code blocks ─────────────────────────────────────── */

.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.code-block pre { padding: 24px; margin: 0; }

.code-block code {
    font-family: "Fira Code", "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text);
}

p code {
    font-family: "Fira Code", "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
    font-size: 12px;
    background: var(--surface);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* ── Metrics ─────────────────────────────────────────── */

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.metric-item {
    text-align: center;
    padding: 32px 16px;
    border-right: 1px solid var(--border);
}

.metric-item:last-child { border-right: none; }

.metric-value {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ── Comparison table ────────────────────────────────── */

td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
tr:first-child td { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-bottom: 16px; }
tr:first-child td strong { font-weight: 600; color: var(--muted); }
.trytet-col { background: rgba(255,92,0,0.04); }

/* ── Tool table ──────────────────────────────────────── */

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: top;
}

td:first-child {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

td:nth-child(2) { color: var(--muted); }
td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

.status-shipped { color: var(--green); }
.status-experimental { color: var(--amber); }

/* ── Footer ──────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    font-size: 14px;
}

footer a { color: var(--muted); margin: 0 8px; }
footer a:hover { color: var(--text); }

/* ── Guide page extras ───────────────────────────────── */

main { max-width: 720px; margin: 0 auto 80px; padding: 0 24px; }

main h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    margin-top: 48px;
}

main p { color: var(--muted); margin-bottom: 16px; line-height: 1.65; }

main ul { padding-left: 20px; }
main li { color: var(--muted); margin-bottom: 8px; font-size: 14px; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 640px) {
    nav { flex-direction: column; gap: 12px; padding: 16px; }
    .hero { padding: 60px 16px 40px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; margin-bottom: 28px; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .metric-item:nth-child(2) { border-right: none; }
    .metric-item { padding: 24px 12px; }
    .metric-value { font-size: 28px; }
    section { margin-bottom: 48px; padding: 0 16px; }
    .code-block pre { padding: 16px; }
    .code-block code { font-size: 12px; }
    td { font-size: 13px; padding: 10px 12px; }
}
