/* ==========================================================================
   MoneyGlimpse Static Website Stylesheet
   Zero external CSS framework required — matches the MoneyGlimpse app palette
   ========================================================================== */

:root {
    --mg-navy-deep: #070d1d;
    --mg-navy: #0f172a;
    --mg-navy-mid: #172554;
    --mg-royal: #1e3a8a;
    --mg-blue: #3b82f6;
    --mg-blue-light: #60a5fa;
    --mg-blue-soft: #93c5fd;
    --mg-teal: #18bc9c;
    --mg-emerald: #34d399;
    --mg-coral: #f87171;
    --mg-text: #f8fafc;
    --mg-text-muted: #cbd5e1;
    --mg-text-dim: #94a3b8;
    --mg-border: rgba(255, 255, 255, 0.11);
    --mg-surface: rgba(15, 23, 42, 0.58);
    --mg-surface-soft: rgba(255, 255, 255, 0.045);
    --mg-radius-lg: 18px;
    --mg-radius-md: 12px;
    --mg-max-width: 1120px;
    --mg-wide-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--mg-navy-deep);
    color: var(--mg-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

#preview,
#features,
#platforms,
#faq,
#contact {
    scroll-margin-top: 88px;
}

#top {
    scroll-margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--mg-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: var(--mg-wide-width);
}

/* ==========================================================================
   Sticky Glassmorphic Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 15, 34, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-logo {
    height: 28px;
    width: auto;
}

.brand-tm {
    font-size: 0.52em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 1px;
    opacity: 0.85;
    line-height: 0;
}

.beta-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5eead4;
    background: rgba(24, 188, 156, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mg-text-muted);
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.5rem 1.05rem;
    border-radius: 10px;
    font-size: 0.86rem !important;
    font-weight: 600;
    border: 1px solid rgba(147, 197, 253, 0.3);
    box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.65);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mg-border);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   Tight, Punchy Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: clip;
    background: linear-gradient(135deg, #0b1329 0%, #13214b 48%, #1e3a8a 100%);
    padding: clamp(3.25rem, 7vh, 5.25rem) 0 clamp(2.75rem, 5.5vh, 4rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(30, 58, 138, 0) 70%);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(24, 188, 156, 0.16) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-intro {
    max-width: 780px;
    margin-bottom: 2.4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(59, 130, 246, 0.16);
    color: var(--mg-blue-soft);
    border: 1px solid rgba(96, 165, 250, 0.35);
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4.5vw, 3.45rem);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.hero-title-accent {
    background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 52%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 1.85rem;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    color: var(--mg-text-muted);
    max-width: 660px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.85rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--mg-text-muted);
}

.hero-pillar strong {
    color: #ffffff;
    font-weight: 600;
}

.pillar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pillar-dot-blue { background: #60a5fa; }
.pillar-dot-amber { background: #fbbf24; }
.pillar-dot-emerald { background: #34d399; }
.pillar-dot-cyan { background: #22d3ee; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.72rem 1.35rem;
    border-radius: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.32);
    box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.65);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Dedicated Interactive Product Showcase Section (Light-Mode App Frame)
   ========================================================================== */
.showcase-section {
    background: linear-gradient(180deg, #0b142c 0%, #070d1d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.showcase-head {
    margin-bottom: 0;
    max-width: 720px;
}

.carousel-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.28rem 0.4rem;
}

.carousel-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow-btn:hover {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(147, 197, 253, 0.45);
}

.carousel-counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mg-text-muted);
    padding: 0 0.35rem;
    font-variant-numeric: tabular-nums;
}

/* Scenario Tabs */
.scenario-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.scenario-tab {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: left;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    padding: 0.75rem 0.95rem;
    color: var(--mg-text-muted);
    cursor: pointer;
    transition: all 0.16s ease;
}

.scenario-tab:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(147, 197, 253, 0.32);
    color: #ffffff;
}

.scenario-tab.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 8px 24px -10px rgba(59, 130, 246, 0.55);
}

.tab-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-dot-amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.65); }
.tab-dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.65); }
.tab-dot-blue { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.65); }
.tab-dot-emerald { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.65); }

.tab-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tab-text strong {
    font-size: 0.86rem;
    line-height: 1.25;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-text small {
    font-size: 0.72rem;
    color: var(--mg-text-dim);
}

.scenario-tab.active .tab-text small {
    color: #bfdbfe;
}

/* Desktop App Window Frame */
.app-window {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 32px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    background: #f8fafc;
}

.app-window-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.68rem 1.15rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
}

.chrome-left {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.chrome-dots {
    display: inline-flex;
    gap: 6px;
    margin-right: 4px;
}

.chrome-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.chrome-dots .dot-r { background: #fb7185; }
.chrome-dots .dot-y { background: #fbbf24; }
.chrome-dots .dot-g { background: #34d399; }

.chrome-logo {
    height: 19px;
    width: auto;
}

.chrome-title {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.chrome-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chrome-workspace-pill {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
}

.chrome-sample-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5eead4;
    background: rgba(24, 188, 156, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
}

/* Light-Mode App Dashboard Canvas (Faithful to Real MoneyGlimpse UI) */
.app-canvas {
    background: #f8fafc;
    color: #1e293b;
    padding: 1.45rem 1.55rem 1.6rem;
}

.dash-heading-row {
    margin-bottom: 0.95rem;
}

.dash-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.dash-subtitle {
    margin: 0.12rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

/* Liquidity Notice Banner */
.dash-notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.95rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dash-notice-banner.notice-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.dash-notice-banner.notice-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dash-notice-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.dash-notice-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.notice-warning .dash-notice-icon {
    background: #fef3c7;
    color: #d97706;
}

.notice-info .dash-notice-icon {
    background: #dbeafe;
    color: #2563eb;
}

.dash-notice-body {
    min-width: 0;
    flex: 1;
}

.dash-notice-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.22rem;
}

.dash-notice-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.notice-warning .dash-notice-title {
    color: #92400e;
}

.notice-info .dash-notice-title {
    color: #1e3a8a;
}

.dash-notice-pager {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.notice-warning .dash-notice-pager {
    background: #fef3c7;
    color: #b45309;
}

.notice-info .dash-notice-pager {
    background: #dbeafe;
    color: #1d4ed8;
}

.dash-notice-arrows {
    display: inline-flex;
    gap: 0.25rem;
}

.dash-mini-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.14s ease;
}

.dash-mini-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.dash-notice-tag {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    margin-left: auto;
}

.notice-warning .dash-notice-tag {
    background: rgba(217, 119, 6, 0.13);
    color: #b45309;
}

.notice-info .dash-notice-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.dash-notice-text {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.45;
}

.dash-notice-text strong {
    color: #0f172a;
}

/* Overview Card: Horizon Bar + Income/Expense/Net Triad */
.dash-overview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.25rem;
}

.dash-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #faf8f5;
    border-bottom: 1px solid #ece7df;
}

.dash-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-bar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.dash-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.18rem 0.3rem;
}

.dash-step-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.dash-step-btn:hover:not(:disabled) {
    background: #eff6ff;
    color: #1e3a8a;
}

.dash-step-btn:disabled {
    opacity: 0.32;
    cursor: default;
}

.dash-horizon-pill {
    background: #e2e8f0;
    color: #0f172a;
    border-radius: 5px;
    padding: 0.12rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-horizon-range {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    padding: 0 0.25rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-outlook-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dash-yr-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: 2.5px solid #16a34a;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.22rem 0.55rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
    white-space: nowrap;
}

.dash-yr-pill.status-healthy svg {
    color: #16a34a;
}

.dash-yr-pill.status-warning {
    border-bottom-color: #d97706;
    background: #fffbeb;
}

.dash-yr-pill.status-warning svg {
    color: #d97706;
}

.dash-yr-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.dash-yr-pill.active {
    border-color: #1e3a8a;
    background: #eff6ff;
    color: #1e3a8a;
    box-shadow: 0 0 0 1px #1e3a8a;
}

.dash-yr-pill.status-warning.active {
    border-color: #d97706;
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 0 0 1px #d97706;
}

/* Income / Expenses / Net Cash Flow Triad */
.dash-kpi-triad {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr;
    gap: 0.9rem;
    padding: 1rem;
    align-items: stretch;
}

.dash-kpi-tile {
    background: #faf8f5;
    border: 1px solid #ece7df;
    border-radius: 12px;
    padding: 0.9rem 1.05rem;
}

.dash-kpi-tile.dash-net-tile {
    background: #dbe4ee;
    border-color: #cbd5e1;
    text-align: right;
}

.dash-kpi-tile.dash-net-tile.is-deficit {
    background: #fee2e2;
    border-color: #fca5a5;
}

.dash-kpi-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dash-label-income { color: #16a34a; }
.dash-label-expense { color: #dc2626; }

.dash-net-tile .dash-kpi-label {
    justify-content: flex-end;
    color: #1e3a8a;
}

.dash-net-tile.is-deficit .dash-kpi-label {
    color: #b91c1c;
}

.dash-kpi-amount {
    font-size: clamp(1.22rem, 1.9vw, 1.55rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.dash-net-tile .dash-kpi-amount {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.dash-net-tile.is-deficit .dash-kpi-amount {
    color: #b91c1c;
}

/* Expense Breakdown Header */
.dash-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.dash-breakdown-header h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.dash-details-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* 6-Card Expense Breakdown Grid */
.dash-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.dash-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0.95rem 1.05rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.dash-cat-card.cat-overage {
    border-color: #fca5a5;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.dash-cat-card.cat-caution {
    border-color: #fcd34d;
}

.dash-cat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.dash-cat-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.12rem;
}

.dash-cat-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.3;
}

.dash-cat-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-blue { background: #1d64c2; }
.badge-purple { background: #7c3aed; }
.badge-amber { background: #d97706; }
.badge-crimson { background: #b91c1c; }
.badge-emerald { background: #16a34a; }
.badge-slate { background: #64748b; }

.dash-cat-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.55rem;
}

.dash-cat-details {
    margin: 0;
    padding: 0.55rem 0 0;
    border-top: 1px solid #f1f5f9;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
    font-size: 0.71rem;
    line-height: 1.4;
    color: #475569;
}

.dash-cat-details.collapsed {
    display: none;
}

.dash-cat-details li {
    position: relative;
    padding-left: 0.65rem;
}

.dash-cat-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #94a3b8;
}

.dash-cat-details strong {
    color: #0f172a;
}

.pct-pill {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.04rem 0.38rem;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}

.pct-ok { background: #dcfce7; color: #166534; }
.pct-warn { background: #fef3c7; color: #b45309; }
.pct-danger { background: #fee2e2; color: #b91c1c; }

.cat-status-ok { color: #15803d; font-weight: 600; }
.cat-status-warn { color: #b45309; font-weight: 600; }
.cat-status-danger { color: #b91c1c; font-weight: 600; }

/* Scenario Takeaway Bar Below App Window */
.showcase-caption-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.15rem;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-caption-text {
    font-size: 0.85rem;
    color: var(--mg-text-muted);
    line-height: 1.45;
}

.showcase-caption-text strong {
    color: #ffffff;
}

.carousel-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.active {
    width: 24px;
    background: #60a5fa;
}

/* ==========================================================================
   Shared Content Sections
   ========================================================================== */
.section {
    padding: clamp(3.5rem, 7vh, 5.25rem) 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(7, 13, 29, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.section-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mg-blue-light);
    margin-bottom: 0.55rem;
}

.section-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.section-desc {
    margin: 0;
    font-size: 0.98rem;
    color: var(--mg-text-dim);
}

/* ==========================================================================
   Features Bento Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-radius-lg);
    padding: 1.45rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.22);
    color: var(--mg-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mg-text-dim);
    line-height: 1.55;
}

/* ==========================================================================
   Platforms (Coming Soon / Private Beta)
   ========================================================================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.platform-card {
    display: flex;
    flex-direction: column;
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-radius-lg);
    padding: 1.4rem;
}

.platform-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mg-blue-soft);
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.platform-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    color: #ffffff;
}

.platform-arch {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mg-emerald);
    margin-bottom: 0.55rem;
}

.platform-card p {
    margin: 0 0 1.2rem;
    font-size: 0.85rem;
    color: var(--mg-text-dim);
    flex-grow: 1;
}

.platform-btn-disabled {
    width: 100%;
    padding: 0.58rem 0.9rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--mg-text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.platforms-note {
    margin-top: 1.5rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--mg-radius-md);
    background: rgba(24, 188, 156, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.22);
    font-size: 0.88rem;
    color: var(--mg-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.platforms-note a {
    color: #5eead4;
    font-weight: 700;
}

.platforms-note a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 860px;
}

.faq-item {
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.open {
    border-color: rgba(96, 165, 250, 0.36);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.faq-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-chevron {
    color: var(--mg-blue-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-panel {
    display: none;
    padding: 0 1.35rem 1.2rem;
    font-size: 0.9rem;
    color: var(--mg-text-muted);
    line-height: 1.62;
}

.faq-item.open .faq-panel {
    display: block;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 900px;
}

.contact-card {
    background: var(--mg-surface);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-radius-lg);
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.contact-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mg-text-dim);
    flex-grow: 1;
}

.contact-email-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.26);
    padding: 0.45rem 0.8rem;
    border-radius: 9px;
    width: fit-content;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.btn-sm {
    font-size: 0.84rem;
    padding: 0.56rem 1rem;
    border-radius: 9px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.25rem 0;
    background: #060b18;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-brand img {
    height: 24px;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.35rem;
    font-size: 0.85rem;
    color: var(--mg-text-dim);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--mg-text-dim);
}

.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.55;
    color: #7c8da6;
}

.footer-legal p {
    margin: 0;
}

.footer-legal strong {
    color: var(--mg-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .scenario-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

@media (max-width: 760px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1.25rem 1.5rem 1.5rem;
        background: rgba(9, 15, 34, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .scenario-tabs,
    .dash-kpi-triad,
    .dash-category-grid,
    .features-grid,
    .platforms-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-tile.dash-net-tile {
        text-align: left;
    }

    .dash-net-tile .dash-kpi-label {
        justify-content: flex-start;
    }

    .app-canvas {
        padding: 1rem;
    }
}
