/* 
    BizCalc PRO - Modern Landing Page Styles 
    Aesthetic: Dark Mode, Glassmorphism, Vibrant Accents, Inter/Outfit Typography
*/

:root {
    /* Color Palette */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(30, 30, 40, 0.8);

    --text-main: #f8f9fa;
    --text-muted: #a1a1aa;

    /* Vibrant Accents */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-cyan: #06b6d4;

    --subtle-blue: rgba(59, 130, 246, 0.15);
    --subtle-purple: rgba(139, 92, 246, 0.15);
    --subtle-green: rgba(16, 185, 129, 0.15);
    --subtle-orange: rgba(245, 158, 11, 0.15);
    --subtle-cyan: rgba(6, 182, 212, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

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

    /* Layout & Effects */
    --container-width: 1200px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --blur-amt: backdrop-filter: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

/* Background Blurs */
.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.blur-purple {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
}

.blur-blue {
    top: 400px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Color Utilities */
.text-blue {
    color: var(--accent-blue);
}

.text-purple {
    color: var(--accent-purple);
}

.text-green {
    color: var(--accent-green);
}

.text-orange {
    color: var(--accent-orange);
}

.text-cyan {
    color: var(--accent-cyan);
}

.bg-blue-subtle {
    background-color: var(--subtle-blue);
}

.bg-purple-subtle {
    background-color: var(--subtle-purple);
}

.bg-green-subtle {
    background-color: var(--subtle-green);
}

.bg-orange-subtle {
    background-color: var(--subtle-orange);
}

.bg-cyan-subtle {
    background-color: var(--subtle-cyan);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo i {
    color: var(--accent-purple);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 80px;
    /* Offset for nav */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle-accent {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-purple), var(--accent-blue), transparent);
    opacity: 0.15;
    animation: rotate 10s linear infinite;
}

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

/* Floating Cards Animation Setup */
.floating-card {
    position: absolute;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 260px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 0;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: -4s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.floating-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.floating-card p.positive {
    color: var(--accent-green);
}

/* Common Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Calculators Grid */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.calc-card {
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* More subtle default border */
}

.calc-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight border on hover */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.calc-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.calc-icon {
    font-size: 1.8rem;
}

.calc-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.calc-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.calc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.calc-link i {
    transition: transform 0.3s ease;
}

.calc-card:hover .calc-link {
    color: var(--accent-blue);
}

.calc-card:hover .calc-link i {
    transform: translateX(4px);
}

/* Use Cases Section */
.use-cases-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.use-case-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.use-case-item {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.use-case-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.use-case-item.active {
    background: var(--bg-card);
    border: var(--glass-border);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 1.2rem;
}

.use-case-item.active .use-case-icon {
    background: var(--subtle-purple);
}

.use-case-header h4 {
    font-size: 1.1rem;
}

.use-case-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 3.5rem;
    margin: 0;
}

.dashboard-preview {
    padding: 1.5rem;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.dashboard-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dashboard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-mockup {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar {
    flex: 1;
    background: var(--subtle-blue);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar-1 {
    height: 30%;
}

.bar-2 {
    height: 50%;
}

.bar-3 {
    height: 40%;
}

.bar-4 {
    height: 70%;
    background: var(--gradient-primary);
}

.bar-5 {
    height: 60%;
}

.bar-6 {
    height: 85%;
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
}

.d-stat {
    display: flex;
    flex-direction: column;
}

.d-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.d-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    max-width: 500px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-text.emphasize {
    font-size: 1.2rem;
    color: var(--text-light);
    border-left: 3px solid var(--accent-purple);
    padding-left: 20px;
    font-weight: 500;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 40, 0.8);
    /* Reusing card hover from elsewhere */
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
    /* var(--text-light) equivalent */
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0 80px;
    position: relative;
    z-index: 10;
}

.faq-section .section-header {
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 30px;
    border-radius: 16px;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-box {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    background: rgba(10, 10, 15, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations */
[data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="scale-up"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .nav-content .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

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

    .stats {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-circle-accent {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        width: 200px;
        padding: 1rem;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .use-cases-layout {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-content {
        max-width: 100%;
    }

    .about-text.emphasize {
        text-align: left;
    }

    .value-card {
        text-align: left;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-item {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 1rem auto 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
    }

    .nav-content .btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-circle-accent {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        width: 180px;
        padding: 0.75rem;
    }

    .floating-card h4 {
        font-size: 0.9rem;
    }

    .floating-card p {
        font-size: 0.8rem;
    }
}