:root {
    /* Colors */
    --bg-color: #090909;
    --bg-secondary: #0c0f11;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00ff57;
    --accent-glow: rgba(0, 255, 87, 0.5);
    --accent-secondary: #00ff99;
    
    /* Soft UI / Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-radius: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 0 transparent;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--accent-color);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Additional Styles for Layout */

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

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

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

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

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

/* Grids */
.problem-grid, .features-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.problem-card, .feature-card, .faq-item {
    transition: transform var(--transition-normal);
}

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

.problem-card {
    text-align: center;
    padding: 28px 16px;
}

.problem-card .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.feature-card {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-height: 100px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar {
        width: 95%;
        padding: 15px;
    }
    
    .nav-links {
        display: none; /* Simple hide for MVP, or use burger menu */
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Calculator Section Adjustment for Centering */
#calculator .container {
    max-width: 1000px; /* Wider to accommodate 2 columns */
    margin: 0 auto;
}

/* Calculator Styles */
.calculator-container {
    padding: 30px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media(min-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    }
}

.calc-info {
    padding-left: 20px;
    border-left: 1px solid var(--glass-border);
}

@media(max-width: 768px) {
    .calc-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        padding-top: 20px;
    }
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.step-num {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.info-step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.info-step strong {
    color: #fff;
}

.input-group {
    margin-bottom: 25px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.value-display {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
}

/* Range Slider Styles */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: opacity .2s;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.full-width {
    width: 100%;
    text-align: center;
}

.pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    /* Default background before JS loads */
    background: conic-gradient(#333 0% 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Inner circle for donut chart effect */
.pie-chart::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-color); /* Matches page bg to look like a hole */
    border-radius: 50%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.fixed { background: #ff4d4d; }
.dot.variable { background: #ffca28; }
.dot.debt { background: #aa00ff; }
.dot.savings { background: #00ff57; }

.result-details {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 20px;
}

.advice-text {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cta-box {
    text-align: center;
    margin-top: 20px;
}

.btn-small {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Quiz & Form Styles */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.quiz-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: left;
    transition: all var(--transition-fast);
}

.quiz-btn:hover {
    border-color: var(--accent-color);
    background: rgba(0, 255, 87, 0.1);
    transform: translateX(5px);
}

.lead-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.privacy-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.4;
}

/* Lead Form Inputs / Button */
.form-step {
    max-width: 640px;
    margin: 0 auto;
}

.lead-form .input-group label {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.lead-form input {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.lead-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.lead-form .btn-primary {
    width: 100%;
    height: 56px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    box-shadow: 0 0 18px var(--accent-glow), inset 0 0 0 transparent;
}

.form-step .section-title {
    margin-bottom: 10px;
}

.form-step p.text-center {
    font-size: 1.05rem;
}

.privacy-note a {
    color: var(--accent-color);
}

/* Author Section */
.author-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(120deg, rgba(255,255,255,0.03), rgba(0,255,87,0.05));
}

@media(min-width: 900px) {
    .author-card {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

.author-media img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
}

.author-content .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.author-name {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.author-bio, .author-quote {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

.author-quote {
    font-style: italic;
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

.author-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.author-stats .stat {
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 120px;
    background: rgba(255,255,255,0.02);
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Method Section */
.method-card {
    padding: 28px;
}

@media(min-width: 768px) {
    .method-card {
        padding: 32px 36px;
    }
}

.method-title {
    font-size: 2rem;
    margin: 8px 0 12px;
}

.method-text {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

.method-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px 0;
    padding: 0;
}

.method-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dot-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
    margin-top: 6px;
    flex-shrink: 0;
}

.method-list strong {
    color: #fff;
}

.method-cta {
    margin-top: 10px;
}

/* FAQ Accordion */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.faq-item {
    padding: 0;
    transition: border-color var(--transition-fast), transform var(--transition-normal);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-weight: 700;
    color: var(--accent-color);
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 18px 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-item.open {
    border: 1px solid var(--accent-color);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Roadmap / Timeline — Matrix Style */
.roadmap-card {
    position: relative;
    padding: 32px 28px;
    background: linear-gradient(135deg, rgba(0,20,0,0.9) 0%, rgba(0,0,0,0.95) 100%);
    border: 1px solid rgba(0,255,87,0.3);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(0,255,87,0.08),
        inset 0 0 80px rgba(0,255,87,0.03);
}

.roadmap-card.matrix-glow::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0,255,87,0.05) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roadmap-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0,255,87,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,87,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.7;
}

.roadmap-title {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

/* Glitch effect */
.glitch {
    position: relative;
    animation: glitchText 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    animation: glitchLeft 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: #f0f;
    animation: glitchRight 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchText {
    0%, 92%, 100% { opacity: 1; }
    93% { opacity: 0.8; transform: translateX(-2px); }
    94% { opacity: 1; transform: translateX(2px); }
}

@keyframes glitchLeft {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-3px); }
    94% { transform: translateX(3px); }
}

@keyframes glitchRight {
    0%, 88%, 100% { transform: translateX(0); }
    90% { transform: translateX(3px); }
    93% { transform: translateX(-3px); }
}

/* Timeline Matrix */
.matrix-timeline {
    position: relative;
    margin-top: 24px;
    padding-left: 50px;
    z-index: 1;
}

.matrix-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--accent-color) 10%,
        var(--accent-color) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px var(--accent-color),
        0 0 20px rgba(0,255,87,0.5),
        0 0 30px rgba(0,255,87,0.3);
    animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 10px var(--accent-color); }
    50% { opacity: 1; box-shadow: 0 0 20px var(--accent-color), 0 0 40px rgba(0,255,87,0.5); }
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(0,255,87,0.02);
    border: 1px solid rgba(0,255,87,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0,255,87,0.06);
    border-color: rgba(0,255,87,0.4);
    box-shadow: 0 0 25px rgba(0,255,87,0.15);
    transform: translateX(8px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Node (circle on timeline) */
.timeline-node {
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(0,255,87,0.5),
        inset 0 0 15px rgba(0,255,87,0.1);
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.node-core {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(0,255,87,0.25) 0%, rgba(0,20,0,0.9) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(0,255,87,0.5);
}

.final-node .node-ring {
    border-color: #0ff;
    box-shadow: 
        0 0 20px rgba(0,255,255,0.6),
        0 0 40px rgba(0,255,255,0.3),
        inset 0 0 15px rgba(0,255,255,0.1);
    animation: pulseRingFinal 1.5s ease-in-out infinite;
}

@keyframes pulseRingFinal {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0,255,255,0.6); }
    50% { transform: scale(1.2); box-shadow: 0 0 35px rgba(0,255,255,0.8), 0 0 60px rgba(0,255,255,0.4); }
}

.final-node .node-core {
    background: radial-gradient(circle, rgba(0,255,255,0.3) 0%, rgba(0,20,30,0.9) 70%);
    border-color: rgba(0,255,255,0.6);
}

/* Step tag */
.step-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent-color);
    background: rgba(0,255,87,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-content h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.roadmap-cta {
    text-align: center;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

@media(min-width: 768px) {
    .roadmap-card {
        padding: 40px 48px;
    }
    .matrix-timeline {
        padding-left: 60px;
    }
    .timeline-node {
        left: -52px;
    }
}
