:root {
    --coex1st-bg: #060b10;
    --coex1st-bg-deep: #03070a;
    --coex1st-panel: rgba(10, 20, 28, 0.78);
    --coex1st-panel-solid: #0b151d;
    --coex1st-line: rgba(144, 188, 204, 0.18);
    --coex1st-line-strong: rgba(155, 215, 230, 0.42);
    --coex1st-text: #e8f0f3;
    --coex1st-muted: #8a9ba5;
    --coex1st-dim: #60717a;
    --coex1st-accent: #73d7e8;
    --coex1st-accent-soft: rgba(115, 215, 232, 0.12);
    --coex1st-good: #68d4a4;
    --coex1st-shadow: 0 18px 60px rgba(0, 0, 0, 0.44);
    --coex1st-radius: 14px;
    --coex1st-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --coex1st-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--coex1st-bg-deep);
}

body.coex1st-stage {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--coex1st-text);
    background:
        radial-gradient(circle at 50% 22%, rgba(32, 83, 104, 0.18), transparent 29%),
        radial-gradient(circle at 83% 35%, rgba(22, 61, 78, 0.11), transparent 26%),
        linear-gradient(180deg, #071018 0%, #050a0f 52%, #03070a 100%);
    font-family: var(--coex1st-sans);
    -webkit-font-smoothing: antialiased;
}

body.coex1st-stage::selection {
    color: #031014;
    background: var(--coex1st-accent);
}

body.coex1st-stage a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.coex1st-space,
.coex1st-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.coex1st-space {
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 12% 14%, rgba(255,255,255,0.9) 0 0.6px, transparent 0.9px),
        radial-gradient(circle at 76% 22%, rgba(255,255,255,0.7) 0 0.55px, transparent 0.85px),
        radial-gradient(circle at 66% 68%, rgba(255,255,255,0.55) 0 0.5px, transparent 0.8px),
        radial-gradient(circle at 28% 72%, rgba(255,255,255,0.5) 0 0.45px, transparent 0.75px);
    background-size: 173px 149px, 211px 191px, 263px 229px, 307px 257px;
}

.coex1st-grid {
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(127, 186, 205, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 186, 205, 0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
}

.coex1st-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 28px;
    border-bottom: 1px solid var(--coex1st-line);
    background: rgba(3, 8, 12, 0.66);
    backdrop-filter: blur(16px);
}

.coex1st-microbrand,
.coex1st-nav,
.coex1st-system-status {
    display: flex;
    align-items: center;
}

.coex1st-microbrand {
    gap: 10px;
    color: #c4d0d5;
    font: 600 11px/1 var(--coex1st-mono);
    letter-spacing: 0.14em;
}

.coex1st-micro-muted {
    color: var(--coex1st-dim);
    font-weight: 400;
}

.coex1st-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coex1st-accent);
    box-shadow: 0 0 14px rgba(115, 215, 232, 0.72);
}

.coex1st-nav {
    gap: 26px;
}

.coex1st-nav a {
    position: relative;
    color: #8d9ca5;
    font: 500 10px/1 var(--coex1st-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.coex1st-nav a:hover,
.coex1st-nav a.is-current {
    color: var(--coex1st-text);
}

.coex1st-nav a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 1px;
    background: var(--coex1st-accent);
    box-shadow: 0 0 8px rgba(115, 215, 232, 0.55);
}

.coex1st-system-status {
    gap: 7px;
    padding-left: 21px;
    border-left: 1px solid var(--coex1st-line);
    color: #677982;
    font: 500 9px/1 var(--coex1st-mono);
    letter-spacing: 0.12em;
}

.coex1st-system-status span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--coex1st-good);
    box-shadow: 0 0 10px rgba(104, 212, 164, 0.6);
}

.coex1st-home-main,
.coex1st-branch-main,
.coex1st-footer {
    position: relative;
    z-index: 2;
}

.coex1st-home-main {
    width: min(1460px, calc(100% - 44px));
    margin: 0 auto;
    padding: 72px 0 30px;
}

.coex1st-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coex1st-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 34px;
}

.coex1st-mark {
    position: relative;
    width: 62px;
    height: 72px;
    margin-bottom: 18px;
}

.coex1st-mark-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 72px;
    background: linear-gradient(180deg, rgba(222, 240, 245, 0.9), rgba(115, 215, 232, 0.5));
    transform: translateX(-50%);
}

.coex1st-mark-ring {
    position: absolute;
    left: 50%;
    top: 23px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(229, 242, 246, 0.92);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 7px rgba(115, 215, 232, 0.025), 0 0 20px rgba(115, 215, 232, 0.08);
}

.coex1st-mark-dot {
    position: absolute;
    top: 38px;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(229, 242, 246, 0.92);
    border-radius: 50%;
}

.coex1st-mark-dot-left {
    left: 3px;
}

.coex1st-mark-dot-right {
    right: 3px;
}

.coex1st-wordmark {
    color: #e8eff2;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    letter-spacing: 0.29em;
    line-height: 1;
    text-indent: 0.29em;
}

.coex1st-wordmark span {
    color: var(--coex1st-accent);
}

.coex1st-submark {
    margin-top: 12px;
    color: #71858f;
    font: 500 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.24em;
}

.coex1st-eyebrow {
    margin: 0 0 12px;
    color: var(--coex1st-accent);
    font: 500 10px/1.4 var(--coex1st-mono);
    letter-spacing: 0.23em;
}

.coex1st-hero h1,
.coex1st-branch-hero h1 {
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.035em;
}

.coex1st-hero h1 {
    font-size: clamp(30px, 3vw, 48px);
}

.coex1st-home-intro,
.coex1st-branch-intro {
    color: var(--coex1st-muted);
    line-height: 1.75;
}

.coex1st-home-intro {
    max-width: 760px;
    margin: 16px auto 36px;
    font-size: 15px;
}

.coex1st-query-shell {
    width: min(1050px, 100%);
}

.coex1st-query-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid var(--coex1st-line);
    border-radius: 999px;
    background: rgba(5, 11, 16, 0.72);
}

.coex1st-query-tabs button {
    padding: 7px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f818a;
    font: 600 9px/1 var(--coex1st-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.coex1st-query-tabs button.is-active {
    color: #dff6fb;
    background: var(--coex1st-accent-soft);
}

.coex1st-query-form {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 10px 12px 10px 24px;
    border: 1px solid var(--coex1st-line-strong);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(22, 39, 50, 0.82), rgba(8, 17, 24, 0.9));
    box-shadow: var(--coex1st-shadow), inset 0 0 0 1px rgba(255,255,255,0.025), 0 0 36px rgba(75, 182, 203, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.coex1st-query-form:focus-within {
    border-color: rgba(115, 215, 232, 0.78);
    box-shadow: var(--coex1st-shadow), 0 0 0 3px rgba(115, 215, 232, 0.07), 0 0 42px rgba(75, 182, 203, 0.09);
}

.coex1st-query-icon {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin-right: 20px;
    border: 1px solid rgba(153, 188, 202, 0.23);
    border-radius: 50%;
}

.coex1st-query-icon::before,
.coex1st-query-icon::after {
    content: "";
    position: absolute;
}

.coex1st-query-icon::before {
    left: 13px;
    top: 12px;
    width: 14px;
    height: 14px;
    border: 1px solid #bdd0d7;
    border-radius: 50%;
}

.coex1st-query-icon::after {
    left: 28px;
    top: 27px;
    width: 9px;
    height: 1px;
    background: #bdd0d7;
    transform: rotate(45deg);
    transform-origin: left center;
}

.coex1st-query-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 66px;
    border: 0;
    outline: none;
    color: #eef6f8;
    background: transparent;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 300;
}

.coex1st-query-form input::placeholder {
    color: #71838c;
}

.coex1st-query-form > button {
    flex: 0 0 auto;
    width: 86px;
    height: 70px;
    border: 1px solid rgba(115, 215, 232, 0.65);
    border-radius: 14px;
    color: #cff6ff;
    background: linear-gradient(180deg, rgba(45, 126, 145, 0.28), rgba(8, 33, 42, 0.54));
    box-shadow: inset 0 0 24px rgba(115, 215, 232, 0.06), 0 0 18px rgba(80, 203, 227, 0.06);
    font-size: 34px;
    font-weight: 200;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.coex1st-query-form > button:hover {
    transform: translateX(2px);
    background: linear-gradient(180deg, rgba(52, 151, 174, 0.36), rgba(8, 39, 50, 0.62));
}

.coex1st-lenses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 20px;
}

.coex1st-lenses button {
    min-width: 126px;
    padding: 10px 15px;
    border: 1px solid var(--coex1st-line);
    border-radius: 999px;
    color: #a1afb6;
    background: rgba(6, 13, 18, 0.74);
    font: 500 10px/1 var(--coex1st-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.coex1st-lenses button:hover,
.coex1st-lenses button.is-active {
    color: #dff9ff;
    border-color: rgba(115, 215, 232, 0.54);
    background: var(--coex1st-accent-soft);
}

.coex1st-examples {
    display: grid;
    width: min(790px, 100%);
    margin: 0 auto;
}

.coex1st-examples button {
    position: relative;
    padding: 11px 34px 11px 24px;
    border: 0;
    border-bottom: 1px solid rgba(139, 184, 199, 0.13);
    color: #8799a2;
    background: transparent;
    font: 400 11px/1.45 var(--coex1st-mono);
    text-align: left;
    cursor: pointer;
    transition: color 150ms ease, padding-left 150ms ease;
}

.coex1st-examples button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 13px;
    height: 1px;
    background: var(--coex1st-accent);
}

.coex1st-examples button::after {
    content: "→";
    position: absolute;
    right: 6px;
    top: 50%;
    color: var(--coex1st-accent);
    transform: translateY(-50%);
}

.coex1st-examples button:hover {
    padding-left: 29px;
    color: #c8d5da;
}

.coex1st-privacy-line {
    margin: 20px auto 0;
    color: #72858e;
    font: 500 10px/1.5 var(--coex1st-mono);
    letter-spacing: 0.04em;
}

.coex1st-privacy-line span {
    margin-right: 7px;
    color: var(--coex1st-accent);
}

.coex1st-response {
    width: min(860px, 100%);
    margin: 22px auto 0;
    padding: 24px;
    border: 1px solid var(--coex1st-line-strong);
    border-radius: var(--coex1st-radius);
    background: rgba(6, 15, 21, 0.86);
    box-shadow: var(--coex1st-shadow);
    text-align: left;
}

.coex1st-response[hidden] {
    display: none;
}

.coex1st-response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--coex1st-line);
}

.coex1st-response-kicker,
.coex1st-response-lens {
    margin: 0;
    color: var(--coex1st-accent);
    font: 600 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.coex1st-response h3 {
    margin: 10px 0 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
}

.coex1st-response-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.coex1st-response-grid article {
    padding: 17px;
    border: 1px solid var(--coex1st-line);
    border-radius: 10px;
    background: rgba(255,255,255,0.018);
}

.coex1st-response-grid h4 {
    margin: 0 0 9px;
    color: #ccdce1;
    font: 600 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.coex1st-response-grid p,
.coex1st-search-result p {
    margin: 0;
    color: #8fa1a9;
    font-size: 13px;
    line-height: 1.65;
}

.coex1st-search-results {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.coex1st-search-result {
    display: block;
    padding: 17px 18px;
    border: 1px solid var(--coex1st-line);
    border-radius: 10px;
    transition: border-color 150ms ease, background 150ms ease;
}

.coex1st-search-result:hover {
    border-color: rgba(115, 215, 232, 0.48);
    background: var(--coex1st-accent-soft);
}

.coex1st-search-result strong {
    display: block;
    margin-bottom: 5px;
    color: #dbe9ed;
    font-weight: 500;
}

.coex1st-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 58px;
}

.coex1st-access-grid > a {
    position: relative;
    min-height: 190px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--coex1st-line);
    border-radius: var(--coex1st-radius);
    background: linear-gradient(150deg, rgba(13, 25, 33, 0.82), rgba(5, 11, 16, 0.88));
    box-shadow: 0 16px 38px rgba(0,0,0,0.18);
    transition: transform 160ms ease, border-color 160ms ease;
}

.coex1st-access-grid > a::after,
.coex1st-project-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(115, 215, 232, 0.08);
    border-radius: 50%;
}

.coex1st-access-grid > a:hover {
    transform: translateY(-3px);
    border-color: rgba(115, 215, 232, 0.44);
}

.coex1st-card-kicker,
.coex1st-project-number {
    color: var(--coex1st-accent);
    font: 600 9px/1 var(--coex1st-mono);
    letter-spacing: 0.12em;
}

.coex1st-access-grid h2 {
    margin: 25px 0 10px;
    font-size: 19px;
    font-weight: 400;
}

.coex1st-access-grid p {
    margin: 0;
    color: #7f9199;
    font-size: 13px;
    line-height: 1.65;
}

.coex1st-card-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--coex1st-accent);
    font: 600 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coex1st-branch-main {
    width: min(1240px, calc(100% - 44px));
    min-height: calc(100vh - 130px);
    margin: 0 auto;
    padding: 82px 0 50px;
}

.coex1st-branch-hero {
    max-width: 900px;
    margin-bottom: 52px;
}

.coex1st-back-link {
    display: inline-block;
    margin-bottom: 42px;
    color: #70838c;
    font: 500 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.coex1st-back-link:hover {
    color: var(--coex1st-accent);
}

.coex1st-branch-hero h1 {
    max-width: 980px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
}

.coex1st-branch-intro {
    max-width: 820px;
    margin: 24px 0 0;
    font-size: 17px;
}

.coex1st-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.coex1st-project-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    min-height: 210px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--coex1st-line);
    border-radius: var(--coex1st-radius);
    background: linear-gradient(150deg, rgba(14, 26, 35, 0.82), rgba(5, 11, 16, 0.86));
    box-shadow: 0 16px 38px rgba(0,0,0,0.17);
}

a.coex1st-project-card {
    transition: border-color 150ms ease, transform 150ms ease;
}

a.coex1st-project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(115, 215, 232, 0.44);
}

.coex1st-project-status {
    margin: 0 0 10px;
    color: var(--coex1st-accent);
    font: 600 9px/1.4 var(--coex1st-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.coex1st-project-card h2 {
    margin: 0 0 13px;
    color: #e3edf0;
    font-size: 22px;
    font-weight: 400;
}

.coex1st-project-card > div > p:last-of-type {
    margin: 0;
    color: #8d9ea6;
    font-size: 14px;
    line-height: 1.7;
}

.coex1st-branch-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--coex1st-line);
}

.coex1st-branch-bottom p {
    margin: 0;
    color: #60737c;
    font: 500 10px/1.55 var(--coex1st-mono);
}

.coex1st-branch-actions {
    display: flex;
    gap: 22px;
    white-space: nowrap;
}

.coex1st-branch-actions a {
    color: #879ba4;
    font: 600 9px/1.3 var(--coex1st-mono);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.coex1st-branch-actions a:hover {
    color: var(--coex1st-accent);
}

.coex1st-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 66px;
    padding: 0 28px;
    border-top: 1px solid var(--coex1st-line);
    color: #50636c;
    background: rgba(3, 7, 10, 0.74);
    font: 500 9px/1.4 var(--coex1st-mono);
    letter-spacing: 0.1em;
}

.coex1st-footer a:hover {
    color: var(--coex1st-accent);
}

@media (max-width: 980px) {
    .coex1st-nav a:nth-child(2),
    .coex1st-nav a:nth-child(3) {
        display: none;
    }

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

    .coex1st-response-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .coex1st-topbar {
        min-height: 58px;
        padding: 0 15px;
    }

    .coex1st-micro-muted,
    .coex1st-system-status,
    .coex1st-nav a:not(.is-current):not(:last-of-type) {
        display: none;
    }

    .coex1st-nav {
        gap: 14px;
    }

    .coex1st-home-main,
    .coex1st-branch-main {
        width: min(100% - 26px, 100%);
    }

    .coex1st-home-main {
        padding-top: 44px;
    }

    .coex1st-brand-lockup {
        margin-bottom: 28px;
    }

    .coex1st-wordmark {
        font-size: 34px;
    }

    .coex1st-home-intro {
        font-size: 14px;
    }

    .coex1st-query-form {
        min-height: 82px;
        padding: 8px 9px 8px 14px;
        border-radius: 17px;
    }

    .coex1st-query-icon {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }

    .coex1st-query-icon::before {
        left: 10px;
        top: 9px;
    }

    .coex1st-query-icon::after {
        left: 25px;
        top: 24px;
    }

    .coex1st-query-form input {
        height: 56px;
        font-size: 17px;
    }

    .coex1st-query-form > button {
        width: 58px;
        height: 56px;
        border-radius: 11px;
        font-size: 28px;
    }

    .coex1st-lenses {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .coex1st-lenses::-webkit-scrollbar {
        display: none;
    }

    .coex1st-lenses button {
        min-width: 105px;
    }

    .coex1st-examples button {
        font-size: 10px;
    }

    .coex1st-privacy-line {
        font-size: 9px;
    }

    .coex1st-access-grid,
    .coex1st-project-grid {
        grid-template-columns: 1fr;
    }

    .coex1st-access-grid {
        margin-top: 40px;
    }

    .coex1st-branch-main {
        padding-top: 50px;
    }

    .coex1st-back-link {
        margin-bottom: 32px;
    }

    .coex1st-branch-hero h1 {
        font-size: 42px;
    }

    .coex1st-branch-intro {
        font-size: 15px;
    }

    .coex1st-project-card {
        grid-template-columns: 34px 1fr;
        min-height: 0;
        padding: 22px;
    }

    .coex1st-branch-bottom,
    .coex1st-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .coex1st-branch-actions {
        flex-direction: column;
        gap: 12px;
    }

    .coex1st-footer {
        padding: 18px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
