:root {
    --primary: #22c55e;       /* Reconciled green, distinct from the site's orange but same family of "accent on dark" */
    --accent-blue: #3b82f6;
    --bg: #1a1a1a;
    --text: #ecf0f1;
    --card-bg: #2c3e50;
    --card-bg-alt: #253546;
    --muted: rgba(236, 240, 241, 0.7);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ---------- Top nav ---------- */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

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

.brand span {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

.topnav nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.topnav nav a:first-child {
    margin-left: 0;
}

.topnav nav a:hover,
.topnav nav a.active {
    color: var(--primary);
}

/* ---------- Header / hero ---------- */
header.hero {
    text-align: center;
    padding: 2.5rem 0 1rem;
}

header.hero img.logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary);
    font-size: 2.6rem;
    margin: 0 0 0.5rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */
a.btn {
    display: inline-block;
    background: var(--primary);
    color: #04170c;
    padding: 0.7rem 1.4rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s;
}

a.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

a.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

a.btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Sections ---------- */
.section {
    margin: 3rem 0;
}

.section h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}

.section h3 {
    color: var(--text);
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.section p {
    color: var(--muted);
}

/* ---------- Grid / cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card {
    background: var(--card-bg);
    padding: 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-bottom-color: var(--primary);
}

.card h3 {
    margin: 0 0 0.4rem;
    color: var(--primary);
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.card .emoji {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--primary);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* ---------- Callouts ---------- */
.callout {
    background: var(--card-bg-alt);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.25rem 0;
    color: var(--text);
}

.callout.blue {
    border-left-color: var(--accent-blue);
}

.callout p {
    margin: 0;
    color: var(--text);
}

.callout strong {
    color: var(--primary);
}

/* ---------- Code ---------- */
code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    background: #12161a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.88rem;
}

pre code {
    background: none;
    padding: 0;
}

/* ---------- Step list (onboarding etc.) ---------- */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 1.25rem 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0.4rem 0 0.4rem 2.6rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
}

.steps li strong {
    color: var(--text);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.8rem;
    height: 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
}

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

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .topnav {
        justify-content: center;
        text-align: center;
    }

    .topnav nav a {
        margin: 0 0.6rem;
    }
}
