:root {
    --bg: #0f172a;
    --bg-soft: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #dbe3ef;
    --primary: #2563eb;
    --accent: #14b8a6;
    --sidebar: #111827;
    --sidebar-text: #dbeafe;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav-shell, .main-nav, .hero-actions, .inline-meta, .quick-links, .footer-grid, .two-col {
    display: flex;
    gap: 1rem;
}
.nav-shell { justify-content: space-between; align-items: center; min-height: 72px; }
.main-nav { align-items: center; flex-wrap: wrap; }
.brand {
    font-size: 24px;
    font-weight: 800;
    color: #87CEEB; /* Sky Blue */
    text-decoration: none;
    letter-spacing: -0.5px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.button.secondary {
    background: #eff6ff;
    color: var(--primary);
    box-shadow: none;
}
.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 30%), linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.hero-short { padding-top: 4rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
.hero-grid.single-column { grid-template-columns: 1fr; }
.badge, .eyebrow {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; margin: 0 0 1rem; }
.hero-copy { font-size: 1.15rem; color: var(--muted); max-width: 52rem; }
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 2rem; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.feature-card, .standout-card, .legal-card, .panel-card, .stat-card, .connector-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.standout-card { background: linear-gradient(160deg, #0f172a, #1d4ed8); color: #fff; }
.stat-stack > div + div { margin-top: 1rem; }
.two-col { align-items: flex-start; justify-content: space-between; }
.two-col > * { flex: 1; }
.site-footer {
    padding: 3rem 0;
    background: #0f172a;
    color: #e2e8f0;
}
.footer-grid { justify-content: space-between; flex-wrap: wrap; }
.footer-grid a { display: block; margin-top: 0.5rem; color: #cbd5e1; }
.control-body { background: #f1f5f9; }
.control-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
}
.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-text);
    padding: 1.5rem;
}
.sidebar-brand a { font-size: 1.2rem; font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.sidebar-nav a, .sidebar-nav summary {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    cursor: pointer;
}
.sidebar-nav a:hover, .sidebar-nav summary:hover { background: rgba(255, 255, 255, 0.07); }
.sidebar-nav details a { margin-left: 0.75rem; font-size: 0.95rem; color: #c7d2fe; }
.control-main { padding: 2rem; }
.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stats-grid, .panel-grid {
    display: grid;
    gap: 1.25rem;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.25rem; }
.panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-card.wide { grid-column: span 2; }
.stat-card span { display: block; color: var(--muted); font-size: 0.95rem; }
.stat-card strong { font-size: 2rem; }
.quick-links, .inline-meta { flex-wrap: wrap; }
.quick-links a, .inline-meta span {
    background: #eff6ff;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    color: var(--primary);
}
.admin-form p { margin: 0 0 1rem; }
.admin-form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font: inherit;
}
.formset-stack { display: grid; gap: 1rem; }
.flash-stack { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.flash-message {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
}
.plain-list { margin: 0; padding-left: 1rem; }
.legal-points {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}
pre {
    padding: 1rem;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
}
.home-gallery-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    display: block;
    background: #f8fafc;
}
@supports not (aspect-ratio: 1 / 1) {
    .home-gallery-image {
        height: 220px;
    }
}
@media (max-width: 980px) {
    .hero-grid, .grid-3, .control-layout, .stats-grid, .panel-grid {
        grid-template-columns: 1fr;
    }
    .nav-shell, .control-header, .main-nav, .hero-actions, .footer-grid, .two-col {
        flex-direction: column;
        align-items: flex-start;
    }
    .panel-card.wide { grid-column: auto; }
}
