/* ================================================================
   blckbrd — main.css
   Fonts: Syne (display/UI) + IBM Plex Mono (terminal/code)
   Palette: near-black bg, electric blue accent, amber + teal
================================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-0:      #060810;
    --bg-1:      #0b0e16;
    --bg-2:      #10141e;
    --bg-3:      #161b28;
    --bg-card:   #0d111a;
    --bg-card-h: #111622;

    --border:    #1c2232;
    --border-h:  #2a3550;

    --text-1:    #e2e6f0;
    --text-2:    #9aa4b8;
    --text-3:    #5a6480;
    --text-dim:  #3a4460;

    --blue:      #4a9eff;
    --blue-dim:  rgba(74, 158, 255, 0.12);
    --blue-glow: rgba(74, 158, 255, 0.08);
    --amber:     #f0a920;
    --amber-dim: rgba(240, 169, 32, 0.12);
    --teal:      #1acdaa;
    --teal-dim:  rgba(26, 205, 170, 0.12);
    --red:       #e24b4a;
    --green:     #3adf8a;

    --font-display: 'Syne', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --header-h:  62px;
    --max-w:     1120px;
    --gap:       clamp(16px, 3vw, 32px);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background: var(--bg-0);
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.25;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 28px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 0.5px solid transparent;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--blue);
    color: var(--bg-0);
    border-color: var(--blue);
}
.btn--primary:hover { background: #6ab2ff; border-color: #6ab2ff; }

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    border-color: var(--border-h);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--text-1); }

.btn--nav-cta {
    background: var(--blue-dim);
    color: var(--blue);
    border-color: rgba(74,158,255,0.35);
    font-size: 12px;
    padding: 8px 16px;
}
.btn--nav-cta:hover { background: rgba(74,158,255,0.2); }

.btn--full { width: 100%; justify-content: center; }

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: var(--bg-0);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HEADER ───────────────────────────────────────────────── */
/* WordPress admin bar is 32px tall (desktop) / 46px (mobile) —
   offset the sticky header so it sits just below it           */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: var(--header-h);
    background: rgba(6,8,16,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    pointer-events: auto;
}
.site-header * { pointer-events: auto; }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.site-logo span { color: var(--blue); }
.site-logo--footer { font-size: 20px; margin-bottom: 10px; }

.site-nav { margin-left: auto; }
.site-nav__list {
    display: flex;
    gap: 28px;
    align-items: center;
}
.site-nav__list a {
    font-size: 13px;
    color: var(--text-3);
    transition: color 0.15s;
}
.site-nav__list a:hover { color: var(--text-1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-2);
    transition: transform 0.2s, opacity 0.2s;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 72px 0 64px;
    overflow: hidden;
}
.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}
.hero__scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    animation: scanline 4s ease-in-out infinite;
    opacity: 0.5;
    pointer-events: none;
}
@keyframes scanline {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b1020;
    border: 0.5px solid rgba(74,158,255,0.3);
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero__headline {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 18px;
}
.hero__headline em {
    color: var(--blue);
    font-style: normal;
}

.hero__sub {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal */
.hero__terminal {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12px;
}
.terminal__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-2);
    border-bottom: 0.5px solid var(--border);
}
.terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal__dot--red   { background: #e05252; }
.terminal__dot--amber { background: #f0a920; }
.terminal__dot--green { background: #3adf8a; }
.terminal__title {
    margin-left: 8px;
    font-size: 11px;
    color: var(--text-3);
}
.terminal__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
}
.terminal__line { color: var(--text-2); line-height: 1.5; }
.terminal__cursor {
    color: var(--blue);
    animation: blink 1.1s step-end infinite;
    margin-top: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

.t-dim   { color: var(--text-dim); }
.t-blue  { color: var(--blue); }
.t-green { color: var(--green); }
.t-amber { color: var(--amber); }
.t-red   { color: var(--red); }

/* ── SIGNAL STRIP ─────────────────────────────────────────── */
.signal-strip {
    background: var(--bg-1);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.signal-strip::-webkit-scrollbar { display: none; }
.signal-strip__inner {
    display: flex;
    gap: 0;
    padding-block: 0;
}
.signal-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-right: 0.5px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}
.signal-strip__item:last-child { border-right: none; }

.sig-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sig-dot--green { background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
.sig-dot--amber { background: var(--amber); animation: pulse 2s ease-in-out infinite 0.4s; }
.sig-dot--red   { background: var(--red); animation: pulse 3s ease-in-out infinite 0.8s; }

.sig-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}
.sig-val {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-2);
    font-weight: 500;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services {
    padding: 80px 0;
    border-bottom: 0.5px solid var(--border);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 0.2s, background 0.2s;
}
.service-card:hover {
    border-color: var(--border-h);
    background: var(--bg-card-h);
}
.service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.service-card__icon svg { width: 20px; height: 20px; }
.service-card__icon--blue  { background: var(--blue-dim); }
.service-card__icon--amber { background: var(--amber-dim); }
.service-card__icon--teal  { background: var(--teal-dim); }

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.7;
}

/* ── APPS SECTION ─────────────────────────────────────────── */
.apps {
    padding: 80px 0;
    border-bottom: 0.5px solid var(--border);
}
.apps__intro {
    font-size: 15px;
    color: var(--text-3);
    margin-bottom: 40px;
    max-width: 580px;
}
.apps__intro strong { color: var(--text-2); font-weight: 500; }

.apps__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.app-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color 0.2s;
}
.app-card:hover { border-color: var(--border-h); }

.app-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.app-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.app-card__icon--corvus {
    background: #110c1a;
    border: 0.5px solid #2a1a40;
}
.app-card__icon--magpie {
    background: #0c1510;
    border: 0.5px solid #1a3a20;
}
.app-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 4px;
}
.app-card__platform {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}
.app-card__badge {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}
.app-card__badge--beta {
    background: var(--blue-dim);
    color: var(--blue);
    border: 0.5px solid rgba(74,158,255,0.25);
}
.app-card__badge--dev {
    background: var(--amber-dim);
    color: var(--amber);
    border: 0.5px solid rgba(240,169,32,0.25);
}

.app-card__desc {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.75;
}

.app-card__features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.app-card__features li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    padding-left: 16px;
    position: relative;
}
.app-card__features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--border-h);
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,4,10,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: none;
}
.modal-overlay:not([hidden]) {
    opacity: 1;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--bg-2);
    border: 0.5px solid var(--border-h);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.modal__close:hover { color: var(--text-1); background: var(--bg-3); }

.modal__icon { font-size: 36px; margin-bottom: 14px; }
.modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}
.modal__title span { color: var(--blue); }
.modal__sub {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal__form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.06em;
}
.req { color: var(--red); }
.optional { color: var(--text-dim); font-size: 10px; }

.form-group input,
.form-group textarea {
    background: var(--bg-1);
    border: 0.5px solid var(--border-h);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.form-msg svg { width: 16px; height: 16px; flex-shrink: 0; }
.form-msg--success {
    background: rgba(58,223,138,0.08);
    border: 0.5px solid rgba(58,223,138,0.25);
    color: var(--green);
}
.form-msg--error {
    background: rgba(226,75,74,0.08);
    border: 0.5px solid rgba(226,75,74,0.25);
    color: var(--red);
}

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter {
    padding: 64px 0;
    border-bottom: 0.5px solid var(--border);
}
.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.newsletter h2 { font-size: 22px; margin-bottom: 6px; }
.newsletter p  { font-size: 14px; color: var(--text-3); }
.newsletter__form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.newsletter__form input {
    background: var(--bg-card);
    border: 0.5px solid var(--border-h);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 14px;
    padding: 10px 16px;
    outline: none;
    width: 240px;
    transition: border-color 0.15s;
}
.newsletter__form input::placeholder { color: var(--text-dim); }
.newsletter__form input:focus { border-color: var(--blue); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { padding: 56px 0 0; }
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding-bottom: 48px;
    border-bottom: 0.5px solid var(--border);
}
.site-footer__brand p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    max-width: 220px;
}

.site-footer__links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.footer-col__heading {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-3);
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-1); }

.site-footer__bottom {
    padding: 16px 0;
}
.site-footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}
.footer-signal {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero__terminal { display: none; }
    .services__grid {
        grid-template-columns: 1fr;
    }
    .apps__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .site-nav,
    .btn--nav-cta { display: none; }

    .nav-toggle { display: flex; }

    .site-nav.is-open {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-1);
        border-bottom: 0.5px solid var(--border);
        padding: 20px 24px;
    }
    .site-nav.is-open .site-nav__list {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .site-nav.is-open .site-nav__list a { font-size: 16px; }

    .newsletter__inner { flex-direction: column; }
    .newsletter__form { flex-direction: column; width: 100%; }
    .newsletter__form input { width: 100%; }

    .modal { padding: 28px 20px; }
}

/* ================================================================
   INNER PAGES — shared + page-specific styles
================================================================ */

/* ── PAGE HERO (shared across all inner pages) ────────────── */
.page-hero {
    position: relative;
    padding: 64px 0 52px;
    border-bottom: 0.5px solid var(--border);
    overflow: hidden;
}
.page-hero .hero__grid-overlay {
    pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 14px;
}
.page-hero__title em { color: var(--blue); font-style: normal; }
.page-hero__sub {
    font-size: 16px;
    color: var(--text-3);
    max-width: 560px;
    line-height: 1.7;
}

/* ── BETA BANNER ──────────────────────────────────────────── */
.beta-banner {
    background: rgba(240,169,32,0.06);
    border-bottom: 0.5px solid rgba(240,169,32,0.2);
    padding: 12px 0;
}
.beta-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
}
.beta-banner__inner strong { color: var(--amber); font-weight: 500; }

/* ── SECTION DIVIDER ──────────────────────────────────────── */
.section-divider {
    height: 0.5px;
    background: var(--border);
    margin: 0;
}

/* ── APP PAGE SECTIONS ────────────────────────────────────── */
.app-page-section {
    padding: 72px 0;
    border-bottom: 0.5px solid var(--border);
}
.app-page-section__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: start;
}
.app-page-section__inner--reversed {
    grid-template-columns: 420px 1fr;
}
.app-page-section__inner--reversed .app-page-section__content {
    order: 2;
}
.app-page-section__inner--reversed .app-page-section__terminal {
    order: 1;
}

.app-page-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.app-card__icon--lg {
    width: 52px !important;
    height: 52px !important;
    font-size: 26px !important;
    border-radius: 12px !important;
}
.app-page-section__name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}
.app-page-section__desc {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.8;
    margin-bottom: 14px;
}

.terminal__body--tall { min-height: 260px; }
.t-teal { color: var(--teal); }

.app-page-section__terminal {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ── APP FEATURES GRID ────────────────────────────────────── */
.app-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 32px;
}
.app-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.app-feature__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-feature__icon svg { width: 16px; height: 16px; }
.app-feature__icon--blue  { background: var(--blue-dim); }
.app-feature__icon--amber { background: var(--amber-dim); }
.app-feature__icon--teal  { background: var(--teal-dim); }
.app-feature__icon--red   { background: rgba(226,75,74,0.1); }
.app-feature__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 3px;
}
.app-feature__desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

.btn--lg { padding: 13px 28px; font-size: 14px; }

.app-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ── ARTICLES PAGE ────────────────────────────────────────── */
.articles-section { padding: 56px 0; }

.articles-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-btn:hover { border-color: var(--border-h); color: var(--text-2); }
.filter-btn--active {
    background: var(--blue-dim);
    border-color: rgba(74,158,255,0.35);
    color: var(--blue);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.articles-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.article-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover { border-color: var(--border-h); }
.article-card__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.article-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.article-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-card__cat {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--blue-dim);
    color: var(--blue);
    border: 0.5px solid rgba(74,158,255,0.25);
    padding: 2px 8px;
    border-radius: 10px;
}
.article-card__date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}
.article-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}
.article-card__title a { color: var(--text-1); transition: color 0.15s; }
.article-card__title a:hover { color: var(--blue); }
.article-card__excerpt {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.65;
    flex: 1;
}
.article-card__read {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue);
    margin-top: 4px;
    transition: opacity 0.15s;
}
.article-card__read:hover { opacity: 0.75; }

.articles-empty {
    grid-column: 1 / -1;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 13px;
    max-width: 520px;
}
.articles-empty__body {
    padding: 24px;
    background: var(--bg-card);
    line-height: 1.7;
}

.articles-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
.articles-pagination .page-numbers {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    color: var(--text-2);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}
.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    border-color: var(--blue);
    color: var(--blue);
}

/* ── SINGLE POST ──────────────────────────────────────────── */
.post-header {
    position: relative;
    padding: 56px 0 44px;
    border-bottom: 0.5px solid var(--border);
    overflow: hidden;
}
.post-header__inner { position: relative; z-index: 1; }
.post-header__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-header__back {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    transition: color 0.15s;
}
.post-header__back:hover { color: var(--blue); }
.post-read-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}
.post-header__title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 14px;
}
.post-header__excerpt {
    font-size: 16px;
    color: var(--text-3);
    max-width: 640px;
    line-height: 1.7;
}
.post-featured-img {
    padding: 32px 0;
    border-bottom: 0.5px solid var(--border);
}
.post-featured-img img {
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border);
    width: 100%;
}

.post-body { padding: 52px 0; }
.post-body__inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: start;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
}
.post-content h2 { font-size: 22px; color: var(--text-1); margin: 2em 0 0.6em; }
.post-content h3 { font-size: 18px; color: var(--text-1); margin: 1.5em 0 0.5em; }
.post-content p  { margin-bottom: 1.2em; }
.post-content a  { color: var(--blue); }
.post-content a:hover { opacity: 0.8; }
.post-content code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-2);
    border: 0.5px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--teal);
}
.post-content pre {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}
.post-content ul, .post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.post-content li { margin-bottom: 0.4em; }
.post-content blockquote {
    border-left: 2px solid var(--blue);
    padding: 12px 20px;
    margin: 1.5em 0;
    color: var(--text-3);
    font-style: italic;
}

.post-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.post-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 0.5px solid var(--border);
}
.post-sidebar__section:last-child { border-bottom: none; padding-bottom: 0; }
.post-sidebar__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.post-sidebar__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
}
.post-sidebar__author img { border-radius: 50%; width: 36px; height: 36px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--bg-2);
    border: 0.5px solid var(--border);
    color: var(--text-3);
    padding: 3px 9px;
    border-radius: 10px;
    transition: border-color 0.15s, color 0.15s;
}
.post-tag:hover { border-color: var(--blue); color: var(--blue); }

.post-sidebar__app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    padding: 8px 10px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, color 0.15s;
}
.post-sidebar__app-link:hover { border-color: var(--blue); color: var(--text-1); }

.related-posts { padding: 56px 0; border-top: 0.5px solid var(--border); }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-section { padding: 64px 0; }
.about-section__inner { display: flex; flex-direction: column; gap: 64px; }
.about-block h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 18px;
}
.about-block p {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 14px;
}
.about-block p:last-child { margin-bottom: 0; }

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.about-pillar {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.about-pillar__icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.about-pillar__icon svg { width: 20px; height: 20px; }
.about-pillar__icon--blue  { background: var(--blue-dim); }
.about-pillar__icon--amber { background: var(--amber-dim); }
.about-pillar__icon--teal  { background: var(--teal-dim); }
.about-pillar h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.about-pillar p  { font-size: 13px; color: var(--text-3); line-height: 1.65; margin: 0; max-width: none; }

.about-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.about-status-item {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.about-status-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.about-status-item__name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-1);
    font-weight: 500;
}
.about-status-item p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0;
    max-width: none;
}
.about-status-item a { color: var(--blue); }

.about-block--cta {
    padding: 36px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
}
.about-cta-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-section { padding: 64px 0; }
.contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: start;
}
.contact-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group select {
    background: var(--bg-1);
    border: 0.5px solid var(--border-h);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
    appearance: none;
    cursor: pointer;
}
.form-group select:focus { border-color: var(--blue); }
.form-group select option { background: var(--bg-2); }

.contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-aside__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 0.5px solid var(--border);
}
.contact-aside__block:last-child { border-bottom: none; padding-bottom: 0; }

/* ── RESPONSIVE — INNER PAGES ─────────────────────────────── */
@media (max-width: 1000px) {
    .app-page-section__inner,
    .app-page-section__inner--reversed {
        grid-template-columns: 1fr;
    }
    .app-page-section__inner--reversed .app-page-section__content { order: 1; }
    .app-page-section__inner--reversed .app-page-section__terminal { order: 2; }
    .app-page-section__terminal { position: static; }
    .post-body__inner { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .contact-section__inner { grid-template-columns: 1fr; }
    .contact-aside { position: static; }
}

@media (max-width: 768px) {
    .app-features-grid { grid-template-columns: 1fr; }
    .about-pillars { grid-template-columns: 1fr; }
    .about-status-grid { grid-template-columns: 1fr; }
    .articles-grid--3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   SLIM HOMEPAGE
================================================================ */

.hero__inner--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    gap: 0;
}
.hero__headline--centered { max-width: 600px; }
.hero__sub--centered {
    max-width: 520px;
    margin-bottom: 36px;
}

.apps--slim {
    padding: 72px 0 80px;
}
.apps--slim .container {
    max-width: 780px;
}

.app-slim {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 48px 0;
}
.app-slim__header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.app-slim__name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 3px;
}
.app-slim__desc {
    font-size: 16px;
    color: var(--text-3);
    line-height: 1.8;
    max-width: 640px;
}
.app-slim-divider {
    height: 0.5px;
    background: var(--border);
}

@media (max-width: 600px) {
    .hero__inner--centered { text-align: left; align-items: flex-start; }
    .app-slim__header { gap: 12px; }
}
/* ── ROOK app icon ────────────────────────────────────────── */
.app-card__icon--rook {
    background: #0a1614;
    border: 0.5px solid #1a3530;
    color: var(--teal);
    font-size: 26px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
