:root {
    /* FinRect Core Palette */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.65);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Branding Colors */
    --accent-color: #22d3ee;
    /* Cyan */
    --accent-secondary: #3b82f6;
    /* Blue */
    --finrect-gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);

    --success-color: #34d399;
    --danger-color: #f87171;
    --warning-color: #fbbf24;

    /* Glass Effects */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-backdrop: blur(16px);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff 10%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--accent-color);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--finrect-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(5px);
    padding: 16px 32px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.logo img {
    height: 38px;
    width: 38px;
}

.logo-slogan {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

/* Background Glow */
.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.8;
    text-align: left;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item strong {
    font-size: 1.85rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.stat-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Dashboard Mockup */
.mockup-container {
    perspective: 1000px;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform: rotateX(10deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-card:hover {
    transform: rotateX(0deg) scale(1);
}

/* Feature Grid inside Dashboard Mockup */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.db-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}

/* Value Stats */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-top: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-box {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

/* Feature Icons */
.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
}

.feature-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Financial Health Score (Simulated UI) */
.health-score-ring {
    width: 120px;
    height: 60px;
    background: transparent;
    border-radius: 120px 120px 0 0;
    border: 12px solid #334155;
    border-bottom: 0;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
}

.health-score-fill {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 12px solid var(--success-color);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    /* Simulated fill */
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px 0;
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Decorative Elements */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Pro Features & Simulation */
.pro-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    vertical-align: middle;
}

.simulation-container {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.sim-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    /* closely packed bars */
    height: 200px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.sim-bar {
    flex: 1;
    background: var(--accent-color);
    opacity: 0.3;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    position: relative;
}

.sim-bar:hover {
    opacity: 0.8;
    background: var(--accent-secondary);
}

.sim-bar::after {
    content: '';
    /* Glow effect top */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px white;
}

.sim-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    width: 80%;
}

.sim-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Leverage Card */
.leverage-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--warning-color);
    border-radius: 16px;
    padding: 20px;
    color: var(--warning-color);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dashboard-card {
        transform: none;
    }
}



/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    text-align: left;
    min-width: 160px;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.store-icon {
    width: 24px;
    height: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.2;
}

.store-text strong {
    font-size: 1rem;
    font-weight: 600;
}

/* Floating Elements around phone */
.float-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 16px;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    max-width: 200px;
}



/* Phone Mockup Styling */
.phone-mockup-container {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    z-index: 2;
    padding: 20px;
}

.phone-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
    /* Clean shadow for floating effect */
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: var(--finrect-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.6);
}

@media (max-width: 768px) {
    .phone-mockup-container {
        max-width: 300px;
    }
}

/* Hero layout adjustment */
.hero-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

@media (max-width: 900px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .store-buttons {
        justify-content: center;
    }
}


/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 32px;
    position: relative;
    background: rgba(30, 41, 59, 0.2);
    border-radius: 24px;
    border: 1px dashed var(--glass-border);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--finrect-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Detailed Features Section */
.detailed-features {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, var(--bg-primary) 100%);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-text {
    direction: ltr;
    /* Reset text direction */
}

.feature-image {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* For inner content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--success-color);
    width: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #475569, #334155);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-info h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.user-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.testimonial-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    display: block;
    /* Simplified for static demo */
}

@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row.reverse {
        direction: ltr;
    }
}