/* BENED Platform - Professional Centered Layout (Dark Theme)
   Primary: #d10000, Deep Navy #003e60, Medium Blue #025f91, Teal #027578
   Background: #050b10, sections #0b1724, text #f9fafb
*/
:root{
    --bg: #050b10;
    --section: #0b1724;
    --primary: #d10000;
    --navy: #003e60;
    --blue: #025f91;
    --teal: #027578;
    --text: #f9fafb;
    --muted: #9ca3af;
    --gold: #facc15;
    --backdoor-bg: #111827;
    --backdoor-gold: #facc15;
    --backdoor-violet: #4c1d95;
    --max-width: 1200px;
    --container-padding: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
header.nav {
    background: var(--section);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--container-padding);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 1;
}

.signin {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.signin:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--section) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(209, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(209, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Data Visualization Card */
.data-viz-card {
    background: var(--backdoor-bg);
    border: 1px solid var(--backdoor-gold);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.data-viz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--teal), var(--blue));
}

.data-viz-card h3 {
    color: var(--backdoor-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.data-viz-card canvas {
    width: 100%;
    height: auto;
    max-width: 320px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    background: var(--backdoor-bg);
}

/* Game Toggle Styles */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.game-header h3 {
    margin: 0;
    color: var(--backdoor-gold);
    font-size: 1.25rem;
    font-weight: 600;
}

.game-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-toggle:hover {
    background: rgba(250, 204, 21, 0.2);
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.game-content {
    transition: all 0.3s ease;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .game-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .game-content {
        display: none; /* Hidden by default on mobile */
    }
}

/* Mission Section */
.mission {
    padding: 5rem 0;
    background: var(--bg);
}

.mission .container {
    text-align: center;
    max-width: 800px;
}

/* Wider container when mission section has three pillars */
.mission .container:has(.three-pillars),
.mission .container.wide {
    max-width: 1200px;
}

.mission h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

.mission p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--section);
}

.projects .container {
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: linear-gradient(135deg, var(--section) 0%, rgba(7, 16, 26, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-card.backdoor {
    border: 1px solid var(--backdoor-gold);
    background: linear-gradient(135deg, var(--backdoor-bg) 0%, rgba(7, 16, 26, 0.5) 100%);
}

.badge {
    display: inline-block;
    background: var(--backdoor-gold);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-enter {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--backdoor-violet);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-enter:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.4);
}

/* Footer */
footer {
    background: var(--section);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 3rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

footer p {
    color: var(--muted);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .data-viz-card {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 1rem var(--container-padding);
    }

    .logo {
        font-size: 1.25rem;
    }

    .mission h2,
    .projects h2 {
        font-size: 2rem;
    }

    .data-viz-card {
        padding: 1.5rem;
    }
}

/* Four Pillars Grid - Homepage */
.mission-intro {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--section);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.recovery-pillar:hover {
    border-color: #00ff88;
}

.tools-pillar:hover {
    border-color: var(--blue);
}

.research-pillar:hover {
    border-color: var(--gold);
}

.learn-pillar:hover {
    border-color: var(--teal);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pillar-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.pillar-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pillar-link {
    color: var(--teal);
    font-weight: 500;
    font-size: 0.95rem;
}

.pillar-card:hover .pillar-link {
    text-decoration: underline;
}

/* Portal Stats on Homepage */
.portal-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat {
    text-align: center;
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
}

.stat-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Vision Statement - Homepage */
.vision-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vision-cta {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 2rem;
    color: var(--gold);
}

/* Founder Callout - Homepage */
.founder-callout {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05), rgba(2, 95, 145, 0.05));
}

.callout-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--section);
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    padding: 3rem;
}

.callout-content h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.callout-content p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.callout-name {
    color: var(--gold);
    font-weight: 600;
    font-style: normal;
    margin-bottom: 2rem;
}

/* Philosophy Section */
.philosophy-section {
    margin-bottom: 4rem;
}

.philosophy-section h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.coming-soon {
    background: rgba(250, 204, 21, 0.2);
    color: var(--gold);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

/* Pillars Overview - Projects Page */
.pillars-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.overview-pillar {
    background: var(--section);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.overview-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pillar-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.overview-pillar h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.overview-pillar p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-stats {
        flex-wrap: wrap;
    }
    
    .pillars-overview {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   THREE PILLARS UPDATE - New Styles
   ======================================== */

/* Three Pillars Grid */
.pillars-grid.three-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Pillar Cards in Three Pillars Grid - Match existing card style */
.pillars-grid.three-pillars .pillar-card {
    background: var(--section);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pillars-grid.three-pillars .pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Keep pillar-specific border colors on hover like existing cards */
.pillars-grid.three-pillars .truth-pillar:hover {
    border-color: var(--gold);
}

.pillars-grid.three-pillars .community-pillar:hover {
    border-color: var(--blue);
}

.pillars-grid.three-pillars .sovereignty-pillar:hover {
    border-color: var(--primary);
}

/* Feature Tags */
.pillar-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.pillar-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pillar-cta:hover {
    color: var(--text);
    transform: translateX(5px);
}

/* Transparency Section */
.transparency-section {
    padding: 5rem 0;
    background: var(--section);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transparency-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.transparency-content h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.transparency-intro {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-style: italic;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.transparency-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.transparency-item:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.02);
}

.transparency-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.transparency-item h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.transparency-item p {
    color: var(--muted);
    line-height: 1.7;
}

.support-cta {
    margin-top: 2rem;
}

.support-cta p {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.support-cta .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--gold);
    color: var(--bg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-cta .btn-primary:hover {
    background: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.3);
}

/* About Page - Three Pillars */
.three-pillars-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.truth-feature {
    border-left: 4px solid var(--gold);
}

.community-feature {
    border-left: 4px solid var(--blue);
}

.sovereignty-feature {
    border-left: 4px solid var(--primary);
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: var(--text);
    transform: translateX(5px);
}

/* Transparency Commitment Section */
.transparency-commitment {
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 12px;
    padding: 3rem;
    margin: 4rem auto;
    max-width: 900px;
}

.transparency-commitment h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
}

.transparency-pledge p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.transparency-pledge strong {
    color: var(--gold);
    font-weight: 600;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .transparency-content h2 {
        font-size: 2rem;
    }
    
    .transparency-intro {
        font-size: 1rem;
    }
    
    .transparency-grid {
        grid-template-columns: 1fr;
    }
    
    .three-pillars-about {
        grid-template-columns: 1fr;
    }
    
    .transparency-commitment {
        padding: 2rem;
    }
    
    /* Three Pillars Grid - Stack on mobile */
    .pillars-grid.three-pillars {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Three Pillars - Tablet breakpoint (2 columns then 1) */
@media (max-width: 1024px) and (min-width: 769px) {
    .pillars-grid.three-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .pillars-grid.three-pillars .pillar-card {
        padding: 1.5rem;
    }
}
