:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-soft: #16213e;
    --panel: rgba(10, 16, 34, 0.82);
    --panel-strong: rgba(14, 22, 44, 0.95);
    --border: rgba(0, 212, 255, 0.18);
    --text: #f5f7fa;
    --muted: #9bb0c9;
    --accent: #00d4ff;
    --accent-soft: rgba(0, 212, 255, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(0, 212, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: var(--text);
}

body {
    padding: 32px;
}

.page-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(14, 22, 44, 0.84), rgba(9, 14, 29, 0.92));
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.28), rgba(60, 110, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.eyebrow,
.section-label,
.meta-title,
.status-pill {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.eyebrow,
.section-label,
.meta-title {
    color: var(--accent);
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
}

h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

h3 {
    font-size: 1.2rem;
}

.header-copy,
.hero-copy,
.panel-note {
    color: var(--muted);
    line-height: 1.7;
}

.header-copy {
    max-width: 40ch;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 24px;
}

.hero-panel,
.control-panel,
.map-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel,
.control-panel {
    padding: 28px;
}

.hero-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
}

.meta-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 212, 255, 0.08);
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: var(--panel-strong);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-group input::placeholder {
    color: #6f8192;
}

.map-panel {
    grid-column: 1 / -1;
    padding: 20px;
}

.map-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 8px 8px 0;
}

.status-pill {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(0, 212, 255, 0.24);
}

.canvas-frame {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(15, 25, 51, 0.98), rgba(7, 11, 24, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.08);
}

#map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(0, 141, 214, 0.28), #05070f 72%);
}

@media (max-width: 900px) {
    body {
        padding: 18px;
    }

    .site-header,
    .content-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: start;
    }

    .meta-row {
        grid-template-columns: 1fr;
    }

    .map-panel-header {
        align-items: start;
        flex-direction: column;
    }
}
