:root {
    --bg: #f8fcff;
    --panel: #ffffff;
    --card: #ffffff;
    --accent: #0ea5e9;
    --accent-2: #22c55e;
    --text: #0f172a;
    --muted: #5f6b7b;
    --border: #e5e7eb;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #f8fcff;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 2.2rem 0 2rem;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.6rem 1.8rem 1.3rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
}

.hero-text h1 {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(30px, 3vw, 38px);
    letter-spacing: 0.2px;
}

.lead {
    margin: 0.1rem 0 0.4rem;
    color: #1f2937;
    font-size: 1.05rem;
}

.muted { color: var(--muted); }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.hero-note {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.system-gallery {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.system-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.system-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 26px 66px rgba(14, 165, 233, 0.16);
}

.system-card.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.system-card__main {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.system-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0f2fe;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.system-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.system-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: grid;
    gap: 0.35rem;
}

.system-card__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.slug { font-family: "SFMono-Regular", "Menlo", monospace; }

.pill {
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    color: #0f172a;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.28);
    font-size: 0.8rem;
}

.pill.muted {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted);
    border-color: rgba(0, 0, 0, 0.04);
}

.system-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.system-card p {
    margin: 0;
    color: #334155;
    font-size: 0.97rem;
    line-height: 1.5;
}

.system-card__actions {
    padding: 0 1.1rem 1rem;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 8px;
    color: #0369a1;
    font-size: 0.88rem;
    font-weight: 700;
}

.privacy-link:hover {
    background: rgba(14, 165, 233, 0.08);
}

.page-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-copy { margin: 0; font-weight: 600; color: #0f172a; }
.footer-links { margin: 0.25rem 0 0.15rem; color: var(--muted); }
.footer-meta { margin: 0.3rem 0 0; font-size: 0.78rem; color: #94a3b8; }

@media (max-width: 720px) {
    .container { padding: 1.4rem 0.6rem 1.6rem; }
    .hero { grid-template-columns: 1fr; }
    .hero-badge { width: 100%; }
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #0f172a;
    min-height: 64px;
}

.brand img {
    width: auto;
    height: 64px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-links a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #0ea5e9;
}

.lang-switch {
    padding: 0.25rem 0.45rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.lang-switch.active {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.1);
}

.error-shell {
    display: grid;
    gap: 1.3rem;
    margin-top: 1rem;
}

.error-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    display: grid;
    gap: 0.6rem;
}

.error-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe, #e0f7f4);
    color: #0ea5e9;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.error-title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 30px);
    color: #0f172a;
}

.error-desc {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #0b1120;
    border-color: #0ea5e9;
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
    background: rgba(14, 165, 233, 0.08);
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.35);
}

.hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.privacy-shell {
    display: grid;
    gap: 1.2rem;
    margin-top: 1rem;
}

.privacy-header {
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem 0 0.4rem;
}

.privacy-header h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
}

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

.privacy-back {
    justify-self: start;
    color: #0369a1;
    font-weight: 700;
}

.privacy-content {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1.3rem;
    box-shadow: var(--shadow);
    line-height: 1.75;
}

.privacy-content h2,
.privacy-content h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.privacy-content p,
.privacy-content ul,
.privacy-content ol {
    color: #334155;
}

.privacy-content a {
    color: #0369a1;
    text-decoration: underline;
}

.feedback-form {
    display: grid;
    gap: 1rem;
}

.feedback-form .form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #0f172a;
}

.feedback-form .form-control,
.feedback-form .form-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.feedback-form textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.feedback-form .text-danger {
    display: block;
    margin-top: 0.35rem;
    color: #b91c1c;
    font-size: 0.92rem;
}

.feedback-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.system-detail {
    display: grid;
    gap: 1.2rem;
    margin-top: 1rem;
}

.system-detail__hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 1.2rem;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.system-detail__image {
    min-height: 280px;
    background: #e0f2fe;
}

.system-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.system-detail__summary {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.system-detail__summary h1 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
}

.system-detail__description {
    margin: 0;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.6;
}

.system-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.2rem;
}

.system-detail__content {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1.3rem;
    box-shadow: var(--shadow);
    line-height: 1.75;
}

.system-detail__content-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.system-detail__content-header h2 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 30px);
}

.system-detail__content-header span {
    color: var(--muted);
    font-size: 0.88rem;
}

.system-detail__content h2,
.system-detail__content h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.system-detail__content p,
.system-detail__content ul,
.system-detail__content ol {
    color: #334155;
}

.system-detail__content a {
    color: #0369a1;
    text-decoration: underline;
}

.developer-contact {
    display: grid;
    gap: 1.2rem;
    margin-top: 1rem;
}

.developer-contact__profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: center;
    padding: 1.3rem;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.developer-contact__avatar {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 1.6rem;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.developer-contact__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.developer-contact__meta {
    margin: 0 0 0.2rem;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
}

.developer-contact__summary h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
}

.developer-contact__headline {
    margin: 0.35rem 0 0;
    color: #334155;
    line-height: 1.55;
}

.developer-contact__bio {
    padding: 1.25rem 1.3rem;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: var(--shadow);
    line-height: 1.75;
}

.developer-contact__bio p,
.developer-contact__bio ul,
.developer-contact__bio ol {
    color: #334155;
}

.developer-contact__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.developer-contact__link {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.developer-contact__link:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.42);
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.14);
}

.developer-contact__link-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-weight: 800;
    font-size: 0.78rem;
}

.developer-contact__link-label {
    font-weight: 700;
    color: #0f172a;
}

.developer-contact__link-arrow {
    color: #0ea5e9;
    font-weight: 800;
}

@media (max-width: 560px) {
    .developer-contact__profile {
        grid-template-columns: 1fr;
    }

    .system-detail__hero {
        grid-template-columns: 1fr;
    }

    .system-detail__image {
        min-height: 200px;
    }

    .system-detail__content-header {
        display: grid;
        gap: 0.35rem;
    }
}
