/* Trading Tower public site - operations-command layout - industrial blue/amber system */
@import url("../tokens.css");

:root {
    --tt-paper: oklch(97% 0.01 230);
    --tt-paper-cool: oklch(93% 0.022 230);
    --tt-surface: oklch(99% 0.004 230);
    --tt-surface-strong: oklch(18% 0.048 247);
    --tt-ink: oklch(17% 0.04 248);
    --tt-ink-soft: oklch(37% 0.045 245);
    --tt-muted: oklch(55% 0.035 242);
    --tt-rule: oklch(85% 0.026 235);
    --tt-blue: oklch(45% 0.17 253);
    --tt-cyan: oklch(69% 0.13 210);
    --tt-amber: oklch(72% 0.17 70);
    --tt-green: oklch(57% 0.15 152);
    --tt-danger: oklch(57% 0.18 26);
    --tt-on-dark: oklch(98% 0.006 230);
    --tt-shadow: 0 22px 55px color-mix(in oklch, var(--tt-ink) 11%, transparent);
    --tt-shadow-soft: 0 12px 34px color-mix(in oklch, var(--tt-ink) 7%, transparent);
}

html,
body {
    margin: 0;
    min-width: 0;
    overflow-x: clip;
    background:
        linear-gradient(180deg, var(--tt-paper) 0%, var(--tt-paper-cool) 100%);
    color: var(--tt-ink);
    font-family: var(--font-body);
    font-size: 16px;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    width: min(1200px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-lg);
    border-bottom: 1px solid color-mix(in oklch, var(--tt-rule) 72%, transparent);
    background: color-mix(in oklch, var(--tt-paper) 86%, transparent);
    backdrop-filter: blur(16px);
}

.brand-mark,
.nav-action,
.button,
.site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    transition:
        transform var(--dur-fast) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.brand-mark {
    gap: var(--space-sm);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--tt-surface-strong);
    color: var(--tt-on-dark);
    font-family: var(--font-label);
    font-size: var(--text-xs);
    box-shadow: inset 0 -3px 0 color-mix(in oklch, var(--tt-cyan) 60%, transparent);
}

.nav-links {
    justify-self: center;
    display: flex;
    gap: var(--space-lg);
    color: var(--tt-ink-soft);
    font-size: var(--text-sm);
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-action,
.button {
    min-width: 124px;
    border-radius: var(--radius-sm);
    padding: 0 var(--space-lg);
    font-weight: 800;
    font-size: var(--text-sm);
    line-height: 1;
}

.nav-action,
.button-secondary {
    border: 1px solid var(--tt-rule);
    background: var(--tt-surface);
    color: var(--tt-ink);
}

.button-primary {
    border: 1px solid var(--tt-blue);
    background: var(--tt-blue);
    color: var(--tt-on-dark);
    box-shadow: 0 10px 24px color-mix(in oklch, var(--tt-blue) 22%, transparent);
}

.brand-mark:hover,
.nav-links a:hover,
.nav-action:hover,
.button:hover,
.site-footer a:hover {
    transform: translateY(-1px);
}

.button-primary:hover {
    background: color-mix(in oklch, var(--tt-blue) 90%, var(--tt-ink));
}

.nav-action:focus-visible,
.button:focus-visible,
.nav-links a:focus-visible,
.brand-mark:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid var(--tt-amber);
    outline-offset: 3px;
}

.button:active,
.nav-action:active {
    transform: scale(0.98);
}

.hero-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: var(--space-3xl) 0 var(--space-2xl);
    display: grid;
    grid-template-columns: minmax(430px, 0.9fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: center;
}

.hero-copy {
    max-width: 700px;
    min-width: 0;
}

.microcopy,
.section-kicker,
.card-index {
    color: var(--tt-blue);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}

.microcopy {
    margin: 0 0 var(--space-md);
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 4.7vw, 4.9rem);
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-lede {
    max-width: 680px;
    margin: var(--space-lg) 0 0;
    color: var(--tt-ink-soft);
    font-size: clamp(1.02rem, 1.2vw, 1.16rem);
    line-height: 1.8;
    text-wrap: pretty;
}

.hero-actions {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.operations-board {
    position: relative;
    min-width: 0;
    padding: var(--space-lg);
    border: 1px solid color-mix(in oklch, var(--tt-rule) 88%, transparent);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in oklch, var(--tt-surface) 96%, var(--tt-cyan)) 0%, var(--tt-surface) 54%),
        var(--tt-surface);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
}

.operations-board::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, var(--tt-blue), var(--tt-cyan), var(--tt-amber));
}

.board-header,
.board-metrics,
.shipment-lane,
.board-table div {
    position: relative;
    z-index: 1;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--tt-rule);
}

.board-header span,
.board-header strong {
    font-weight: 800;
}

.board-header span {
    color: var(--tt-muted);
    font-size: var(--text-sm);
}

.board-metrics {
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
}

.board-metrics div {
    min-height: 110px;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-md);
    background: color-mix(in oklch, var(--tt-paper) 54%, var(--tt-surface));
}

.board-metrics span,
.board-table span {
    color: var(--tt-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.board-metrics strong {
    color: var(--tt-ink);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1;
}

.shipment-lane {
    margin-top: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-xs);
    border-radius: var(--radius-md);
    background: var(--tt-surface-strong);
    color: var(--tt-on-dark);
}

.lane-step {
    min-height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in oklch, var(--tt-on-dark) 18%, transparent);
    border-radius: var(--radius-sm);
    color: color-mix(in oklch, var(--tt-on-dark) 62%, transparent);
    font-weight: 800;
    font-size: var(--text-sm);
}

.lane-step.is-done {
    background: color-mix(in oklch, var(--tt-green) 22%, transparent);
    color: var(--tt-on-dark);
}

.lane-step.is-active {
    background: var(--tt-amber);
    color: var(--tt-ink);
}

.board-table {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
}

.board-table div {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-md);
    align-items: center;
    padding: 0 var(--space-md);
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-sm);
    background: var(--tt-surface);
}

.board-table strong {
    font-size: var(--text-sm);
}

.trust-band {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-xs);
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-md);
    background: color-mix(in oklch, var(--tt-surface) 84%, transparent);
    color: var(--tt-ink-soft);
    font-weight: 800;
    font-size: var(--text-sm);
    text-align: center;
}

.problems-section,
.features-section,
.image-story-section,
.workflow-section,
.reports-section,
.benefits-section,
.cta-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: var(--space-4xl) 0;
}

.section-heading {
    max-width: 1080px;
    margin-bottom: var(--space-2xl);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-2xl);
    align-items: end;
}

.section-heading.compact {
    max-width: 920px;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
}

.section-heading h2,
.story-copy h2,
.operations-copy h2,
.reports-copy h2,
.cta-section h2 {
    margin: 0;
    color: var(--tt-ink);
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.15;
    letter-spacing: 0;
    text-wrap: balance;
}

.section-heading p,
.story-copy p,
.operations-copy p,
.reports-copy p,
.cta-section p {
    margin: 0;
    color: var(--tt-ink-soft);
    font-size: var(--text-lg);
    line-height: 1.78;
    text-wrap: pretty;
}

.problem-grid,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.problem-grid article,
.benefit-grid article,
.capability-card {
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-md);
    background: var(--tt-surface);
    box-shadow: var(--tt-shadow-soft);
}

.problem-grid article,
.benefit-grid article {
    min-height: 230px;
    padding: var(--space-lg);
}

.problem-grid span {
    display: inline-flex;
    min-width: 40px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-sm);
    background: color-mix(in oklch, var(--tt-amber) 28%, transparent);
    color: var(--tt-ink);
    font-family: var(--font-label);
    font-size: var(--text-xs);
    font-weight: 800;
}

.problem-grid h3,
.benefit-grid h3,
.capability-card h3 {
    margin: 0 0 var(--space-md);
    color: var(--tt-ink);
    font-size: var(--text-xl);
    line-height: 1.3;
    letter-spacing: 0;
}

.problem-grid p,
.benefit-grid p,
.capability-card p {
    margin: 0;
    color: var(--tt-ink-soft);
    line-height: 1.72;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-md);
}

.capability-card {
    grid-column: span 2;
    min-height: 250px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-large {
    grid-column: span 3;
    background: var(--tt-surface-strong);
    color: var(--tt-on-dark);
}

.card-large h3 {
    color: var(--tt-on-dark);
}

.card-large p,
.card-large .card-index {
    color: color-mix(in oklch, var(--tt-on-dark) 74%, transparent);
}

.image-story-section,
.workflow-section,
.reports-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: center;
    border-top: 1px solid var(--tt-rule);
}

.story-image,
.reports-image {
    margin: 0;
}

.story-image img,
.reports-image img {
    width: 100%;
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-lg);
    background: var(--tt-surface);
    box-shadow: var(--tt-shadow-soft);
}

.story-copy,
.operations-copy,
.reports-copy {
    display: grid;
    gap: var(--space-lg);
}

.workflow-list {
    display: grid;
    gap: var(--space-sm);
}

.workflow-list div {
    min-height: 84px;
    padding: var(--space-md) var(--space-lg);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: center;
    border: 1px solid var(--tt-rule);
    border-radius: var(--radius-md);
    background: var(--tt-surface);
}

.workflow-list span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--tt-surface-strong);
    color: var(--tt-on-dark);
    font-family: var(--font-label);
    font-size: var(--text-xs);
}

.workflow-list strong {
    color: var(--tt-ink);
    font-size: var(--text-lg);
    line-height: 1.45;
}

.benefit-list {
    margin: var(--space-sm) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding-inline-start: var(--space-xl);
    color: var(--tt-ink-soft);
    line-height: 1.7;
}

.benefit-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.68em;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--tt-green);
}

.benefits-section {
    border-top: 1px solid var(--tt-rule);
}

.cta-section {
    margin-bottom: var(--space-3xl);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-xl);
    align-items: center;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, var(--tt-surface-strong), color-mix(in oklch, var(--tt-blue) 36%, var(--tt-surface-strong)));
    color: var(--tt-on-dark);
    box-shadow: var(--tt-shadow);
}

.cta-section h2 {
    color: var(--tt-on-dark);
}

.cta-section .section-kicker,
.cta-section p {
    color: color-mix(in oklch, var(--tt-on-dark) 76%, transparent);
}

.cta-section p {
    margin-top: var(--space-md);
}

.cta-section .button-primary {
    border-color: var(--tt-amber);
    background: var(--tt-amber);
    color: var(--tt-ink);
    box-shadow: none;
}

.site-footer {
    width: min(1200px, calc(100% - 32px));
    min-height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    border-top: 1px solid var(--tt-rule);
    color: var(--tt-ink-soft);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--tt-ink);
}

.site-footer span {
    margin-top: var(--space-xs);
}

.site-footer a {
    color: var(--tt-blue);
    font-weight: 800;
}

@media (max-width: 980px) {
    .site-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .hero-shell,
    .section-heading,
    .image-story-section,
    .workflow-section,
    .reports-section,
    .cta-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-shell {
        padding-top: var(--space-2xl);
    }

    .trust-band,
    .problem-grid,
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .capability-card,
    .card-large {
        grid-column: span 3;
    }
}

@media (max-width: 620px) {
    .site-nav,
    .hero-shell,
    .trust-band,
    .problems-section,
    .features-section,
    .image-story-section,
    .workflow-section,
    .reports-section,
    .benefits-section,
    .cta-section,
    .site-footer {
        width: min(100% - 24px, 1200px);
    }

    .site-nav {
        min-height: 66px;
        gap: var(--space-sm);
    }

    .brand-mark span:last-child {
        display: none;
    }

    .nav-action,
    .button {
        min-width: 0;
        padding: 0 var(--space-md);
        font-size: var(--text-xs);
    }

    .hero-shell {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
        gap: var(--space-xl);
    }

    .hero-copy h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 1.14;
    }

    .hero-actions,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .cta-section .button {
        width: 100%;
    }

    .board-metrics,
    .shipment-lane,
    .trust-band,
    .problem-grid,
    .benefit-grid,
    .capability-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .capability-card,
    .card-large {
        grid-column: auto;
    }

    .shipment-lane {
        padding: var(--space-md);
    }

    .board-table div,
    .workflow-list div {
        grid-template-columns: minmax(0, 1fr);
        padding: var(--space-md);
    }

    .cta-section {
        padding: var(--space-xl);
    }
}

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