:root {
    --bg: #e5e7eb;            /* tło strony */
    --page-bg: #f9fafb;       /* tło wewnątrz karty */
    --card-bg: #ffffff;       /* tło sekcji */
    --card-muted: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.page {
    width: 100%;
    max-width: 980px;
}

/* Zewnętrzna ramka */

.shell {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.5), rgba(203, 213, 225, 0.9));
    border-radius: var(--radius-xl);
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.shell::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 200deg,
        rgba(37, 99, 235, 0.08),
        rgba(52, 211, 153, 0.1),
        rgba(129, 140, 248, 0.1),
        transparent,
        transparent,
        rgba(37, 99, 235, 0.16)
    );
    opacity: 0.6;
    filter: blur(32px);
    z-index: -1;
}

/* Główna karta */

.content {
    background: var(--page-bg);
    border-radius: var(--radius-xl);
    padding: 32px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 768px) {
    .content {
        padding: 40px 40px;
    }
}

/* Header */

.header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 18px;
    }
}

.identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name {
    font-size: 1.6rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-pill {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

@media (min-width: 640px) {
    .header-meta {
        align-items: flex-end;
        text-align: right;
        margin-top: 0;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(37, 99, 235, 0.5);
    background: var(--accent-soft);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
}

.meta-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Layout sekcji */

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
    gap: 20px;
}

@media (max-width: 880px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Sekcje jako „tabelki” */

.section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.section + .section {
    margin-top: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.pill {
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--card-muted);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-muted);
}

.section-body {
    font-size: 0.9rem;
    color: var(--text-main);
}

.section-body p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* Listy */

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.stack-item {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.stack-item::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.two-column-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 18px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .two-column-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.chevron-item {
    position: relative;
    padding-left: 14px;
}

.chevron-item::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

/* Stopka */

.footer {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.runtime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.runtime .code {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.8rem;
    background: var(--card-muted);
    border-radius: 999px;
    padding: 3px 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-main);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    text-decoration: none;
    background: var(--card-muted);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-main);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.link-pill:hover {
    background: #e0e7ff;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.link-pill .icon {
    font-size: 1rem;
}

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

/* CI/CD flow */

.cicd-flow {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.85rem;
}

.cicd-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--card-muted);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-main);
}

.cicd-step-label {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent);
    color: #ffffff;
}

.cicd-step-text {
    white-space: nowrap;
}

.cicd-arrow {
    font-size: 1rem;
    color: var(--accent);
}

@media (max-width: 640px) {
    .cicd-flow {
        flex-direction: column;
        align-items: flex-start;
    }
    .cicd-arrow {
        display: none;
    }
}
