/* Base Variables & Theme */
:root {
    /* Colors */
    --color-bg: #09090b; /* Very dark zinc */
    --color-bg-secondary: #0f0f13;
    --color-surface: rgba(24, 24, 27, 0.7);
    --color-surface-hover: rgba(39, 39, 42, 0.8);
    --color-primary: #3b82f6; /* Modern Blue */
    --color-primary-hover: #2563eb;
    --color-accent: #10b981; /* Emerald Green for money/success */
    --color-accent-hover: #059669;
    --color-text: #f4f4f5;
    --color-text-muted: #a1a1aa;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    /* Shadows & Glows */
    --shadow-glow-primary: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

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

/* Background Blurs */
.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary), transparent 70%);
}
.shape-2 {
    bottom: 20%;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
    opacity: 0.2;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-emerald {
    color: var(--color-accent);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}
.btn-block {
    width: 100%;
}
.btn-glow {
    box-shadow: var(--shadow-glow-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.floating-anim {
    animation: float 6s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}
.hero-content h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}
.hero-content .hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.features-mini i {
    color: var(--color-accent);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    content: '';
    z-index: -1;
    filter: blur(40px);
}
.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Calculator Section */
.calculator-section {
    padding: 100px 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.calc-header {
    text-align: center;
    margin-bottom: 4rem;
}
.calc-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.calc-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.calc-form {
    padding: 2.5rem;
}
.calc-form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.custom-select {
    position: relative;
}
.custom-select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}
.custom-select select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.custom-select select option {
    background: var(--color-bg);
    color: white;
}
.select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-muted);
}

.form-alert {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-align: center;
}
.form-alert.hidden {
    display: none;
}

.calc-results {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.results-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(24, 24, 27, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 10;
    transition: opacity 0.5s ease;
}
.results-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.results-overlay i {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}
.results-overlay p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.results-content {
    animation: fadeInUp 0.5s ease forwards;
}
.results-content.hidden {
    display: none;
}
.results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.primary-result {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
    border-color: rgba(59,130,246,0.3);
}
.res-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}
.res-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.res-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.res-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.box-result {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 0;
}
.box-result .res-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.box-result .res-value {
    font-size: 1.5rem;
}
.highlight-box {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
}

.result-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.small-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 0.5rem;
    line-height: 1.4;
}

/* Footer */
footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.footer-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--color-primary);
}
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.hidden {
    display: none;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius);
    z-index: 10;
    animation: fadeInUp 0.3s ease-out;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-primary);
}
.btn-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.btn-close:hover {
    color: white;
}
.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}
.modal-body {
    text-align: center;
}
.modal-body h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.modal-body p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}
.waitlist-box {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}
.waitlist-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.waitlist-form input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--color-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-main);
}
.waitlist-form input:focus {
    border-color: var(--color-primary);
}

/* Responsiveness */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    .features-mini {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .calc-container {
        grid-template-columns: 1fr;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple mobile fallback */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
