/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --bg: #0B1D2E;
    --surface: #12283F;
    --surface-2: #16314D;
    --line: #24466A;
    --line-soft: rgba(95,212,196,0.16);
    --cyan: #5FD4C4;
    --amber: #F0A345;
    --text: #EAF2F5;
    --text-dim: #9BB2C4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 48px 48px;
    overflow-x: hidden;
}

::selection {
    background: var(--cyan);
    color: var(--bg);
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .eyebrow::before {
        content: "";
        width: 18px;
        height: 1px;
        background: var(--cyan);
        display: inline-block;
    }

/* Blueprint corner annotations, repeated as a motif */
.blueprint-frame {
    position: relative;
}

.corner-tag {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    opacity: 0.55;
    pointer-events: none;
}

    .corner-tag.tl {
        top: 18px;
        left: 18px;
    }

    .corner-tag.tr {
        top: 18px;
        right: 18px;
        text-align: right;
    }

    .corner-tag.bl {
        bottom: 18px;
        left: 18px;
    }

    .corner-tag.br {
        bottom: 18px;
        right: 18px;
        text-align: right;
    }

.tick {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.55;
}

    .tick.tl {
        top: 14px;
        left: 14px;
        border-left: 1px solid var(--cyan);
        border-top: 1px solid var(--cyan);
    }

    .tick.tr {
        top: 14px;
        right: 14px;
        border-right: 1px solid var(--cyan);
        border-top: 1px solid var(--cyan);
    }

    .tick.bl {
        bottom: 14px;
        left: 14px;
        border-left: 1px solid var(--cyan);
        border-bottom: 1px solid var(--cyan);
    }

    .tick.br {
        bottom: 14px;
        right: 14px;
        border-right: 1px solid var(--cyan);
        border-bottom: 1px solid var(--cyan);
    }

/* NAV */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,29,46,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    transform: rotate(45deg);
}

    .brand-mark span {
        transform: rotate(-45deg);
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
    transition: color .2s;
}

    nav a:hover, nav a:focus-visible {
        color: var(--cyan);
    }

/* HERO */
.hero {
    padding: 96px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    margin: 18px 0 22px;
}

    .hero h1 em {
        font-style: normal;
        color: var(--cyan);
    }

.hero p.lead {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-meta {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    flex-wrap: wrap;
}

    .hero-meta div {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 12px;
        color: var(--text-dim);
    }

    .hero-meta strong {
        display: block;
        color: var(--text);
        font-size: 15px;
        font-family: 'Space Grotesk',sans-serif;
        margin-bottom: 2px;
    }

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 13px 24px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
    background: var(--amber);
    color: #1a1206;
    font-weight: 600;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(240,163,69,0.25);
    }

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
}

    .btn-ghost:hover {
        border-color: var(--cyan);
        color: var(--cyan);
    }

/* Signature diagram */
.diagram-box {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), var(--bg));
    border-radius: 4px;
    padding: 8px;
    position: relative;
}

    .diagram-box svg {
        width: 100%;
        height: auto;
        display: block;
    }

.node-box {
    fill: var(--surface-2);
    stroke: var(--line);
    stroke-width: 1;
}

.node-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    fill: var(--text-dim);
}

.node-core {
    fill: #0e2337;
    stroke: var(--cyan);
    stroke-width: 1.4;
}

.node-core-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: var(--cyan);
}

.wire {
    stroke: var(--line);
    stroke-width: 1;
    fill: none;
}

.wire-pulse {
    stroke: var(--cyan);
    stroke-width: 1.2;
    fill: none;
    stroke-dasharray: 4 6;
    opacity: 0.7;
    animation: dash 6s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.dot {
    fill: var(--amber);
}

/* SECTION shared */
section {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: 48px;
    max-width: 640px;
}

    .section-head h2 {
        font-size: clamp(26px, 3.4vw, 36px);
        margin-top: 14px;
    }

    .section-head p {
        color: var(--text-dim);
        margin-top: 14px;
        font-size: 15.5px;
    }

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

    .about-grid p {
        color: var(--text-dim);
        margin-bottom: 16px;
        font-size: 15.5px;
    }

        .about-grid p strong {
            color: var(--text);
            font-weight: 500;
        }

.spec-list {
    border: 1px solid var(--line);
    background: var(--surface);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
}

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-row span:first-child {
        color: var(--text-dim);
    }

    .spec-row span:last-child {
        color: var(--cyan);
    }

/* MODULES / SERVICES */
.modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.module-card {
    background: var(--surface);
    padding: 30px 28px;
}

.module-id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--amber);
    letter-spacing: 0.08em;
}

.module-card h3 {
    font-size: 19px;
    margin: 10px 0 10px;
}

.module-card p {
    color: var(--text-dim);
    font-size: 14.5px;
}

/* TECH LEGEND */
.legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.legend-item {
    background: var(--surface);
    padding: 22px 20px;
    text-align: center;
}

    .legend-item .sym {
        font-family: 'Space Grotesk',sans-serif;
        font-weight: 700;
        color: var(--cyan);
        font-size: 20px;
        margin-bottom: 8px;
    }

    .legend-item .name {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 12px;
        color: var(--text-dim);
    }

/* PROCESS */
.process {
    position: relative;
}

.process-line {
    position: absolute;
    left: 27px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--line);
}

.step {
    display: flex;
    gap: 26px;
    padding: 22px 0;
    position: relative;
}

.step-num {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--cyan);
    font-size: 14px;
    background: var(--bg);
    z-index: 1;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.step p {
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 60ch;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 22px;
    font-size: 15.5px;
    max-width: 42ch;
}

.contact-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13.5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    transition: color .2s;
}

    .contact-links a:hover {
        color: var(--cyan);
    }

    .contact-links a .arrow {
        color: var(--text-dim);
        transition: transform .2s;
    }

    .contact-links a:hover .arrow {
        transform: translateX(4px);
        color: var(--cyan);
    }

form {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 32px;
}

.field {
    margin-bottom: 20px;
}

    .field label {
        display: block;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.08em;
        color: var(--text-dim);
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .field input, .field textarea {
        width: 100%;
        background: var(--bg);
        border: 1px solid var(--line);
        color: var(--text);
        padding: 12px 14px;
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 14px;
        border-radius: 2px;
        transition: border-color .2s;
    }

        .field input:focus, .field textarea:focus {
            outline: none;
            border-color: var(--cyan);
        }

    .field textarea {
        resize: vertical;
        min-height: 110px;
    }

.submit-btn {
    width: 100%;
    background: var(--amber);
    color: #1a1206;
    border: none;
    padding: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    border-radius: 2px;
    cursor: pointer;
    transition: transform .18s ease;
}

    .submit-btn:hover {
        transform: translateY(-2px);
    }

footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

    footer .mono {
        color: var(--text-dim);
        font-size: 12px;
    }

@media (prefers-reduced-motion: reduce) {
    .wire-pulse {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 860px) {
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .modules {
        grid-template-columns: 1fr;
    }

    .legend {
        grid-template-columns: repeat(2,1fr);
    }

    nav ul {
        display: none;
    }

    .corner-tag {
        display: none;
    }
}
