*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep: #0a2540;
    --blue-mid: #0077b6;
    --blue-bright: #00b4d8;
    --blue-light: #ade8f4;
    --blue-pale: #f0f8ff;
    --teal: #0096c7;
    --green: #2ec4b6;
    --text: #1a2738;
    --text-muted: #4a6080;
    --white: #ffffff;
    --card-border: #daeaf5;
    --code-bg: #0d1f33;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(10, 37, 64, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 37, 64, .96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.nav-brand {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
}

.nav-brand span {
    color: var(--blue-bright);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--blue-bright);
}

/* ── HERO ── */
.hero {
    background: linear-gradient(145deg, var(--blue-deep) 0%, #0d3b6e 55%, #074f6e 100%);
    color: var(--white);
    padding: 7rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(0, 180, 216, .18) 0%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, .18);
    border: 1px solid rgba(0, 180, 216, .4);
    color: var(--blue-bright);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    position: relative;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue-bright);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .78);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.btn-primary {
    background: var(--blue-bright);
    color: var(--blue-deep);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .5);
}

.btn-outline:hover {
    border-color: var(--white);
}

.hero-meta {
    margin-top: 3.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-meta-item {
    text-align: center;
}

.hero-meta-item .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-bright);
}

.hero-meta-item .label {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── SECTIONS ── */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
}

.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: .75rem;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--blue-deep);
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ── MOTIVATION ── */
.motivation {
    background: var(--blue-pale);
}

.motivation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.motivation-text h2 {
    margin-bottom: 1rem;
}

.motivation-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.motivation-illustration {
    background: var(--blue-deep);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.tank-diagram {
    width: 100%;
}

.scenario-title {
    text-align: center;
    color: var(--blue-bright);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.scenario-title + .tank-diagram {
    margin-bottom: 1.25rem;
}

/* ── LABELS ── */
.labels {
    background: var(--blue-pale);
}

.labels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.label-type-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.label-type-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: .4rem;
}

.label-type-card > p {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.label-preview-wrap {
    background: #ebebeb;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label-svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .2));
}

/* ── FEATURES ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(10, 37, 64, .15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--blue-deep);
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-muted);
}

/* ── SCREENSHOTS ── */
.screenshot-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--blue-mid);
    color: var(--white);
    border-color: var(--blue-mid);
}

.screenshot-frame {
    background: var(--blue-deep);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(10, 37, 64, .3);
}

.frame-titlebar {
    background: #1a3550;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28c840;
}

.frame-url {
    background: rgba(255, 255, 255, .08);
    border-radius: 5px;
    color: rgba(255, 255, 255, .5);
    font-size: .75rem;
    padding: .25rem .75rem;
    margin-left: .75rem;
    flex: 1;
    max-width: 300px;
}

.screenshot-content {
    padding: 2rem;
}

/* mock UI components */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mock-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.mock-badge {
    background: rgba(46, 196, 182, .2);
    color: var(--green);
    border: 1px solid rgba(46, 196, 182, .4);
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.mock-badge::before {
    content: "●";
    font-size: .5rem;
}

.gauge-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gauge {
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .08);
}

.gauge-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-bright);
}

.gauge-unit {
    font-size: .7rem;
    color: rgba(255, 255, 255, .4);
    margin-top: .1rem;
}

.gauge-label {
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);
    margin-top: .3rem;
}

.gauge-o2 .gauge-value {
    color: #06d6a0;
}

.gauge-he .gauge-value {
    color: #f72585;
}

.gauge-temp .gauge-value {
    color: #ffd166;
}

.gauge-pres .gauge-value {
    color: var(--blue-bright);
}

.mock-chart {
    background: rgba(255, 255, 255, .04);
    border-radius: 8px;
    height: 80px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
}

.mock-table th {
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    padding: .5rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mock-table td {
    font-size: .8rem;
    color: rgba(255, 255, 255, .8);
    padding: .6rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.mock-table tr:last-child td {
    border-bottom: none;
}

.tag {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
}

.tag-green {
    background: rgba(46, 196, 182, .15);
    color: var(--green);
}

.tag-blue {
    background: rgba(0, 180, 216, .15);
    color: var(--blue-bright);
}

.mock-label-preview {
    background: var(--white);
    color: var(--text);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 320px;
    margin: 0 auto;
    font-family: monospace;
    font-size: .8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.label-header {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: .75rem;
    border-bottom: 2px solid var(--blue-mid);
    padding-bottom: .5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    padding: .25rem 0;
    border-bottom: 1px solid #eee;
    font-size: .85rem;
}

.label-row .key {
    color: var(--text-muted);
}

.label-row .val {
    font-weight: 700;
    color: var(--blue-deep);
}

.label-mod {
    margin-top: .75rem;
    background: var(--blue-deep);
    color: var(--white);
    text-align: center;
    padding: .5rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
}


.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.setting-label {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

.setting-value {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--blue-bright);
    border-radius: 6px;
    padding: .3rem .75rem;
    font-size: .8rem;
}

/* screenshot navigation */
.screenshot-panels {
    position: relative;
}

.screenshot-panel {
    display: none;
}

.screenshot-panel.visible {
    display: block;
}

.screenshot-img-wrap {
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.screenshot-img-wrap img {
    max-width: 700px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .45);
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: opacity .2s;
}

.screenshot-img-wrap img:hover {
    opacity: .88;
}

.screenshot-img-wrap::after {
    content: "⤢";
    position: absolute;
    top: .6rem;
    right: calc(50% - 350px + .6rem);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .85rem;
    line-height: 1;
    padding: .35rem .5rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}

.screenshot-img-wrap:hover::after {
    opacity: 1;
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, .7);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .25);
}

.screenshot-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .5);
    font-size: .875rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.screenshot-print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 800px) {
    .screenshot-print-grid {
        grid-template-columns: 1fr;
    }
}

/* ── DEPENDENCIES ── */
.dep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .dep-grid {
        grid-template-columns: 1fr;
    }
}

.dep-card {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dep-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.dep-card-header.macos {
    background: linear-gradient(135deg, #1c1c1e, #2d2d30);
}

.dep-card-header.linux {
    background: linear-gradient(135deg, #1a2a1a, #2a3d2a);
}

.dep-card-header.hw {
    background: linear-gradient(135deg, #0a2540, #0d3b6e);
}

.dep-icon {
    font-size: 1.8rem;
}

.dep-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.dep-subtitle {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

.dep-card-body {
    background: var(--white);
    padding: 1.25rem 1.5rem;
}

.dep-list {
    list-style: none;
}

.dep-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
}

.dep-list li:last-child {
    border-bottom: none;
}

.dep-list li::before {
    content: "→";
    color: var(--blue-bright);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* ── SETUP ── */
.setup {
    background: var(--blue-pale);
}

.setup-panels {
    position: relative;
}

.setup-tab-panel {
    display: none;
}

.setup-tab-panel.visible {
    display: block;
}

.setup .step {
    background: var(--white);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.setup .step h3 {
    color: var(--blue-deep);
}

.setup .step p {
    color: var(--text-muted);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.step {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-bright);
    color: var(--blue-deep);
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.step h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--white);
}

.step p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

.code-block {
    background: var(--code-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
}

.code-block-header {
    background: rgba(255, 255, 255, .05);
    padding: .6rem 1.25rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-block pre {
    padding: 1.25rem;
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    overflow-x: auto;
    font-family: "SF Mono", "Fira Code", "Menlo", monospace;
}

.code-block pre .comment {
    color: #5c7a99;
}

.code-block pre .cmd {
    color: var(--blue-bright);
}

.code-block pre .flag {
    color: #f9c74f;
}

/* ── DOWNLOAD ── */
.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .download-card {
        flex-basis: 100% !important;
    }
}

.download-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(10, 37, 64, .15);
}

.dl-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dl-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: .3rem;
}

.dl-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.dl-meta {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .75rem;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue-deep);
    color: var(--white);
    padding: .65rem 1.5rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.btn-dl:hover {
    background: var(--blue-mid);
}

.btn-dl-disabled {
    background: #c5d5e8;
    color: #8a9ab0;
    cursor: not-allowed;
}

.btn-dl-disabled:hover {
    background: #c5d5e8;
}

.dl-version-badge {
    display: inline-block;
    background: var(--blue-pale);
    color: var(--blue-mid);
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ── LONG DESCRIPTION ── */
.tech {
    background: var(--blue-pale);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.tech-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--blue-light);
}

.tech-section p {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.tech-section ul {
    list-style: none;
}

.tech-section ul li {
    font-size: .9rem;
    color: var(--text-muted);
    padding: .35rem 0;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    gap: .6rem;
}

.tech-section ul li::before {
    content: "▸";
    color: var(--blue-bright);
    flex-shrink: 0;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.api-table th {
    text-align: left;
    padding: .5rem .75rem;
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.api-table td {
    padding: .55rem .75rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
}

.api-table tr:last-child td {
    border-bottom: none;
}

.api-table tr:nth-child(even) td {
    background: rgba(10, 37, 64, .03);
}

.method {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    font-family: monospace;
}

.method-get {
    background: rgba(46, 196, 182, .15);
    color: #0a9e8a;
}

.method-post {
    background: rgba(0, 119, 182, .15);
    color: var(--blue-mid);
}

.method-put {
    background: rgba(249, 199, 79, .15);
    color: #c8962a;
}

code {
    font-family: "SF Mono", "Fira Code", "Menlo", monospace;
    background: rgba(10, 37, 64, .07);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .85em;
    color: var(--blue-mid);
}

/* ── FOOTER ── */
footer {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .5);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: .875rem;
}

footer a {
    color: var(--blue-bright);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.footer-logo {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.footer-logo span {
    color: var(--blue-bright);
}

/* ── LEGAL PAGES ── */
.legal-hero {
    background: linear-gradient(145deg, var(--blue-deep) 0%, #0d3b6e 55%, #074f6e 100%);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-top: 1rem;
}

.legal-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-top: 2.5rem;
    margin-bottom: .6rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--card-border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: .9rem;
    line-height: 1.7;
}

.legal-content ul {
    color: var(--text-muted);
    margin: .5rem 0 .9rem 1.25rem;
    line-height: 1.7;
}

.legal-content ul li {
    margin-bottom: .4rem;
}

.legal-content a {
    color: var(--blue-mid);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-note {
    background: #fff8e1;
    border-left: 3px solid #f9c74f;
    padding: .65rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: .875rem;
    color: #7a6000 !important;
    margin-top: .25rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav {
        padding: .75rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .motivation-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .gauge-row {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 3.5rem 1.25rem;
    }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
    display: flex;
    gap: .25rem;
    align-items: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .55);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: .06em;
    transition: color .15s, border-color .15s, background .15s;
    line-height: 1.4;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

.lang-btn.active {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

/* ── DUAL-LANGUAGE CONTENT BLOCKS ── */
.lang-en {
    display: none;
}