/* Momentum Atlas theme */
:root {
    --brand-ink: #0f172a;
    --brand-muted: #475569;
    --brand-surface: #fffaf4;
    --brand-surface-strong: #ffffff;
    --brand-border: rgba(15, 23, 42, 0.08);
    --brand-primary: #0f766e;
    --brand-primary-dark: #115e59;
    --brand-secondary: #f59e0b;
    --brand-accent: #f97316;
    --brand-highlight: #14b8a6;
    --brand-glow: rgba(249, 115, 22, 0.18);
    --brand-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --section-gap: clamp(4rem, 8vw, 7rem);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #fff7ed 46%, #f8fafc 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.brand-mark {
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

p {
    color: var(--brand-muted);
    line-height: 1.7;
}

.site-shell,
.subpage-shell {
    position: relative;
    overflow: hidden;
}

.site-header {
    position: relative;
}

.main-nav {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-mark {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-mark:hover,
.brand-mark:focus,
.nav-link:hover,
.nav-link:focus {
    color: #fff7ed;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.nav-pill {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.55rem 1rem !important;
}

.hero-section {
    position: relative;
    padding: 1rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 48%, #f97316 100%);
    color: #ffffff;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.75;
}

.hero-orb-one {
    width: 260px;
    height: 260px;
    top: 7rem;
    right: 8%;
    background: rgba(20, 184, 166, 0.32);
}

.hero-orb-two {
    width: 190px;
    height: 190px;
    bottom: 3rem;
    left: 6%;
    background: rgba(245, 158, 11, 0.28);
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    margin: 0 0 1.5rem;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    max-width: 40rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-accent);
}

.hero-section .eyebrow,
.hero-section .hero-meta-label {
    color: rgba(255, 247, 237, 0.78);
}

.hero-actions,
.hero-meta {
    position: relative;
    z-index: 2;
}

.hero-meta strong {
    display: block;
    font-size: 1rem;
}

.hero-meta-label,
.panel-label,
.form-hint {
    font-size: 0.82rem;
    color: #64748b;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius-xl);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.insight-panel {
    padding: 2rem;
}

.metric-card {
    height: 100%;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.76));
    border: 1px solid var(--brand-border);
}

.metric-card span {
    display: block;
    font-size: 0.88rem;
    color: var(--brand-muted);
}

.metric-card strong {
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: var(--brand-ink);
}

.spotlight-note {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.spotlight-note p {
    margin: 0.45rem 0 0.8rem;
}

.chip-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trend-chip,
.filter-chip,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.trend-chip,
.category-badge {
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-primary-dark);
}

.filter-chip {
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-ink);
    border: 1px solid var(--brand-border);
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: transparent;
}

.section-block {
    padding: var(--section-gap) 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.42);
}

.section-heading h2,
.subpage-header h1,
.detail-panel h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.8rem;
}

.section-heading.compact h2 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.form-panel,
.chart-panel,
.detail-panel,
.sidebar-panel,
.subpage-header,
.empty-state {
    padding: 2rem;
}

.form-panel .form-control,
.form-panel .form-select {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.9rem 1rem;
    min-height: 3.3rem;
    background: rgba(255, 255, 255, 0.92);
}

.form-panel textarea.form-control {
    min-height: 8.5rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus,
.related-item:focus,
.entry-card a:focus {
    box-shadow: 0 0 0 0.28rem rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.6);
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.btn {
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    border: none;
}

.btn-accent {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
    color: #ffffff;
    box-shadow: 0 18px 40px var(--brand-glow);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.18);
    color: var(--brand-ink);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-section .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.stack-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.6rem;
}

.trend-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.trend-day {
    text-align: center;
}

.trend-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.45rem;
    height: 220px;
    margin-bottom: 1rem;
}

.trend-bar {
    width: 22px;
    border-radius: 999px 999px 12px 12px;
    min-height: 14px;
    box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.18);
}

.trend-bar.focus {
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-highlight));
}

.trend-bar.energy {
    background: linear-gradient(180deg, var(--brand-secondary), var(--brand-accent));
}

.trend-bar.level-0 { height: 14px; }
.trend-bar.level-10 { height: 10%; }
.trend-bar.level-20 { height: 20%; }
.trend-bar.level-30 { height: 30%; }
.trend-bar.level-40 { height: 40%; }
.trend-bar.level-50 { height: 50%; }
.trend-bar.level-60 { height: 60%; }
.trend-bar.level-70 { height: 70%; }
.trend-bar.level-80 { height: 80%; }
.trend-bar.level-90 { height: 90%; }
.trend-bar.level-100 { height: 100%; }

.trend-values,
.entry-date,
.related-item span {
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.entry-card {
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover,
.related-item:hover {
    transform: translateY(-4px);
}

.entry-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.entry-card h3,
.entry-card h2 {
    margin: 1rem 0 0.75rem;
    font-size: 1.35rem;
}

.entry-card a,
.text-link,
.related-item {
    color: var(--brand-ink);
    text-decoration: none;
}

.text-link {
    font-weight: 700;
}

.entry-stats,
.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.entry-stats span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.88rem;
}

.detail-panel .detail-lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.detail-metric {
    min-width: 140px;
    flex: 1 1 0;
}

.reflection-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.related-list {
    display: grid;
    gap: 0.85rem;
}

.related-item {
    display: block;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--brand-border);
}

.related-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.custom-alert {
    border: none;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.empty-state {
    text-align: center;
}

.subpage-shell {
    padding: 1.5rem 0 3rem;
}

.subpage-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-bottom: 3rem;
    }

    .trend-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

    .trend-bars {
        height: 180px;
    }

    .form-panel,
    .chart-panel,
    .detail-panel,
    .sidebar-panel,
    .subpage-header,
    .empty-state,
    .insight-panel {
        padding: 1.4rem;
    }
}
