:root {
    --navy: #111827;
    --navy-2: #1f2937;
    --gold: #c9962c;
    --gold-soft: #f4e7c4;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #18212f;
    --muted: #687386;
    --line: #e3e8ef;
    --green: #15803d;
    --green-bg: #dcfce7;
    --soft: #eef2f7;
    --shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(201,150,44,.22), transparent 22%),
        linear-gradient(135deg, #0b1220, #172235 62%, #1f2937);
    color: white;
    padding: 64px 24px 72px;
    border-bottom: 4px solid var(--gold);
}
.hero-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(145deg, #d5ac4f, #a67513);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: .06em;
    color: #111827;
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .18em;
    color: #ead9ac;
    font-weight: 800;
}
.eyebrow.dark { color: #8b6a24; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
.hero-copy { max-width: 760px; margin: 18px 0 0; color: #cbd5e1; font-size: 17px; line-height: 1.7; }

.content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 64px; flex: 1; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.legend { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.system-card {
    min-height: 330px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
    position: relative;
}
.system-card.active:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(17, 24, 39, .13); border-color: #d8bd82; }
.system-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), #e0ba64); }
.system-card.coming::before { background: #cbd5e1; }
.card-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.system-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    font-weight: 800;
    font-size: 22px;
}
.coming .system-icon { background: #e7ebf1; color: #667085; }
.status-badge { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-badge.active { background: var(--green-bg); color: var(--green); }
.status-badge.coming { background: #eef2f6; color: #7a8494; }
.card-body { padding: 28px 0 24px; }
.card-body h3 { margin: 0 0 12px; font-size: 23px; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-link {
    margin-top: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    background: var(--navy);
    font-weight: 750;
    transition: background .2s ease, transform .2s ease;
}
.card-link:hover { background: #273449; transform: translateY(-1px); }
.card-link.disabled { background: #eef2f6; color: #8a94a3; cursor: not-allowed; }

footer {
    background: #0d1421;
    color: #b8c0cc;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px max(24px, calc((100% - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}
footer div:first-child { display: flex; gap: 10px; flex-wrap: wrap; }
footer strong { color: white; }

@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
    .hero-inner { align-items: flex-start; }
    .brand-mark { width: 64px; height: 64px; border-radius: 16px; font-size: 15px; }
    .hero-copy { font-size: 15px; }
    .content { width: min(100% - 28px, 1180px); padding-top: 34px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .card-grid { grid-template-columns: 1fr; }
    .system-card { min-height: 300px; }
    footer { flex-direction: column; }
}
