:root {
    --bg-color: #F3F4F6;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --accent-1: #2563EB;
    --accent-2: #10B981;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Heebo', 'Inter', sans-serif;
}

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

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-1) 0%, rgba(110,50,254,0) 60%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: -1;
    animation: drift 20s infinite alternate linear;
    pointer-events: none;
}

.top-blob {
    top: -200px;
    right: -200px;
}

.bottom-blob {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-2) 0%, rgba(36,229,255,0) 60%);
    opacity: 0.3;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Navbar */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(243, 244, 246, 0.7);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

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

.btn-primary-small, .btn-primary, .btn-secondary {
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-primary-small {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-1), #965BFF);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary-small:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(110, 50, 254, 0.4);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 100px 40px 40px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

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

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

.btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-1), #965BFF);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Mockup Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup-card {
    width: 400px;
    height: 550px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    animation: floatCard 6s ease-in-out infinite;
}

.mockup-card:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

@keyframes floatCard {
    0% { transform: rotateY(-15deg) rotateX(10deg) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(10deg) translateY(-20px); }
    100% { transform: rotateY(-15deg) rotateX(10deg) translateY(0px); }
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    margin-left: 6px;
}
.dots span:nth-child(1) { background: #FF5F56; }
.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.path {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.receipt-placeholder {
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.r-line {
    background: #e0e0e0;
    height: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.r-title { width: 60%; height: 20px; background: #bdbdbd; margin-bottom: 25px;}
.r-date { width: 40%; }
.r-item { width: 100%; margin-top: 30px;}
.r-total { width: 50%; height: 15px; background: #6E32FE; margin-top: auto; position: absolute; bottom: 20px;}

.scanner-line {
    position: absolute;
    top: 50px;
    width: 250px;
    height: 4px;
    background: var(--accent-2);
    box-shadow: 0 0 15px var(--accent-2);
    animation: scan 3s linear infinite alternate;
    z-index: 10;
}

@keyframes scan {
    0% { top: 50px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 300px; opacity: 0; }
}

.ai-processing {
    margin-top: 30px;
    padding: 10px 20px;
    background: rgba(110, 50, 254, 0.2);
    border: 1px solid rgba(110, 50, 254, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(110, 50, 254, 0.5); }
    100% { opacity: 0.6; }
}

/* Features Section */
.features {
    padding: 80px 40px;
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 40px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(36,229,255,0.4);
}

.f-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.f-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.f-desc {
    color: var(--text-muted);
    font-weight: 300;
}

/* How It Works */
.how-it-works {
    padding: 60px 40px 80px;
}

.hiw-container {
    padding: 80px 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(110, 50, 254, 0.3);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-muted);
    font-weight: 300;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-top: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps 2-layout */
.steps-two {
    max-width: 800px;
    margin: 60px auto 0;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 40px;
    background: radial-gradient(circle at right, rgba(110,50,254,0.05), transparent 50%);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.calc-card {
    padding: 40px;
    border-top: 4px solid var(--accent-1);
    transition: transform 0.3s;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(110,50,254,0.2);
}

.calc-card:nth-child(2) {
    border-top: 4px solid var(--accent-2);
}

.calc-type {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.tax-list {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.tax-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tax-name {
    color: var(--text-muted);
}

.loss {
    color: var(--text-main);
    font-weight: 700;
}

.faded {
    opacity: 0.5;
}

.calc-total {
    background: rgba(37, 99, 235, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.big-num {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.calc-insight {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-2);
    font-weight: 600;
}

/* Contact Form */
.contact-section {
    padding: 60px;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.contact-form input::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus {
    border-color: var(--accent-1);
}

.contact-form button {
    margin-top: 10px;
    border: none;
    padding: 20px;
}

/* Stats Customization */
.summary-card {
    background: rgba(110, 50, 254, 0.05);
    border: 1px solid rgba(110, 50, 254, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    justify-content: center;
}

.summary-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    margin-bottom: 30px;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.stat-value.accent {
    color: #2ED573;
    text-shadow: 0 0 20px rgba(46, 213, 115, 0.4);
}

.highlight {
    background: rgba(16, 185, 129, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mockup-desc {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Responsive Update */
@media (max-width: 1024px) {
    .calc-grid { grid-template-columns: 1fr; }
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    text-align: right;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.faq-btn:hover {
    background: rgba(37, 99, 235, 0.05); /* accent-1 very light */
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #F9FAFB;
}

.faq-content p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-content {
    max-height: 300px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Header */
    .glass-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        position: relative;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 20px 40px;
        gap: 20px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .mockup-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 400px;
    }

    /* General Spacing */
    .features, .how-it-works, .calculator-section, .contact-section {
        padding: 50px 20px;
    }
    .section-title {
        font-size: 2rem !important;
    }

    /* Grids to Columns */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    .step-connector {
        display: none;
    }

    /* About Us */
    .about-us {
        flex-direction: column-reverse;
        padding: 30px 15px !important;
        margin: 40px 0 !important;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .about-us .section-title {
        text-align: center !important;
    }

    /* FAQ */
    .faq-section {
        margin: 40px 0 !important;
        padding: 0 15px !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Action Trigger */
    .action-trigger {
        padding: 50px 20px !important;
    }

    /* Stats Override */
    .stat-value {
        font-size: 2.5rem;
    }

    /* Force Centering Everywhere */
    * {
        text-align: center !important;
    }
    
    .faq-btn {
        text-align: center !important;
    }
    
    .tax-list li {
        text-align: right !important; /* Keep the math columns readable */
    }
    .tax-list span {
        text-align: right !important;
    }
    
    .nav-links a, .btn-primary, .btn-secondary {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-actions {
        width: 100%;
        align-items: center;
    }
}
