/* ==========================================================================
   Design Tokens & Color Variables
   ========================================================================== */
:root {
    /* Light Mode Archetype */
    --canvas-bg: #FFFFFF;
    --card-bg: #F9FAFB;
    --border-color: #E5E7EB;
    --text-main: #111827;
    --text-muted: #4B5563;
    --text-dim: #9CA3AF;
    --btn-bg: #007AFF;          /* Apple System Blue for Light Mode */
    --btn-text: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        --canvas-bg: #09090b;   /* Sleek near-black zinc canvas */
        --card-bg: #141416;     /* Pure neutral dark charcoal cards */
        --border-color: #27272a; /* Sharp, crisp neutral borders */
        --text-main: #f4f4f5;   /* Ultra-clean off-white titles */
        --text-muted: #a1a1aa;  /* Crisp mid-gray body text */
        --text-dim: #71717a;    /* Muted baseline labels */
        --btn-bg: #0A84FF;      /* High-Contrast Apple System Blue for Dark Mode */
        --btn-text: #FFFFFF;
    }
}

/* ==========================================================================
   Universal Canvas Setup
   ========================================================================== */
html, body {
    background-color: var(--canvas-bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Master Layout Boundary ensuring perfect side margins */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
    width: 100%;
}

/* ==========================================================================
   Strict 2-Column Bento Architecture
   ========================================================================== */
.bento-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Force exactly two equal columns */
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4rem;
}

.bento-item.hero-box {
    grid-column: span 2 !important;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Typography & Layout Assets */
.bento-item h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

.bento-item h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem 0;
    color: var(--text-main);
}

.bento-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.bento-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bento-badge {
    font-family: 'Inter', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.bento-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    opacity: 0.7;
}

.bento-item:hover .bento-icon {
    color: var(--text-main);
    opacity: 1;
}

/* ==========================================================================
   Full-Width Glory Line CTA
   ========================================================================== */
.cta-glory-line {
    width: 100%;
    margin: 0 auto 4rem auto;
    padding: 3.5rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: left;
    box-sizing: border-box;
}

.cta-glory-line h2 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
    color: var(--text-main);
}

.cta-glory-line p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    max-width: 800px;
}

/* Low-Glare Institutional Action Button */
.bento-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.bento-action-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Compliance Institutional Footer Layout
   ========================================================================== */
.compliance-footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.25rem 0;
    color: var(--text-main);
    font-weight: 600;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-col a:hover {
    color: var(--text-main);
}

.legal-disclaimer p {
    font-size: 0.78rem !important;
    color: var(--text-dim) !important;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    text-align: justify;
}

.footer-baseline {
    width: 100%;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: left;
}

.footer-baseline p {
    margin: 0;
}

/* ==========================================================================
   Responsive Scaling Engine
   ========================================================================== */
@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr !important;
    }
    .bento-item.hero-box {
        grid-column: span 1 !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
