/* =========================================================
   THEME — Dashboard Dark Glass (Mockup #2)
   ========================================================= */

:root {
    --bg-main: #050b18;
    --bg-shell: #070f22;
    --bg-card: rgba(14, 23, 48, .78);
    --bg-card-soft: rgba(14, 23, 48, .55);

    --ink-main: #e6ebf5;
    --ink-soft: #b7c0d9;
    --ink-muted: #8a93ad;

    --accent-blue: #4fa3ff;
    --accent-cyan: #4fd1ff;
    --accent-violet: #7c7cff;

    --border-soft: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --shadow-xl: 0 30px 80px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .35);

    --font-title: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --max-width: 1280px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-main);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(79, 163, 255, .12), transparent 60%),
        radial-gradient(1000px 500px at 80% 0%, rgba(124, 124, 255, .10), transparent 55%),
        radial-gradient(900px 500px at 50% 100%, rgba(79, 209, 255, .08), transparent 60%),
        var(--bg-main);
    line-height: 1.55;
}

a {
    color: var(--accent-blue);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

img {
    max-width: 100%;
    display: block
}

/* =========================================================
   BACKGROUND FX
   ========================================================= */

.bg-orbit {
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .18), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, .12), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, .10), transparent);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px 40px;
    position: relative;
    z-index: 2;
}

.main {
    padding-top: 24px
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
}

.brand-name {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink-main);
}

.nav {
    display: flex;
    gap: 14px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

.nav-link.active {
    color: #fff;
    border-color: var(--border-soft);
    background: rgba(255, 255, 255, .08);
}

.actions {
    display: flex;
    gap: 10px;
}

/* =========================================================
   CHIPS / BUTTONS
   ========================================================= */

.chip {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .05);
    color: var(--ink-main);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    /* <- plus grand */
    margin-bottom: 6px;
}

.chip.soft {
    background: rgba(255, 255, 255, .04);
    color: var(--ink-soft);
}

.chip.accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: #041024;
}

.btn {
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .05);
    color: var(--ink-main);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #041024;
    border: none;
}

.btn.ghost {
    background: transparent;
}

/* =========================================================
   HERO
   ========================================================= */

.hero>* {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: -30%;
    opacity: .55;
    pointer-events: none;
    z-index: 0;
    filter: blur(0.2px);
}

.hero-wave {
    position: absolute;
    top: -10%;
    left: -15%;
    width: 140%;
    height: auto;
    opacity: .85;
    transform: rotate(-6deg);
    mix-blend-mode: screen;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-portrait {
    width: 110px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-title .h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 36px;
    letter-spacing: -.02em;
}

.hero-sub {
    margin-top: 4px;
    color: var(--ink-soft);
    font-weight: 600;
}

.hero-actions {
    margin-left: auto
}

/* =========================================================
   KPI
   ========================================================= */

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 26px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}

.kpi-note {
    font-size: 12px;
    color: var(--ink-muted);
}

.kpi-value {
    margin-top: 10px;
    font-family: var(--font-title);
    font-size: 34px;
    font-weight: 700;
}

.kpi-unit {
    font-size: 16px;
    color: var(--ink-soft)
}

.kpi-mini {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-muted);
}

.flags {
    display: flex;
    gap: 6px;
    margin-top: 6px
}

.flag {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

/* =========================================================
   MID HERO
   ========================================================= */

.hero-mid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin-top: 34px;
}

.h2 {
    font-family: var(--font-title);
    font-size: 26px;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}

.muted {
    color: var(--ink-soft)
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.mini {
    background: var(--bg-card-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px;
}

.mini-k {
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 700;
}

.mini-v {
    font-weight: 700;
    margin-top: 4px;
}

.mini-t {
    font-size: 12px;
    color: var(--ink-muted);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.side-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-top: 48px;
}

.section-head {
    margin-bottom: 20px;
}

.section-actions {
    margin-top: 20px;
}

.h3 {
    font-family: var(--font-title);
    font-size: 18px;
    margin: 0 0 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-item {
    display: flex;
    gap: 14px;
}

.t-yr {
    font-weight: 700;
    color: var(--accent-cyan);
    min-width: 90px;
}

.t-tx {
    color: var(--ink-soft)
}

/* =========================================================
   CASE STUDIES
   ========================================================= */

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.badge-row {
    display: flex;
    gap: 8px
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(79, 163, 255, .20);
}

.badge.ghost {
    background: rgba(255, 255, 255, .08);
}

.card-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    color: var(--ink-muted);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px) {
    .hero-mid {
        grid-template-columns: 1fr
    }

    .cards-3 {
        grid-template-columns: 1fr
    }

    .kpi-row {
        grid-template-columns: 1fr
    }

    .mini-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {
    .nav {
        display: none
    }
}