/* Bold editorial direction: vivid full-screen scenes with a compact mobile UI. */

:root {
    --topbar-height: 72px;
    --bottom-nav-space: 24px;
    --page: #070907;
    --surface: #101310;
    --surface-soft: #171b17;
    --text: #f7f8f2;
    --muted: #b9c1b8;
    --line: rgba(255, 255, 255, 0.16);
    --accent: #c9ff32;
    --accent-dark: #91bd00;
    --accent-soft: rgba(201, 255, 50, 0.18);
    --coral: #ff5b38;
    --cyan: #78e9ff;
    --paper: #f3f4ee;
    --ink: #090b09;
    --ink-soft: #1b201b;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

html {
    color-scheme: dark;
}

body {
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.custom-select-trigger:focus-visible {
    outline-color: var(--accent);
}

.topbar {
    min-height: var(--topbar-height);
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 9, 7, 0.90);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(22px) saturate(1.18);
}

.brand {
    gap: 11px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.brand-logo {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 6px 18px rgba(0, 0, 0, 0.28);
}

.nav {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 4px;
    padding: 4px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #151815;
}

.nav::before {
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 12px) / 2);
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: none;
}

body[data-current-view="order"] .nav::before {
    transform: translateX(calc(100% + 4px));
}

.nav-link {
    min-height: 40px;
    border-radius: 3px;
    color: #cbd0ca;
    font-weight: 800;
}

.nav-link.is-active {
    color: var(--ink);
}

.topic-panel {
    position: relative;
    isolation: isolate;
    padding-right: max(42px, calc((100vw - 1240px) / 2));
    padding-left: max(42px, calc((100vw - 1240px) / 2));
    background: var(--paper);
    color: var(--ink);
}

.topic-panel:nth-child(even),
.topic-panel:nth-child(2) {
    background: var(--accent);
}

.topic-panel:nth-child(3) {
    background: var(--coral);
}

.topic-panel:nth-child(4) {
    background: var(--cyan);
}

.topic-panel::before {
    content: "";
    position: absolute;
    right: clamp(12px, 4vw, 64px);
    bottom: -0.24em;
    z-index: 0;
    color: rgba(7, 9, 7, 0.10);
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(150px, 28vw, 430px);
    font-weight: 900;
    line-height: 0.78;
    pointer-events: none;
}

.topic-panel:nth-child(2)::before {
    content: "02";
}

.topic-panel:nth-child(3)::before {
    content: "03";
}

.topic-panel:nth-child(4)::before {
    content: "04";
}

.topic-hero {
    background-color: #050605;
    background-image: url("/static/$assets/sitecraft-digital-structure.webp");
    background-position: right center;
    background-size: auto 175%;
    background-repeat: no-repeat;
    color: #ffffff;
}

.topic-hero::before {
    display: none;
}

.topic-content {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    min-width: 0;
}

.hero-layout,
.topic-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.78fr);
    gap: clamp(34px, 6vw, 96px);
}

.topic-copy,
.focus-panel,
.hero-action {
    min-width: 0;
    max-width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 3px;
    background: var(--ink);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.topic-hero .eyebrow {
    background: var(--accent);
    color: var(--ink);
}

h1,
.topic-copy h2 {
    width: 100%;
    max-width: 860px;
    margin-bottom: 22px;
    color: inherit;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(54px, 7.8vw, 106px);
    font-weight: 900;
    line-height: 0.90;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.topic-copy h2 {
    font-size: clamp(52px, 7vw, 94px);
}

.lead,
.topic-copy p {
    max-width: 700px;
    color: rgba(9, 11, 9, 0.76);
    font-size: clamp(18px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.35;
}

.topic-hero .lead,
.topic-hero .topic-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.topic-copy .eyebrow {
    color: var(--accent);
}

.topic-hero .topic-copy .eyebrow {
    color: var(--ink);
}

.topic-hero h1,
.topic-hero .lead {
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.94);
}

.signal-row {
    gap: 8px;
    margin-top: 26px;
}

.signal-row span {
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 3px;
    background: rgba(7, 9, 7, 0.72);
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-action {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.hero-action p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-cta {
    display: inline-grid;
    grid-template-columns: auto 26px;
    align-items: center;
    gap: 14px;
    width: auto;
    max-width: 100%;
    min-height: 54px;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 10px 10px 0 var(--coral);
    transition:
        transform 240ms var(--motion-ease),
        box-shadow 240ms var(--motion-ease);
}

.hero-cta span:first-child {
    white-space: nowrap;
}

.hero-cta span:last-child {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: var(--ink);
    color: var(--accent);
    font-size: 17px;
}

.hero-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 14px 14px 0 var(--coral);
}

.focus-panel {
    gap: 20px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 6px;
    background: rgba(7, 9, 7, 0.94);
    color: #ffffff;
    box-shadow: 18px 18px 0 rgba(7, 9, 7, 0.16), var(--shadow);
    backdrop-filter: blur(22px) saturate(1.18);
}

.topic-hero .focus-panel {
    background: rgba(7, 9, 7, 0.84);
    box-shadow: 18px 18px 0 rgba(201, 255, 50, 0.92), var(--shadow);
}

.focus-head span {
    min-height: 26px;
    margin-bottom: 14px;
    padding: 4px 9px;
    border-radius: 3px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    text-transform: uppercase;
}

.focus-head strong {
    color: #ffffff;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(25px, 2.8vw, 38px);
    line-height: 1.02;
}

.focus-list {
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.focus-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    min-height: 60px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    background: transparent;
}

.focus-list li:last-child {
    border-bottom: 0;
}

.focus-list b {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: var(--accent);
    color: var(--ink);
}

.focus-list span {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.topic-cta {
    min-height: 52px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--ink);
    box-shadow: 8px 8px 0 var(--coral);
}

.topic-progress {
    right: max(18px, calc((100vw - 1240px) / 2 - 46px));
    gap: 7px;
    padding: 9px 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(7, 9, 7, 0.82);
    backdrop-filter: blur(16px);
}

.topic-progress-button {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.34);
}

.topic-progress-button.is-active {
    width: 8px;
    height: 30px;
    background: var(--accent);
    box-shadow: none;
}

.order-screen {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--coral);
}

.order-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/static/$assets/sitecraft-digital-structure.webp");
    background-position: 78% center;
    background-size: cover;
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.order-form {
    position: relative;
    z-index: 1;
    gap: clamp(11px, 1.6svh, 17px);
    width: min(100%, 580px);
    padding: clamp(22px, 3svh, 32px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(7, 9, 7, 0.96);
    color: #ffffff;
    box-shadow: 18px 18px 0 rgba(201, 255, 50, 0.94), var(--shadow);
    backdrop-filter: blur(20px);
}

.form-head .eyebrow {
    display: inline-flex;
}

.form-head h2 {
    color: #ffffff;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 0.98;
    text-align: left;
}

.field > span {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
}

.field > input,
.field > select,
.field > textarea,
.custom-select-trigger {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: #171a17;
    color: #ffffff;
}

.field > input::placeholder,
.field > textarea::placeholder {
    color: #8f978f;
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
    border-color: var(--accent);
    background: #1c201c;
    box-shadow: 0 0 0 3px rgba(201, 255, 50, 0.18);
}

.custom-select-value {
    color: #ffffff;
}

.custom-select-value.is-placeholder {
    color: #8f978f;
}

.custom-select-chevron::before {
    border-color: var(--accent);
}

.custom-select-menu {
    border-color: rgba(201, 255, 50, 0.38);
    border-radius: 4px;
    background: #101310;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.custom-select-option {
    border-radius: 3px;
    color: #e9ede8;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-highlighted {
    background: #252b24;
    color: var(--accent);
}

.custom-select-option.is-selected {
    background: var(--accent);
    color: var(--ink);
}

.custom-select-option.is-selected::after {
    border-color: var(--ink);
}

.submit-button {
    min-height: 50px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--ink);
    box-shadow: 8px 8px 0 var(--coral);
    transition:
        transform 220ms var(--motion-ease),
        box-shadow 220ms var(--motion-ease);
}

.submit-button:hover {
    background: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: 11px 11px 0 var(--coral);
}

.form-status {
    color: #adb5ad;
}

.bottom-nav {
    display: none;
}

@media (max-width: 980px) {
    .hero-layout,
    .topic-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .topic-copy {
        max-width: 780px;
    }

    .focus-panel {
        width: min(100%, 760px);
    }

    .topic-hero {
        background-position: 62% center;
        background-size: cover;
    }
}

@media (max-width: 680px) {
    :root {
        --topbar-height: 58px;
        --bottom-nav-space: 78px;
    }

    .topbar {
        padding: 0 15px;
        border-bottom-color: rgba(255, 255, 255, 0.13);
        background: rgba(7, 9, 7, 0.94);
    }

    .brand {
        font-size: 16px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .topic-panel {
        min-height: calc(100svh - var(--topbar-height));
        height: auto;
        padding: 24px 16px calc(var(--bottom-nav-space) + 28px + env(safe-area-inset-bottom));
    }

    .topic-panel::before {
        right: -8px;
        bottom: -0.18em;
        font-size: clamp(150px, 54vw, 220px);
    }

    .topic-hero {
        background-position: 57% center;
        background-size: cover;
    }

    .topic-content {
        gap: 18px;
        min-height: calc(100svh - var(--topbar-height) - var(--bottom-nav-space) - 52px);
    }

    .hero-layout,
    .topic-layout {
        gap: 20px;
    }

    .eyebrow {
        min-height: 27px;
        margin-bottom: 14px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .topic-copy h1,
    h1 {
        margin-bottom: 16px;
        font-size: clamp(40px, 10.5vw, 50px);
        line-height: 0.91;
    }

    .topic-copy h2 {
        margin-bottom: 16px;
        font-size: clamp(39px, 11vw, 52px);
        line-height: 0.92;
    }

    .lead,
    .topic-copy p {
        font-size: 16px;
        line-height: 1.35;
    }

    .signal-row {
        gap: 6px;
        margin-top: 18px;
    }

    .signal-row span {
        min-height: 28px;
        padding: 5px 8px;
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(7, 9, 7, 0.76);
        font-size: 10px;
    }

    .hero-action {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 13px;
        width: 100%;
        margin-top: 18px;
    }

    .hero-action p {
        max-width: 82px;
        font-size: 10px;
        line-height: 1.2;
    }

    .hero-cta {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 10px 11px 10px 14px;
        box-shadow: 7px 7px 0 var(--coral);
    }

    .focus-panel {
        gap: 13px;
        padding: 17px;
        border-color: rgba(255, 255, 255, 0.17);
        background: rgba(7, 9, 7, 0.95);
        box-shadow: 9px 9px 0 rgba(7, 9, 7, 0.18);
    }

    .topic-hero .focus-panel {
        background: rgba(7, 9, 7, 0.86);
        box-shadow: 9px 9px 0 rgba(201, 255, 50, 0.90);
    }

    .focus-head span {
        display: inline-flex;
        min-height: 24px;
        margin-bottom: 11px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .focus-head strong {
        font-size: 22px;
        line-height: 1.02;
    }

    .focus-list {
        border-top-color: rgba(255, 255, 255, 0.16);
    }

    .focus-list li {
        grid-template-columns: 33px minmax(0, 1fr);
        gap: 10px;
        min-height: 48px;
        padding: 8px 0;
        border-bottom-color: rgba(255, 255, 255, 0.13);
    }

    .focus-list b {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }

    .focus-list span {
        font-size: 13px;
        line-height: 1.22;
    }

    .topic-cta {
        min-height: 48px;
        box-shadow: 6px 6px 0 var(--coral);
    }

    .topic-progress {
        display: none;
    }

    .order-screen {
        align-items: flex-start;
        overflow-y: auto;
        padding: 20px 13px calc(var(--bottom-nav-space) + 28px + env(safe-area-inset-bottom));
    }

    .order-screen::before {
        background-position: 66% center;
        opacity: 0.14;
    }

    .order-form {
        gap: 12px;
        max-height: none;
        padding: 18px;
        box-shadow: 9px 9px 0 rgba(201, 255, 50, 0.94);
    }

    .form-head h2 {
        font-size: 32px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .field > input,
    .field > select,
    .field > textarea,
    .custom-select-trigger {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .field > textarea {
        min-height: 108px;
        max-height: 170px;
    }

    .submit-button {
        min-height: 50px;
        box-shadow: 6px 6px 0 var(--coral);
    }

    .bottom-nav {
        position: fixed;
        left: 50%;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: min(390px, calc(100% - 24px));
        padding: 5px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.17);
        border-radius: 6px;
        background: rgba(7, 9, 7, 0.92);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
        transform: translateX(-50%);
        backdrop-filter: blur(20px) saturate(1.16);
    }

    .bottom-nav::before {
        top: 5px;
        bottom: 5px;
        left: 5px;
        width: calc((100% - 14px) / 2);
        border-radius: 3px;
        background: var(--accent);
        box-shadow: none;
    }

    body[data-current-view="order"] .bottom-nav::before {
        transform: translateX(calc(100% + 4px));
    }

    .bottom-nav-button {
        min-height: 46px;
        border-radius: 3px;
        color: #d7ddd6;
        font-size: 13px;
        text-transform: uppercase;
    }

    .bottom-nav-button.is-active {
        color: var(--ink);
    }
}

@media (max-width: 360px), (max-height: 620px) {
    :root {
        --topbar-height: 52px;
        --bottom-nav-space: 70px;
    }

    .topic-panel {
        padding-top: 17px;
        padding-bottom: calc(var(--bottom-nav-space) + 22px + env(safe-area-inset-bottom));
    }

    .topic-content {
        gap: 14px;
        min-height: auto;
    }

    .eyebrow {
        margin-bottom: 10px;
    }

    .topic-copy h1,
    h1 {
        font-size: clamp(35px, 10.2vw, 38px);
    }

    .topic-copy h2 {
        font-size: clamp(34px, 10.4vw, 40px);
    }

    .lead,
    .topic-copy p {
        font-size: 14px;
    }

    .signal-row span:nth-child(3) {
        display: none;
    }

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

    .hero-action p {
        display: none;
    }

    .hero-cta {
        min-height: 46px;
    }

    .focus-panel {
        gap: 9px;
        padding: 13px;
    }

    .focus-head strong {
        font-size: 19px;
    }

    .focus-list li {
        min-height: 40px;
        padding: 6px 0;
    }

    .focus-list b {
        width: 25px;
        height: 25px;
    }

    .focus-list span {
        font-size: 12px;
    }

    .order-screen {
        padding-top: 14px;
    }

    .order-form {
        gap: 10px;
        padding: 14px;
        box-shadow: 7px 7px 0 rgba(201, 255, 50, 0.94);
    }

    .form-head .eyebrow {
        display: none;
    }

    .form-head h2 {
        font-size: 27px;
    }

    .field > input,
    .field > select,
    .field > textarea,
    .custom-select-trigger {
        min-height: 43px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .field > textarea {
        min-height: 92px;
        max-height: 140px;
    }

    .submit-button {
        min-height: 46px;
    }

    .bottom-nav-button {
        min-height: 42px;
        font-size: 12px;
    }
}
