/* ==========================================================================
   Drawbridge – product site (drawbridge.zoones.net)
   No build step, no JavaScript, no external requests. Dark only.
   Brand tokens (blue, navy, Aileron) come from the Zoones GmbH house style.
   ========================================================================== */

@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Light.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Aileron;
    src: url(../fonts/Aileron-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;

    --blue: hsl(230, 40%, 55%);          /* Zoones brand #5d6cb9 */
    --blue-300: hsl(231, 62%, 76%);
    --blue-200: hsl(230, 70%, 86%);
    --amber: #fbbf24;                    /* the lock in the app icon */
    --green: #4ade80;                    /* "connected" */

    --bg: hsl(232, 42%, 6%);
    --bg-2: hsl(232, 38%, 9%);
    --panel: hsl(232, 34%, 12%);
    --panel-2: hsl(232, 30%, 16%);
    --line: hsla(230, 60%, 80%, 0.13);
    --line-2: hsla(230, 60%, 80%, 0.24);

    --text: hsl(230, 40%, 93%);
    --text-2: hsl(230, 22%, 74%);
    --muted: hsl(230, 16%, 58%);

    --sans: Aileron, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --radius: 12px;
    --radius-s: 6px;
    --header-h: 4rem;
    --max: 76rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-300);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
a:hover {
    color: var(--blue-200);
}
:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 3px;
}

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
p {
    margin: 0 0 1em;
}
code, kbd, .mono {
    font-family: var(--mono);
    font-size: 0.86em;
}
code {
    padding: 0.1em 0.38em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: hsla(230, 60%, 80%, 0.06);
    color: var(--blue-200);
    overflow-wrap: anywhere;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 100;
    padding: 0.5rem 0.9rem;
    background: var(--amber);
    color: #111;
    border-radius: var(--radius-s);
}
.skip-link:focus {
    left: 0.5rem;
}

/* ---------- Header ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsla(232, 42%, 6%, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--header-h);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.brand-zoones {
    flex: none;
    display: block;
}
.brand-zoones img {
    width: 7.4rem;
    height: auto;
}
.brand-sep {
    flex: none;
    width: 1px;
    height: 1.6rem;
    background: var(--line-2);
    transform: rotate(18deg);
}
.brand-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    text-decoration: none;
}
.brand-product img {
    width: 1.6rem;
    height: 1.6rem;
}
.site-nav {
    margin-left: auto;
}
.site-nav ul {
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-2);
    text-decoration: none;
}
.site-nav a:hover {
    color: var(--text);
}
.site-nav a::before {
    content: "./";
    color: var(--muted);
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg {
    flex: none;
    width: 1.1em;
    height: 1.1em;
}
.btn-primary {
    background: var(--amber);
    color: hsl(232, 45%, 9%);
    box-shadow: 0 0 0 1px hsla(43, 96%, 56%, 0.35), 0 10px 34px -10px hsla(43, 96%, 56%, 0.55);
}
.btn-primary:hover {
    background: #fcd34d;
    color: hsl(232, 45%, 9%);
    transform: translateY(-1px);
}
.btn-ghost {
    border-color: var(--line-2);
    color: var(--text);
    background: hsla(230, 60%, 80%, 0.04);
}
.btn-ghost:hover {
    border-color: var(--blue-300);
    color: var(--text);
}
.btn-small {
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 0;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {                         /* blueprint grid */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 20%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 20%, #000 0%, transparent 78%);
    opacity: 0.8;
}
.hero::after {                          /* brand glow */
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 34%;
    width: min(90rem, 150vw);
    height: 46rem;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side, hsla(230, 55%, 55%, 0.36), transparent 70%);
    pointer-events: none;
}
.hero-copy {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: hsla(232, 34%, 12%, 0.7);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-2);
}
.dot {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px hsla(142, 69%, 58%, 0.2), 0 0 12px var(--green);
}
.hero h1 {
    font-size: clamp(2.3rem, 6.4vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 1.4rem;
}
.hero h1 em {
    display: block;
    font-style: normal;
    color: var(--amber);
}
.hero-deck {
    max-width: 42rem;
    margin: 0 auto 2.2rem;
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    font-weight: 300;
    color: var(--text-2);
    text-wrap: pretty;
}
.hero-deck strong {
    font-weight: 400;
    color: var(--text);
}
.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}
.fineprint {
    margin: 1rem 0 0;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted);
}
.hero-shot {
    width: min(100% + 2rem, 84rem);
    margin: clamp(1.25rem, 3vw, 2.5rem) auto 0;
    padding: 0 0.25rem;
}
.shot {
    display: block;
    cursor: zoom-in;
}
.shot img {
    width: 100%;
}

/* ---------- Protocol strip ---------------------------------------------- */
.strip {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
}
.strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin: 0;
    padding: 1.1rem 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-2);
}
.strip li::before {
    content: "▸ ";
    color: var(--blue);
}

/* ---------- Sections ---------------------------------------------------- */
.section {
    padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-alt {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}
.kicker {
    margin: 0 0 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--amber);
}
.kicker::before {
    content: "// ";
    color: var(--muted);
}
.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2, .feature h2, .install-grid h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}
.section-head p:not(.kicker) {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-2);
}

/* ---------- Pipeline (how a connection opens) ---------------------------- */
.pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    overflow: hidden;
}
.pipeline li {
    position: relative;
    padding: 1.5rem 1.4rem 1.6rem;
    background: var(--panel);
    counter-increment: step;
}
.pipeline li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}
.pipeline h3 {
    font-size: 1.12rem;
    margin-bottom: 0.4rem;
}
.pipeline p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-2);
}
.pipeline li:last-child {
    background: linear-gradient(160deg, hsla(230, 45%, 45%, 0.42), var(--panel) 70%);
}
.pipeline li:last-child::before {
    color: var(--green);
}

/* ---------- Feature rows ------------------------------------------------ */
.feature {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    overflow: hidden;
}
.feature + .feature {
    border-top: 1px solid var(--line);
}
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.feature-reverse .feature-grid {
    grid-template-columns: minmax(0, 9fr) minmax(0, 5fr);
}
.feature-reverse .feature-copy {
    order: 2;
}
.feature-copy p {
    color: var(--text-2);
}
.feature-shot {
    position: relative;
    margin: -2% -3.5%;                  /* the PNGs carry their own shadow margin */
}
.feature-shot::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    z-index: -1;
    background: radial-gradient(closest-side, hsla(230, 55%, 55%, 0.3), transparent);
    filter: blur(30px);
}
.feature-shot figcaption {
    margin: -1.2rem 3.5% 0;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted);
    text-align: center;
}
.ticks {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}
.ticks li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
    font-size: 0.98rem;
    color: var(--text-2);
    border-top: 1px dashed var(--line);
}
.ticks li::before {
    content: "+";
    position: absolute;
    left: 0.15rem;
    font-family: var(--mono);
    color: var(--green);
}
.ticks strong {
    color: var(--text);
    font-weight: 700;
}

/* ---------- Cards ------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}
.card {
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}
.card .tag {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--blue-300);
}
.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.card li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-2);
    border-top: 1px dashed var(--line);
}
.minis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.1rem;
}
.mini {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.mini h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.mini p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-2);
}

/* ---------- Spec sheet -------------------------------------------------- */
.spec {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}
.spec > div {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.05rem 1.5rem;
}
.spec > div + div {
    border-top: 1px solid var(--line);
}
.spec dt {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--amber);
    padding-top: 0.2rem;
}
.spec dd {
    margin: 0;
    color: var(--text-2);
}
.spec dd strong {
    color: var(--text);
}

/* ---------- Install ----------------------------------------------------- */
.install-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
.steps {
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    counter-reset: s;
}
.steps li {
    position: relative;
    padding: 0.75rem 0 0.75rem 3rem;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    counter-increment: s;
}
.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
}
.steps strong {
    color: var(--text);
}
.install-grid .actions {
    justify-content: flex-start;
}
.term {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: hsl(232, 45%, 4%);
    overflow: hidden;
}
.term-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
}
.term-bar i {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--line-2);
}
.term-bar span {
    margin-left: 0.5rem;
}
.term pre {
    margin: 0;
    padding: 1.1rem 1.2rem 1.3rem;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.75;
    color: var(--text);
}
.term .c {
    color: var(--muted);
}
.term .p {
    color: var(--green);
    -webkit-user-select: none;
    user-select: none;
}
.note {
    margin-top: 1.1rem;
    padding: 1rem 1.2rem;
    border-left: 2px solid var(--amber);
    background: hsla(43, 96%, 56%, 0.06);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-size: 0.94rem;
    color: var(--text-2);
}
.note p:last-child {
    margin-bottom: 0;
}
.note strong {
    color: var(--text);
}

/* ---------- Closing CTA ------------------------------------------------- */
.cta {
    position: relative;
    padding: clamp(4rem, 9vw, 6.5rem) 0;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -22rem;
    width: min(70rem, 140vw);
    height: 40rem;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, hsla(230, 55%, 55%, 0.34), transparent 70%);
}
.cta img {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 14px 30px hsla(232, 60%, 3%, 0.8));
}
.cta h2 {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    margin-bottom: 1.8rem;
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--line);
    background: hsl(232, 45%, 4.5%);
    padding: 2.5rem 0 2.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-brand img {
    width: 6.5rem;
    height: auto;
    opacity: 0.9;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-links a {
    color: var(--text-2);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}
.trademark {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    max-width: 62rem;
    font-size: 0.8rem;
    line-height: 1.55;
}

/* ---------- Legal pages ------------------------------------------------- */
.legal {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.legal .container {
    max-width: 50rem;
}
.legal article + article {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line-2);
}
.legal h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
}
.legal h2 {
    margin-top: 2.4rem;
    font-size: 1.3rem;
}
.legal p, .legal dd, .legal address {
    color: var(--text-2);
}
.legal .lead {
    font-size: 1.15rem;
    font-weight: 300;
}
.legal address {
    font-style: normal;
    margin-bottom: 1.2rem;
}
.legal dl {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 0;
    margin: 1.2rem 0;
    border-top: 1px solid var(--line);
}
.legal dt, .legal dd {
    margin: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.legal dt {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 0.75rem;
    padding-right: 1rem;
}
.legal .meta {
    font-size: 0.88rem;
    color: var(--muted);
}
.lang-jump {
    display: flex;
    gap: 1.2rem;
    margin: 0 0 2rem;
    font-family: var(--mono);
    font-size: 0.8rem;
}

/* ---------- 404 --------------------------------------------------------- */
.lost {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 4rem 0;
    text-align: center;
}
.lost .code {
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: clamp(4rem, 16vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--amber);
    letter-spacing: -0.04em;
}
.lost p {
    color: var(--text-2);
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 62rem) {
    .feature-grid, .feature-reverse .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .feature-reverse .feature-copy {
        order: 0;
    }
    .feature-shot {
        margin: -1% -3.5% 0;
    }
    .feature-shot figcaption {
        margin-top: -0.3rem;
    }
    .pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .minis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .install-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 52rem) {
    .site-nav {
        display: none;
    }
    .header-inner .btn {
        margin-left: auto;
    }
}

@media (max-width: 40rem) {
    body {
        font-size: 1rem;
    }
    .brand-zoones img {
        width: 5.6rem;
    }
    .brand-product span {
        display: none;
    }
    .brand {
        gap: 0.65rem;
    }
    .hero-shot {
        width: calc(100% + 1.5rem);
        margin-left: -0.75rem;
        padding: 0;
    }
    .actions .btn {
        width: 100%;
    }
    .pipeline {
        grid-template-columns: minmax(0, 1fr);
    }
    .minis {
        grid-template-columns: minmax(0, 1fr);
    }
    .spec > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
        padding: 1rem 1.1rem;
    }
    .legal dl {
        grid-template-columns: minmax(0, 1fr);
    }
    .legal dt {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .legal dd {
        padding-top: 0.15rem;
    }
    .strip ul {
        gap: 0.35rem 1.1rem;
        font-size: 0.76rem;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn {
        transition: none;
    }
}
