:root {
    color-scheme: dark;
    --iron-black: #030506;
    --iron-ink: #071014;
    --iron-panel: #0d151b;
    --iron-panel-strong: #14222c;
    --iron-text: #f7fbfc;
    --iron-muted: #adc3ca;
    --iron-subtle: #71898f;
    --iron-line: rgba(167, 210, 219, 0.24);
    --iron-line-strong: rgba(241, 18, 29, 0.68);
    --iron-red: #f1121d;
    --iron-red-deep: #b90e17;
    --iron-cyan: #21e4f2;
    --iron-cyan-deep: #0c8d9b;
    --iron-gold: #f0b332;
    --iron-green: #35d99b;
    --iron-violet: #6674ff;
    --iron-shadow: 0 34px 96px rgba(0, 0, 0, 0.62);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--iron-text);
    background:
        repeating-linear-gradient(115deg, rgba(241, 18, 29, 0.12) 0 1px, transparent 1px 190px),
        repeating-linear-gradient(245deg, rgba(33, 228, 242, 0.1) 0 1px, transparent 1px 230px),
        linear-gradient(180deg, #030506 0%, #071014 48%, #050607 100%);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

.home-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 40px));
    margin: 0;
    padding: 10px 12px;
    background:
        linear-gradient(90deg, rgba(241, 18, 29, 0.12), transparent 34%),
        rgba(5, 8, 11, 0.72);
    border: 1px solid rgba(167, 210, 219, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.brand-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-link img {
    display: block;
    width: 44px;
    height: 44px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(33, 228, 242, 0.4);
    border-radius: 8px;
    box-shadow:
        0 0 0 4px rgba(241, 18, 29, 0.12),
        0 0 38px rgba(33, 228, 242, 0.18);
    object-fit: contain;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    color: var(--iron-muted);
    font-size: 0.88rem;
    font-weight: 820;
}

.header-links a {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--iron-muted);
    background:
        linear-gradient(180deg, rgba(13, 21, 27, 0.92), rgba(3, 5, 6, 0.92)),
        rgba(8, 12, 15, 0.66);
    border: 1px solid var(--iron-line);
    border-radius: 6px;
    text-decoration: none;
}

.header-links a:hover,
.header-links a:focus,
.brand-link:hover,
.brand-link:focus {
    color: #ffffff;
    border-color: var(--iron-line-strong);
    text-decoration: none;
}

.language-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 38px;
    padding: 4px;
    background: rgba(8, 12, 15, 0.72);
    border: 1px solid var(--iron-line);
    border-radius: 8px;
}

.language-switcher button {
    min-width: 42px;
    min-height: 30px;
    padding: 4px 8px;
    color: var(--iron-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
}

.language-switcher button:hover,
.language-switcher button:focus,
.language-switcher button.is-active {
    color: #ffffff;
    background: rgba(33, 228, 242, 0.12);
    border-color: rgba(33, 228, 242, 0.32);
}

.mesh-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    padding: 132px 0 78px;
}

.mesh-hero::before {
    position: absolute;
    top: 100px;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(33, 228, 242, 0.48), rgba(241, 18, 29, 0.42), transparent);
}

.mesh-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(3, 5, 6, 0.96) 0%, rgba(3, 5, 6, 0.76) 45%, rgba(3, 5, 6, 0.44) 68%, rgba(3, 5, 6, 0.92) 100%),
        linear-gradient(180deg, rgba(3, 5, 6, 0.12), rgba(3, 5, 6, 0.98)),
        url("../img/ironhand-future-command-deck.jpg") center / cover no-repeat;
}

.mesh-hero__backdrop::before,
.mesh-hero__backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.mesh-hero__backdrop::before {
    background-image:
        linear-gradient(rgba(33, 228, 242, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 18, 29, 0.08) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 88%);
}

.mesh-hero__backdrop::after {
    background:
        linear-gradient(128deg, transparent 0%, transparent 54%, rgba(241, 18, 29, 0.28) 54%, rgba(241, 18, 29, 0.28) 55%, transparent 55%),
        linear-gradient(48deg, transparent 0%, transparent 64%, rgba(33, 228, 242, 0.24) 64%, rgba(33, 228, 242, 0.24) 65%, transparent 65%),
        linear-gradient(180deg, transparent 0%, rgba(3, 5, 6, 0.64) 100%);
}

.mesh-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 80px minmax(0, 0.92fr) minmax(360px, 0.9fr);
    gap: clamp(20px, 4vw, 58px);
    align-items: center;
    min-height: calc(100svh - 210px);
}

.signal-rail {
    display: grid;
    gap: 10px;
    align-self: stretch;
    align-content: center;
    perspective: 700px;
}

.signal-rail span {
    display: grid;
    place-items: center;
    min-height: 64px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(33, 228, 242, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(20, 34, 44, 0.88), rgba(3, 5, 6, 0.96));
    border: 1px solid var(--iron-line);
    border-top: 3px solid var(--iron-red);
    border-radius: 8px;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.24),
        inset 0 0 28px rgba(33, 228, 242, 0.04);
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 950;
    transform: rotateY(-8deg);
}

.signal-rail span:nth-child(2) {
    border-top-color: var(--iron-cyan);
}

.signal-rail span:nth-child(3) {
    border-top-color: var(--iron-gold);
}

.signal-rail span:nth-child(4) {
    border-top-color: var(--iron-green);
}

.mesh-copy {
    min-width: 0;
}

.eyebrow,
.launcher-kicker {
    margin: 0 0 12px;
    color: var(--iron-cyan);
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mesh-copy h1 {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(3.3rem, 8vw, 7.6rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow:
        0 0 34px rgba(33, 228, 242, 0.14),
        0 10px 44px rgba(0, 0, 0, 0.58);
}

.hero-lede {
    max-width: 680px;
    margin: 24px 0 0;
    color: #c9d8dc;
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
    margin-top: 28px;
}

.hero-metrics span {
    min-width: 0;
    padding: 13px;
    color: var(--iron-muted);
    background:
        linear-gradient(135deg, rgba(33, 228, 242, 0.08), transparent 46%),
        rgba(5, 8, 11, 0.72);
    border: 1px solid var(--iron-line);
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 rgba(241, 18, 29, 0.2);
}

.hero-metrics strong {
    display: block;
    color: #ffffff;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
}

.future-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 720px;
    margin-top: 14px;
}

.future-ribbon span {
    min-height: 34px;
    padding: 7px 11px;
    color: #dffbff;
    background: rgba(33, 228, 242, 0.09);
    border: 1px solid rgba(33, 228, 242, 0.32);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 850;
    box-shadow: 0 0 28px rgba(33, 228, 242, 0.08);
}

.mesh-console {
    min-width: 0;
    perspective: 1100px;
}

.console-frame {
    position: relative;
    min-height: clamp(360px, 46vw, 520px);
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(33, 228, 242, 0.14), transparent 32%),
        linear-gradient(24deg, rgba(241, 18, 29, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(20, 34, 44, 0.88), rgba(3, 5, 6, 0.96));
    border: 1px solid rgba(167, 210, 219, 0.28);
    border-radius: 8px;
    box-shadow:
        var(--iron-shadow),
        0 0 52px rgba(33, 228, 242, 0.11);
    transform: rotateY(-5deg) rotateX(2deg);
    transform-origin: center;
}

.console-frame::before {
    position: absolute;
    inset: 16px;
    content: "";
    border: 1px solid rgba(33, 228, 242, 0.3);
    border-radius: 8px;
    box-shadow: inset 0 0 48px rgba(33, 228, 242, 0.08);
}

.console-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, transparent 0%, rgba(33, 228, 242, 0.12) 50%, transparent 100%),
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(255, 255, 255, 0.028) 12px 13px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.console-beam {
    position: absolute;
    right: -28%;
    bottom: 14%;
    left: 26%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--iron-cyan), var(--iron-red), transparent);
    box-shadow: 0 0 42px rgba(33, 228, 242, 0.34);
    transform: rotate(-21deg);
}

.console-screen {
    position: absolute;
    inset: 34px 30px 178px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 5, 6, 0.82), rgba(3, 5, 6, 0.18)),
        url("../img/ironhand-future-command-deck.jpg") center / cover no-repeat;
    border: 1px solid rgba(33, 228, 242, 0.42);
    border-radius: 8px;
    box-shadow:
        inset 0 0 54px rgba(3, 5, 6, 0.7),
        0 0 36px rgba(33, 228, 242, 0.14);
}

.console-screen::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(241, 18, 29, 0.28), transparent 30%),
        repeating-linear-gradient(90deg, transparent 0 26px, rgba(33, 228, 242, 0.08) 26px 27px);
}

.screen-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 9px;
    color: #031012;
    background: var(--iron-cyan);
    border-radius: 5px;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.screen-room {
    position: absolute;
    z-index: 1;
    display: block;
    background: rgba(3, 5, 6, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    box-shadow: 0 0 22px rgba(33, 228, 242, 0.12);
}

.screen-room--main {
    right: 24px;
    bottom: 28px;
    width: 42%;
    height: 42%;
    border-color: rgba(241, 18, 29, 0.6);
}

.screen-room--side {
    top: 54px;
    right: 32px;
    width: 30%;
    height: 22%;
    border-color: rgba(33, 228, 242, 0.62);
}

.screen-room--mini {
    bottom: 28px;
    left: 28px;
    width: 24%;
    height: 24%;
    border-color: rgba(53, 217, 155, 0.62);
}

.console-readouts {
    position: absolute;
    right: 30px;
    bottom: 116px;
    left: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.console-readouts span {
    min-width: 0;
    padding: 10px 9px;
    color: #dffbff;
    background: rgba(3, 5, 6, 0.58);
    border: 1px solid rgba(33, 228, 242, 0.24);
    border-radius: 6px;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 860;
    text-align: center;
    text-transform: uppercase;
}

.console-stack {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    display: grid;
    gap: 9px;
}

.console-stack span {
    display: block;
    min-height: 18px;
    background: linear-gradient(90deg, var(--iron-red), rgba(241, 18, 29, 0.18));
    border-radius: 6px;
    box-shadow: 0 0 22px rgba(241, 18, 29, 0.2);
}

.console-stack span:nth-child(2) {
    background: linear-gradient(90deg, var(--iron-cyan), rgba(33, 228, 242, 0.16));
    box-shadow: 0 0 22px rgba(33, 228, 242, 0.18);
}

.console-stack span:nth-child(3) {
    background: linear-gradient(90deg, var(--iron-gold), rgba(227, 163, 49, 0.16));
    box-shadow: 0 0 22px rgba(240, 179, 50, 0.18);
}

.console-node {
    position: absolute;
    z-index: 3;
    width: 16px;
    height: 16px;
    background: var(--iron-red);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(241, 18, 29, 0.15);
}

.console-node--one {
    top: 26px;
    left: 28px;
}

.console-node--two {
    top: 92px;
    right: 24px;
    background: var(--iron-cyan);
    box-shadow: 0 0 0 8px rgba(33, 228, 242, 0.15);
}

.console-node--three {
    right: 80px;
    bottom: 110px;
    background: var(--iron-gold);
    box-shadow: 0 0 0 8px rgba(227, 163, 49, 0.14);
}

.console-node--four {
    bottom: 34px;
    left: 50px;
    background: var(--iron-green);
    box-shadow: 0 0 0 8px rgba(67, 195, 136, 0.14);
}

.launch-dock {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: minmax(210px, 0.74fr) minmax(190px, 0.72fr) minmax(320px, 1.28fr);
    gap: 14px;
    align-items: end;
    min-width: 0;
    margin-top: 18px;
    padding: clamp(18px, 2.6vw, 24px);
    color: var(--iron-text);
    background:
        linear-gradient(90deg, rgba(241, 18, 29, 0.2), transparent 30%),
        linear-gradient(135deg, transparent, rgba(33, 228, 242, 0.12) 74%),
        rgba(5, 8, 11, 0.86);
    border: 1px solid rgba(167, 210, 219, 0.28);
    border-top: 4px solid var(--iron-red);
    border-radius: 8px;
    box-shadow:
        var(--iron-shadow),
        inset 0 0 40px rgba(33, 228, 242, 0.06);
    backdrop-filter: blur(18px);
}

.launcher-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.48rem, 2.4vw, 2.1rem);
    line-height: 1.05;
}

.launch-dock form {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.launch-dock label,
.form-group label {
    display: inline-block;
    color: #d7e7ea;
    font-size: 0.82rem;
    font-weight: 820;
}

.input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
}

.input-group .form-control {
    min-width: 0;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.mesh-band {
    position: relative;
    overflow: hidden;
    padding: 72px 0 82px;
    background:
        linear-gradient(135deg, rgba(241, 18, 29, 0.12), transparent 30%),
        linear-gradient(225deg, rgba(33, 228, 242, 0.12), transparent 30%),
        repeating-linear-gradient(90deg, rgba(167, 210, 219, 0.06) 0 1px, transparent 1px 96px),
        #05090b;
    border-top: 1px solid var(--iron-line);
}

.mesh-band__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.mesh-band h2 {
    margin: 0;
    max-width: 560px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4.2vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.system-cards {
    display: grid;
    gap: 14px;
}

.system-cards article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 14px 18px 14px 14px;
    background:
        linear-gradient(135deg, rgba(33, 228, 242, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(20, 34, 44, 0.94), rgba(5, 8, 11, 0.96));
    border: 1px solid var(--iron-line);
    border-left: 5px solid var(--iron-red);
    border-radius: 8px;
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.system-cards article:nth-child(2) {
    border-left-color: var(--iron-cyan);
}

.system-cards article:nth-child(3) {
    border-left-color: var(--iron-gold);
}

.system-card-image {
    display: block;
    width: 100%;
    height: clamp(150px, 15vw, 190px);
    aspect-ratio: 4 / 3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(167, 210, 219, 0.26);
    border-radius: 6px;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(33, 228, 242, 0.1);
}

.system-card-image--entry {
    background-image: url("../img/ironhand-future-entry.jpg");
}

.system-card-image--media {
    background-image: url("../img/ironhand-future-media-map.jpg");
}

.system-card-image--archive {
    background-image: url("../img/ironhand-future-archive.jpg");
}

.system-card-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.signal-code {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    width: max-content;
    margin-bottom: 0;
    padding: 3px 8px;
    color: #ffffff;
    background: var(--iron-red);
    border-radius: 4px;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.74rem;
    font-weight: 950;
}

.system-cards article:nth-child(2) .signal-code {
    background: var(--iron-cyan-deep);
}

.system-cards article:nth-child(3) .signal-code {
    color: #1d1301;
    background: var(--iron-gold);
}

.system-cards strong {
    display: block;
    color: #ffffff;
    font-size: 1.22rem;
}

.system-cards p {
    margin: 8px 0 0;
    color: var(--iron-muted);
}

.tool-band {
    padding: 20px 0 66px;
    background:
        linear-gradient(180deg, #05090b, #030506),
        #05090b;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.tool-grid span {
    display: grid;
    place-items: center;
    min-height: 76px;
    padding: 12px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(33, 228, 242, 0.08), transparent 46%),
        rgba(13, 21, 27, 0.92);
    border: 1px solid var(--iron-line);
    border-bottom: 4px solid var(--iron-red);
    border-radius: 8px;
    font-weight: 900;
    text-align: center;
    box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.03);
}

.tool-grid span:nth-child(2) {
    border-bottom-color: var(--iron-cyan);
}

.tool-grid span:nth-child(3) {
    border-bottom-color: var(--iron-gold);
}

.tool-grid span:nth-child(4) {
    border-bottom-color: var(--iron-green);
}

.tool-grid span:nth-child(5) {
    border-bottom-color: var(--iron-red);
}

.tool-grid span:nth-child(6) {
    border-bottom-color: var(--iron-cyan);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.72rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.btn-home-primary {
    color: #ffffff;
    background:
        linear-gradient(135deg, #ff2a35, var(--iron-red) 48%, #8d0710),
        var(--iron-red);
    border-color: var(--iron-red);
    box-shadow:
        0 14px 34px rgba(241, 18, 29, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-home-primary:hover,
.btn-home-primary:focus {
    color: #ffffff;
    background: var(--iron-red-deep);
    border-color: var(--iron-red-deep);
}

.btn-home-secondary {
    color: #061012;
    background: linear-gradient(180deg, #ffffff, #dffbff);
    border-color: rgba(255, 255, 255, 0.9);
}

.btn-home-secondary:hover,
.btn-home-secondary:focus {
    color: #ffffff;
    background: var(--iron-cyan-deep);
    border-color: var(--iron-cyan);
}

.btn-home-quiet {
    color: var(--iron-text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--iron-line);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.68rem 0.82rem;
    color: #041014;
    background: linear-gradient(180deg, #ffffff, #eefbfc);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(33, 228, 242, 0.08);
}

.form-control::placeholder {
    color: #819198;
}

.form-control:focus,
.btn:focus,
.close:focus {
    outline: 3px solid rgba(33, 228, 242, 0.32);
    outline-offset: 3px;
}

.small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--iron-muted);
}

.text-success {
    color: var(--iron-green);
}

.text-warning {
    color: var(--iron-gold);
}

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.76);
}

.modal-dialog {
    width: min(660px, 100%);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    color: var(--iron-text);
    background: #10161a;
    border: 1px solid var(--iron-line-strong);
    border-radius: 8px;
    box-shadow: var(--iron-shadow);
}

.modal-header,
.modal-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 1rem 1.25rem;
}

.modal-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--iron-line);
}

.modal-footer {
    flex-wrap: wrap;
    border-top: 1px solid var(--iron-line);
}

.modal-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}

.modal-body {
    overflow-y: auto;
    padding: 1.25rem;
}

.modal-body p {
    margin-top: 0;
    color: var(--iron-muted);
}

.modal-body .form-control {
    border-color: var(--iron-line);
}

.close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--iron-text);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.site-footer,
footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 16px;
    color: var(--iron-muted);
    background: #050607;
    border-top: 1px solid var(--iron-line);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a,
footer a {
    color: #ffffff;
    text-underline-offset: 3px;
}

/* Compatibility for existing static error pages that share homepage.css. */
body.banner {
    min-height: 100vh;
    color: #ffffff;
    background: #06090a;
}

body.banner footer {
    color: rgba(216, 226, 228, 0.86);
    background: #050708;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.image-bg {
    position: relative;
    min-height: calc(100vh - 58px);
    overflow: hidden;
}

.image-bg::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 7, 8, 0.92), rgba(5, 7, 8, 0.42)),
        url("../img/ironhand-tech-hero.jpg") center / cover no-repeat;
}

.container {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

.justify-content-center {
    justify-content: center;
}

.col-lg-12,
.col-md-12,
.col-lg-6 {
    min-width: 0;
    width: 100%;
}

.o-hidden {
    overflow: hidden;
}

.border-0 {
    border: 0;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.p-5 {
    padding: clamp(2rem, 5vw, 3rem);
}

.p-0 {
    padding: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-24 {
    margin-bottom: 24px;
}

.card-body {
    min-height: 0;
}

.text-white {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.98;
}

.hero-cta {
    margin-top: 18px;
}

.btn-light {
    color: #061012;
    background: #ffffff;
    border-color: #ffffff;
}

.bg-index-image {
    min-height: 320px;
    background-image: url("../img/ironhand-tech-hero.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(100%, 800px) auto;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 1040px) {
    .mesh-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .signal-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-self: auto;
    }

    .signal-rail span {
        min-height: 46px;
        transform: none;
    }

    .console-frame {
        transform: none;
    }

    .mesh-console {
        order: 3;
    }

    .launch-dock {
        grid-column: auto;
        order: 2;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .site-header {
        position: relative;
        top: auto;
        left: auto;
        width: min(100% - 32px, 1200px);
        margin: 0 auto;
        padding: 14px 0;
        transform: none;
    }

    .mesh-hero {
        min-height: auto;
        padding: 32px 0 48px;
    }

    .mesh-band__grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .future-ribbon {
        display: grid;
        grid-template-columns: 1fr;
    }

    .console-frame {
        min-height: 360px;
    }

    .system-cards article {
        grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
        width: min(100% - 24px, 1200px);
        padding: 12px 0;
    }

    .brand-link {
        gap: 9px;
        font-size: 0.98rem;
    }

    .brand-link img {
        width: 38px;
        height: 38px;
    }

    .header-links {
        gap: 6px;
        justify-content: flex-start;
        width: 100%;
    }

    .language-switcher {
        width: 100%;
    }

    .language-switcher button {
        flex: 1 1 0;
    }

    .header-links a {
        flex: 1 1 auto;
        min-height: 34px;
        padding: 7px 8px;
        font-size: 0.84rem;
        text-align: center;
    }

    .home-shell {
        width: min(100% - 24px, 1200px);
    }

    .mesh-copy h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .hero-lede {
        font-size: 1rem;
    }

    .signal-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .launch-dock {
        padding: 18px;
    }

    .input-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .input-group .form-control,
    .input-group .btn {
        border: 1px solid rgba(255, 255, 255, 0.88);
        border-radius: 6px;
    }

    .console-frame {
        min-height: 300px;
    }

    .console-screen {
        inset: 28px 22px 146px;
    }

    .screen-label {
        font-size: 0.66rem;
    }

    .console-readouts {
        right: 22px;
        bottom: 100px;
        left: 22px;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .console-readouts span {
        padding: 7px 8px;
        font-size: 0.64rem;
    }

    .console-stack {
        right: 22px;
        bottom: 26px;
        left: 22px;
    }

    .system-cards article {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .system-card-image {
        height: min(260px, 56vw);
        max-height: 260px;
    }

    .tool-grid span {
        min-height: 0;
    }

    .modal {
        align-items: flex-end;
        padding: 12px;
    }

    .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .my-5 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .bg-index-image {
        min-height: 220px;
    }
}
