html {
    scroll-padding-top: 96px;
}

body {
    min-height: 100vh;
}

.plume-hero {
    min-height: 100vh;
    padding-bottom: 120px;
}

.plume-hero .hero-bg-img {
    filter: saturate(0.75) brightness(0.52);
    transform: scale(1.03);
}

.plume-hero-overlay {
    background:
        linear-gradient(110deg, rgba(4, 13, 22, 0.96) 0%, rgba(7, 24, 39, 0.92) 48%, rgba(7, 24, 39, 0.58) 100%),
        radial-gradient(circle at top right, rgba(244, 180, 26, 0.1), transparent 30%);
}

.metric-card {
    padding: 1.2rem 1.1rem;
}

.metric-label {
    display: block;
    color: var(--gesa-muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    color: var(--gesa-text);
    margin-top: 0.4rem;
    font-size: 1rem;
}

.plume-side-card {
    padding: 2.5rem 2rem;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--gesa-muted);
    line-height: 1.55;
}

.feature-bullets li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--gesa-yellow);
    box-shadow: 0 0 0 6px rgba(244, 180, 26, 0.12);
}

.workflow-card {
    padding: 2rem;
}

.workflow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(244, 180, 26, 0.14);
    color: var(--gesa-yellow);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.simulator-note {
    padding: 1.1rem 1.25rem;
}

.shell {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 24px;
}

.panel {
    background: rgba(7, 24, 39, 0.72);
    border: 1px solid var(--gesa-border);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.controls {
    padding: 24px;
    position: sticky;
    top: 110px;
    align-self: start;
}

.workspace-title {
    font-size: 1.8rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gesa-yellow);
    background: rgba(244, 180, 26, 0.12);
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
}

.intro {
    color: var(--gesa-muted);
    line-height: 1.6;
}

.controls form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.controls form section {
    display: grid;
    gap: 12px;
}

.form-section-title {
    color: var(--gesa-text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.controls label {
    display: grid;
    gap: 6px;
    color: var(--gesa-muted);
    font-size: 0.92rem;
}

.field-hint {
    color: rgba(214, 231, 248, 0.78);
    font-size: 0.84rem;
    line-height: 1.5;
}

.controls input,
.controls select,
.controls button {
    font: inherit;
}

.controls input,
.controls select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gesa-text);
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.controls input::placeholder {
    color: rgba(167, 180, 200, 0.7);
}

.controls input:focus,
.controls select:focus {
    outline: none;
    border-color: rgba(244, 180, 26, 0.6);
    box-shadow: 0 0 0 4px rgba(244, 180, 26, 0.08);
    background: rgba(255, 255, 255, 0.07);
}

.controls option {
    color: #071827;
}

.grid {
    display: grid;
    gap: 12px;
}

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

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.controls button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.controls button:hover {
    transform: translateY(-1px);
}

.controls button[type="submit"] {
    background: linear-gradient(135deg, rgba(244, 180, 26, 0.95), rgba(244, 180, 26, 0.72));
    color: #04111c;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(244, 180, 26, 0.22);
}

.controls button[type="button"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gesa-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace {
    display: grid;
    gap: 18px;
}

.summary-bar {
    display: grid;
    gap: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gesa-muted);
}

.status-pill.busy {
    color: #ffd67a;
    background: rgba(244, 180, 26, 0.14);
}

.status-pill.ready {
    color: #97f4cb;
    background: rgba(10, 120, 83, 0.24);
}

.status-pill.demo {
    color: #ffd67a;
    background: rgba(244, 180, 26, 0.16);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.summary-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card span {
    color: var(--gesa-muted);
    font-size: 0.85rem;
}

.summary-card strong {
    display: block;
    color: var(--gesa-text);
    font-size: 1.15rem;
    margin-top: 0.45rem;
}

.export-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.export-links a {
    text-decoration: none;
    color: var(--gesa-yellow);
    background: rgba(244, 180, 26, 0.1);
    border: 1px solid rgba(244, 180, 26, 0.18);
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.export-links a:hover {
    background: rgba(244, 180, 26, 0.16);
    border-color: rgba(244, 180, 26, 0.34);
}

.visuals {
    display: grid;
    gap: 18px;
}

.visuals.split {
    grid-template-columns: 1.1fr 0.9fr;
}

.panel-header {
    padding: 18px 20px 0;
}

.panel-header p {
    color: var(--gesa-muted);
    margin-bottom: 0;
    max-width: 44rem;
}

.canvas-shell {
    position: relative;
    padding: 18px 20px 8px;
}

.canvas-shell canvas,
#centerline-canvas {
    width: 100%;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(18, 32, 51, 0.08);
}

#centerline-canvas {
    width: calc(100% - 40px);
    margin: 18px 20px 20px;
}

.gmaps-overlay-canvas {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gesa-muted);
    font-size: 0.84rem;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

.canvas-tooltip {
    position: absolute;
    pointer-events: none;
    min-width: 220px;
    max-width: min(280px, calc(100% - 16px));
    background: linear-gradient(180deg, rgba(7, 18, 31, 0.97), rgba(12, 28, 45, 0.96));
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 5;
    opacity: 1;
    white-space: normal;
}

.canvas-tooltip__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.canvas-tooltip__swatch {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 4px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.canvas-tooltip__header strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.canvas-tooltip__sub {
    color: rgba(214, 231, 248, 0.84);
    font-size: 0.74rem;
    margin-top: 2px;
}

.canvas-tooltip__grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 12px;
}

.canvas-tooltip__grid span {
    color: rgba(214, 231, 248, 0.8);
}

.canvas-tooltip__grid strong {
    text-align: right;
    font-weight: 600;
}

.canvas-tooltip.hidden {
    display: none;
}

.map {
    min-height: 420px;
    margin: 18px 20px 20px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(20, 48, 89, 0.3), rgba(255, 255, 255, 0.92)),
        repeating-linear-gradient(
            45deg,
            rgba(7, 24, 39, 0.04),
            rgba(7, 24, 39, 0.04) 12px,
            transparent 12px,
            transparent 24px
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 24px;
    text-align: center;
    color: var(--gesa-muted);
}

.cta-band {
    padding: 2.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .shell,
    .visuals.split {
        grid-template-columns: 1fr;
    }

    .controls {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .plume-hero {
        min-height: auto;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .metric-card,
    .workflow-card,
    .cta-band {
        padding: 1.6rem;
    }

    .grid.two,
    .grid.three,
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .controls button {
        width: 100%;
    }

    .panel-header,
    .canvas-shell,
    .legend,
    #centerline-canvas,
    .map {
        margin-left: 16px;
        margin-right: 16px;
    }

    #centerline-canvas {
        width: calc(100% - 32px);
    }
}
