:root {
    /* Color Palette - Premium & Governmental */
    --primary-bg: #0a0e1a;
    --secondary-bg: #12182b;
    --accent: #d4af37;
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-main: #f0f2f5;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

#header-logo {
    height: 110px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

#header-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-button {
    background: var(--accent);
    color: var(--primary-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-active .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-active .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

h1 .accent {
    color: var(--accent);
    font-style: italic;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-bg);
}

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.alternate {
    background-color: var(--secondary-bg);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title.left {
    text-align: left;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 0;
}

.section-title.left::after {
    margin: 20px 0 0;
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.vision-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.vision-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.vision-card .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.journey-line {
    margin-bottom: 60px;
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Roadmap / Levels */
.roadmap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-item {
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
    position: relative;
}

.roadmap-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 30px);
    background: var(--glass-border);
}

.level-num {
    background: var(--accent);
    color: var(--primary-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 2;
}

.roadmap-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stage-subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stage-list {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.stage-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.stage-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.stage-output {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.stage-output .label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    padding-right: 10px;
    margin-right: 2px;
}

/* Multiplication Model */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.stat-item {
    background: var(--glass);
    padding: 25px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-value {
    display: block;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Multiplication Visual Upgrade */
.growth-box {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

#multiplication-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.node {
    fill: var(--accent);
    /* Removed global filter to improve performance on 1,885 nodes */
    transition: transform 0.3s ease;
}

.node-0 {
    r: 8;
    fill: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent));
}

.node-1 {
    r: 4;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.node-2 {
    r: 1.5;
    opacity: 0.6;
    /* No filter for performance */
}

.node-3 {
    r: 0.6;
    opacity: 0.3;
    fill: #ffffff;
    /* No filter for performance */
}

.connection-line {
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0;
    pointer-events: none;
}

.connection-line.pulse {
    animation: linePulse 8s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0;
        stroke-width: 0.2;
    }

    45%,
    55% {
        opacity: 0.4;
        stroke-width: 0.8;
    }
}

.node-group {
    will-change: transform;
}

/* Rhythm */
.rhythm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rhythm-day {
    background: var(--glass);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

.rhythm-day h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

/* Apostolic Glass Section */
.glass-section {
    padding: 150px 0;
    background: linear-gradient(rgba(10, 14, 26, 0.9), rgba(10, 14, 26, 0.9)), url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&q=80&w=2070') center/cover;
}

.apostolic-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.apostolic-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.apostolic-content p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
}

.quote-author {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 180px;
    filter: grayscale(1) brightness(2);
    opacity: 0.6;
    transition: all 0.3s;
}

.footer-logo img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.hero-badge {
    background: var(--accent);
    color: var(--primary-bg);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.identity-line {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: -20px;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Vision outcomes */
.outcome-desc {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

/* Roadmap meta */
.phase-meta {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    padding-top: 150px;
    min-height: 100vh;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin: 0;
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 2000px; /* Large enough to accommodate any answer */
    padding: 0 30px 30px;
}

.faq-answer-content {
    color: var(--text-main);
    line-height: 1.8;
    white-space: pre-line;
}

.faq-answer-content b, 
.faq-answer-content strong {
    color: var(--accent);
}

.faq-answer-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.faq-cta {
    margin-top: 60px;
    text-align: center;
    padding-bottom: 100px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.enlist-modal {
    background: rgba(18, 24, 43, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .enlist-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-group select option {
    background-color: #ffffff !important;
    color: #12182b !important;
}

.form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    margin-top: 5px;
}

.captcha-group label span {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 800;
}

.btn.full-width {
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s infinite;
}

.success-message h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .enlist-modal {
        padding: 30px 20px;
    }
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.hidden {
    display: none !important;
}

@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        height: auto;
        padding: 200px 0 100px;
    }

    .hero-btns {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

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

    #nav-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    #header-logo {
        height: 80px !important;
    }

    .hero {
        padding-top: 150px;
    }

    .container {
        padding: 0 20px;
    }
}