/* Shared landing styles for Districts pages */
:root {
    --bg: #0e1214;
    --panel: rgba(20, 28, 31, 0.82);
    --panel-strong: #162025;
    --line: rgba(228, 198, 153, 0.18);
    --text: #edf0e8;
    --muted: #9aa29a;
    --gold: #e4c699;
    --rust: #b55a3c;
    --signal: #88a899;
    --danger: #d05d48;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(181, 90, 60, 0.22), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(136, 168, 153, 0.16), transparent 26%),
        linear-gradient(180deg, #12181b 0%, #0b1012 100%);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

body.dashboard-page {
    background-attachment: fixed;
}

.world-clock-hud {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 150;
    display: grid;
    gap: 3px;
    min-width: 210px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(9, 14, 16, 0.9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
}

.world-clock-kicker {
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--muted);
}

.world-clock-hud strong {
    color: var(--gold);
    font-size: 0.96rem;
    line-height: 1.2;
}

.world-clock-hud span {
    color: var(--muted);
    font-size: 0.8rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    background: rgba(9, 13, 15, 0.62);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.brand-block {
    display: grid;
    gap: 4px;
}

.eyebrow,
.status-label,
.section-kicker {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--muted);
}

.brand-name {
    font-family: "Georgia", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--gold);
}

.topbar-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.meta-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.86rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-panel,
.status-panel,
.section-panel,
.district-card,
.timeline-card,
.feature-card,
.closing-panel,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 42px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(181, 90, 60, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        var(--panel);
}

.hero-panel::after {
    content: "2037";
    position: absolute;
    right: 26px;
    top: 20px;
    font-family: "Georgia", serif;
    font-size: clamp(4rem, 8vw, 7rem);
    color: rgba(228, 198, 153, 0.09);
    letter-spacing: 0.08em;
    pointer-events: none;
}

.hero-title {
    max-width: 10ch;
    font-family: "Georgia", serif;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: 0.92;
    margin: 14px 0 16px;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gold);
    margin-bottom: 18px;
}

.hero-copy {
    max-width: 58ch;
    font-size: 1.02rem;
    color: #d6dbd2;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-actions.is-closing {
    margin-top: 24px;
    margin-bottom: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--gold);
    color: #111516;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hero-point {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-point strong {
    display: block;
    color: var(--gold);
    margin-bottom: 6px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-point span {
    color: var(--muted);
    font-size: 0.92rem;
}

.status-panel,
.cta-panel {
    padding: 26px;
    display: grid;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(136, 168, 153, 0.14), transparent 30%),
        var(--panel-strong);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.status-grid {
    display: grid;
    gap: 12px;
}

.status-card,
.cta-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-card strong,
.cta-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--gold);
    margin: 8px 0 4px;
}

.status-card p,
.status-card li,
.section-intro,
.district-card p,
.timeline-card p,
.feature-card p,
.closing-panel p,
.cta-card p,
footer p {
    color: var(--muted);
}

.signal-list,
.link-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.signal-list li,
.link-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.signal-list li:last-child,
.link-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.signal-state {
    color: var(--gold);
}

.council-signup {
    max-width: 720px;
    margin: 2rem auto;
}

.council-note {
    margin-top: 0.9rem;
    font-size: 0.92rem;
}

.section {
    margin-top: 28px;
}

.section-panel {
    padding: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head h2 {
    font-family: "Georgia", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.section-intro {
    max-width: 60ch;
}

.pillars,
.feature-grid,
.district-grid,
.timeline-grid,
.cta-grid,
.media-grid {
    display: grid;
    gap: 16px;
}

.pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid,
.media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.district-grid,
.timeline-grid,
.cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.visual-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.visual-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-card figcaption {
    padding: 12px 14px 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.feature-card,
.district-card,
.timeline-card {
    padding: 22px;
    min-height: 100%;
}

.city-wire-item {
    display: grid;
    gap: 10px;
}

.city-wire-meta,
.city-wire-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.city-wire-foot span {
    color: var(--muted);
    font-size: 0.84rem;
}

.city-wire-status {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.city-wire-status.is-active {
    border-color: rgba(136, 168, 153, 0.45);
    color: var(--signal);
}

.city-wire-status.is-scheduled {
    border-color: rgba(228, 198, 153, 0.35);
    color: var(--gold);
}

.city-wire-status.is-closed {
    border-color: rgba(176, 182, 184, 0.35);
    color: #b0b6b8;
}

.city-wire-status.is-cooling {
    border-color: rgba(181, 90, 60, 0.45);
    color: #d49179;
}

.feature-card h3,
.district-card h3,
.timeline-card h3,
.cta-panel h2 {
    font-family: "Georgia", serif;
    font-size: 1.4rem;
    margin: 10px 0 12px;
}

.district-card {
    position: relative;
    overflow: hidden;
}

.district-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rust), var(--gold));
    opacity: 0.8;
}

.district-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(181, 90, 60, 0.14);
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-card {
    display: grid;
    gap: 14px;
}

.timeline-step {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-step:first-child {
    padding-top: 0;
    border-top: 0;
}

.timeline-step strong {
    display: block;
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closing-panel {
    padding: 34px;
    background:
        radial-gradient(circle at right top, rgba(228, 198, 153, 0.12), transparent 36%),
        var(--panel-strong);
}

.closing-panel h2 {
    font-family: "Georgia", serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    max-width: 11ch;
    margin: 10px 0 16px;
    line-height: 0.95;
}

.closing-quote {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 14px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 0 4px;
}

.footer-mark {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .hero,
    .pillars,
    .feature-grid,
    .district-grid,
    .timeline-grid,
    .cta-grid,
    .media-grid,
    .visual-grid {
        grid-template-columns: 1fr;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .section-head,
    .topbar,
    .status-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
        padding-bottom: 48px;
    }

    .hero-panel,
    .status-panel,
    .section-panel,
    .closing-panel,
    .cta-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-title {
        max-width: none;
    }

    .world-clock-hud {
        top: auto;
        right: 12px;
        bottom: 12px;
        min-width: 192px;
        padding: 10px 12px;
    }
}
