:root {
    --ink: #0f172a;
    --ink-soft: #1c181c;
    --muted: #5b6573;
    --line: #e6e9ef;
    --paper: #ffffff;
    --mist: #f4f6f8;
    --orange: #ff5c1d;
    --orange-deep: #e8541a;
    --navy: #0f173a;
    --nav: 72px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: auto; }

body.landing {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

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

button, input, select { font: inherit; color: inherit; }

a { color: inherit; }

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 16px;
    top: -40px;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
    z-index: 20;
}

.skip:focus { top: 12px; }

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
    font-weight: 500;
    letter-spacing: -0.038em;
    line-height: 1.04;
}

h1 {
    font-size: clamp(42px, 5.4vw, 72px);
    max-width: 11ch;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    max-width: 16ch;
}

.lede {
    margin-top: 22px;
    max-width: 42ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.fine {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.fine a { color: var(--ink); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-solid {
    background: var(--orange);
    color: var(--ink-soft);
}

.btn-solid:hover { background: var(--orange-deep); transform: translateY(-1px); }

.btn-line, .btn-ghost {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--paper);
}

.btn-line:hover, .btn-ghost:hover {
    transform: translateY(-1px);
    background: var(--ink);
    color: #fff;
}

.btn-block { width: 100%; }

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--nav);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-inner, .foot-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { margin-right: auto; }

.brand img { height: 28px; width: auto; }

.nav-links, .nav-actions, .hero-actions, .foot-inner nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links { gap: 22px; }

.nav-links a, .foot-inner a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
}

.nav-links a:hover, .foot-inner a:hover { color: var(--orange-deep); }

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 0 64px;
    overflow: hidden;
}

.hero-atmosphere {
    position: absolute;
    left: 50%;
    bottom: -120px;
    width: min(1280px, 118%);
    height: 68%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 50% 62%, rgba(255, 92, 29, 0.14), transparent 58%),
        radial-gradient(ellipse at 50% 100%, rgba(15, 23, 58, 0.07), transparent 64%);
    pointer-events: none;
}

.hero-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 58%, #000 18%, transparent 72%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.hero-copy h1 {
    max-width: 12em;
    margin-inline: auto;
}

.hero-copy .lede {
    max-width: 38rem;
    margin-inline: auto;
}

.hero-copy .hero-actions {
    justify-content: center;
    margin-top: 28px;
}

.hero-stage {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin-top: 36px;
}

.hero-window {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 30px 70px rgba(15, 23, 42, 0.1),
        0 70px 120px rgba(15, 23, 42, 0.06);
}

.hero-window .app {
    min-height: clamp(300px, 34vh, 440px);
    grid-template-columns: 168px 1fr;
    background: var(--mist);
}

.hero-window .app-main { padding: 14px 14px 8px; }

.hero-window .tr { min-height: 38px; }

.hero-window .tr.is-fresh {
    background: #fff7f3;
    box-shadow: inset 3px 0 0 var(--orange);
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    letter-spacing: 0.02em;
    text-transform: none;
}

.hero-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    animation: live-pulse 2.6s ease-out infinite;
}

@keyframes live-pulse {
    70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.hero-metrics div {
    padding: 10px 12px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.hero-metrics p {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-metrics strong {
    display: block;
    margin-top: 3px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.occ { margin-bottom: 10px; }

.occ-track {
    display: flex;
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #e6e9ef;
}

.occ-a, .occ-b, .occ-c {
    display: block;
    height: 100%;
    flex: 0 0 0;
}

.occ-a { background: var(--navy); animation: grow-a 1.05s 0.4s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; }
.occ-b { background: var(--orange); animation: grow-b 1.05s 0.52s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; }
.occ-c { background: #d5dbe3; animation: grow-c 1.05s 0.6s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; }

@keyframes grow-a { to { flex-basis: 88%; } }
@keyframes grow-b { to { flex-basis: 6%; } }
@keyframes grow-c { to { flex-basis: 6%; } }

.occ-meta {
    display: flex;
    gap: 14px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.occ-meta span:first-child { color: var(--ink); }
.occ-meta span:nth-child(2) { color: #9a3412; }

.orbit {
    display: none;
    position: absolute;
    z-index: 3;
    width: 220px;
    padding: 14px 16px 15px;
    border: 1px solid rgba(230, 233, 239, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.orbit p {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.orbit strong {
    display: block;
    margin: 3px 0 2px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.orbit span {
    color: var(--muted);
    font-size: 12px;
}

.orbit-rent {
    top: 52px;
    left: -236px;
    border-top: 3px solid var(--orange);
    animation: drift-y 6.4s ease-in-out infinite;
}

.orbit-visit {
    right: -236px;
    bottom: 36px;
    animation: drift-y 7.2s ease-in-out infinite;
    animation-delay: -2.6s;
}

.orbit-visit strong { font-size: 16px; }

@keyframes drift-y {
    50% { translate: 0 -8px; }
}

.spec {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec ol, .cost-list, .day-list, .thread {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec ol {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.spec li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 22px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.spec li + li { padding-left: 22px; }

.spec span, .cost-list span, .step-index, .thread span, .day-list time {
    color: var(--orange-deep);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.cost, .product-stage, .day, .close { scroll-margin-top: 84px; }

.cost, .day, .close { padding: 112px 0; }

.section-head { margin-bottom: 48px; }

.cost-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    border-top: 1px solid var(--line);
}

.cost-list li { padding-top: 22px; }

.cost-list h3, .day-list h3, .step h3, .screen-caption h3 {
    margin: 10px 0 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.cost-list p, .day-list p, .step p, .screen-caption p {
    color: var(--muted);
    max-width: 36ch;
}

.product-stage { background: var(--paper); }

.stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 56px;
    align-items: center;
    padding: 88px 0;
}

.stage-copy { position: relative; padding-left: 28px; }

.rail {
    position: absolute;
    left: 0;
    top: 36px;
    bottom: 12px;
    width: 1px;
    background: var(--line);
}

.rail-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0.08);
    transform-origin: top center;
}

.steps { position: relative; min-height: 230px; }

.step-index { margin: 0; }

.window {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    will-change: transform;
}

.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.stage-screens { position: relative; min-height: 440px; }

.screen-caption { display: none; }

.screen { display: flex; flex-direction: column; }

.app {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 400px;
    background: var(--mist);
}

.side {
    background: var(--navy);
    padding: 16px 10px;
}

.side-label {
    margin: 2px 12px 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side span {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 2px 0;
    padding: 0 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    font-weight: 500;
}

.side .is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 3px 0 0 var(--orange);
}

.app-main { padding: 18px 18px 20px; }

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.sheet-head h3, .app-main h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sheet-head > span, .sheet-sub {
    color: var(--muted);
    font-size: 12px;
}

.sheet-sub { margin-bottom: 14px; }

.table { display: grid; gap: 0; }

.tr {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) auto minmax(7.6rem, 0.9fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    font-size: 12.5px;
}

.tr.th {
    min-height: 32px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tr span:first-child,
.tr span:nth-child(2) {
    min-width: 0;
    line-height: 1.3;
}

.tr span:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table:not(.roles) .tr span:last-child { white-space: nowrap; }

.roles .tr { grid-template-columns: 0.7fr 1.4fr; }

.chip {
    justify-self: start;
    text-align: left !important;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--mist);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.chip-alert {
    background: #fff1ea;
    color: #9a3412;
}

.chip-quiet { color: var(--muted); }

.amount {
    margin: 8px 0 4px;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin: 8px 0 0;
}

.facts div {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.facts dd {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.thread li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 2px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.thread strong { font-size: 13px; }

.thread em {
    grid-column: 2;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.day-track { position: relative; }

.day-list {
    position: relative;
    display: grid;
    gap: 0;
}

.day-list::before,
.day-progress {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
}

.day-list::before { background: var(--line); }

.day-progress {
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top center;
}

.day-list li {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 6px 18px;
    padding: 0 0 36px 28px;
}

.day-list h3 { grid-column: 2; margin: 0; }

.day-list p { grid-column: 2; }

.day-list time { grid-row: 1 / span 2; padding-top: 4px; }

.close-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px);
    gap: 40px;
    align-items: center;
}

.close-model { display: none; }

.elevation {
    display: grid;
    grid-template-columns: repeat(5, 28px);
    gap: 10px 12px;
    width: max-content;
    padding: 28px 26px 24px;
    background: #e7e2d8;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.pane {
    height: 34px;
    background: #1a2238;
}

.pane.is-lit {
    background: var(--orange);
    box-shadow: 0 0 0 1px rgba(255, 92, 29, 0.35);
}

.foot {
    border-top: 1px solid var(--line);
    height: 72px;
}

.foot-inner { justify-content: space-between; }

.foot p { color: var(--muted); font-size: 13px; }

.foot nav { gap: 22px; }

.demo {
    width: min(560px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease, overlay 0.28s allow-discrete, display 0.28s allow-discrete;
}

.demo[open] {
    opacity: 1;
    transform: none;
}

@starting-style {
    .demo[open] {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

.demo::backdrop {
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    transition: opacity 0.28s ease, overlay 0.28s allow-discrete, display 0.28s allow-discrete;
}

.demo[open]::backdrop { opacity: 1; }

@starting-style {
    .demo[open]::backdrop { opacity: 0; }
}

.demo-form { padding: 28px; }

.demo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.demo-head h2 {
    font-size: 28px;
    max-width: none;
}

.demo-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.demo-note {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

.fields label, .check {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.span-2 { grid-column: 1 / -1; }

.fields input, .fields select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 400;
}

.fields input:focus, .fields select:focus {
    outline: 2px solid rgba(255, 92, 29, 0.35);
    border-color: var(--orange);
}

.check {
    grid-template-columns: auto 1fr;
    align-items: center;
    margin: 14px 0;
    font-weight: 500;
    color: var(--ink);
}

.form-error, .form-success { margin: 0 0 12px; font-size: 14px; }

.form-error { color: #9a3412; }

.form-success { color: #166534; }

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (min-width: 960px) {
    .product-stage .stage {
        min-height: calc(100vh - var(--nav));
        max-height: calc(100vh - var(--nav));
        padding-top: 24px;
        padding-bottom: 24px;
        overflow: hidden;
    }

    .stage-screens {
        height: min(400px, calc(100vh - var(--nav) - 150px));
        min-height: 0;
    }

    .product-stage .app { height: 100%; min-height: 0; }

    .product-stage .app-main {
        min-height: 0;
        overflow: auto;
    }

    .steps .step + .step,
    .stage-screens .screen + .screen { opacity: 0; }

    .step, .screen {
        position: absolute;
        inset: 0;
    }
}

@media (max-width: 959px) {
    .stage, .close-grid, .cost-list, .spec ol {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        justify-content: flex-start;
        padding: 48px 0 32px;
    }

    .hero-copy { margin-top: 0; }

    .hero-stage { width: min(640px, calc(100% - 32px)); margin-top: 32px; }

    .orbit { display: none; }

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

    .hero-metrics strong { font-size: 18px; }

    h1 { max-width: 14ch; }

    .spec li + li { padding-left: 0; }

    .spec ol { gap: 0; }

    .nav-links, .btn-ghost, .rail, .steps { display: none; }

    .screen-caption { display: block; margin-bottom: 14px; }

    .screen + .screen { margin-top: 56px; }

    .stage { min-height: 0; padding: 72px 0; }

    .stage-screens { min-height: 0; }

    .app { grid-template-columns: 1fr; }

    .side { display: none; }

    .cost, .day, .close { padding: 72px 0; }

    .day-list li { grid-template-columns: 72px 1fr; padding-left: 22px; }

    .fields { grid-template-columns: 1fr; }

    .foot { height: auto; }

    .foot-inner {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 0;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .table:not(.roles) .tr { grid-template-columns: minmax(0, 1.45fr) auto minmax(7.4rem, 0.85fr); }

    .table:not(.roles) .tr span:nth-child(2) { display: none; }

    .hero-metrics { gap: 6px; }

    .hero-metrics div { padding: 8px; }

    .occ-meta { gap: 8px; }
}

@media (min-width: 1320px) {
    .orbit { display: block; }

    .hero-stage { width: min(1080px, calc(100% - 520px)); }
}

@media (prefers-reduced-motion: reduce) {
    .rail-fill, .day-progress { transform: none; }

    .orbit-rent, .orbit-visit, .hero-live i,
    .occ-a, .occ-b, .occ-c { animation: none; }

    .occ-a { flex-basis: 88%; }
    .occ-b, .occ-c { flex-basis: 6%; }

    .btn, .nav, .nav-links a, .foot-inner a, .demo, .demo::backdrop {
        transition: none;
    }

    .btn-solid:hover, .btn-line:hover, .btn-ghost:hover { transform: none; }
}
