/* ==========================================================================
   Finfully - Design System (ReflexAI Inspired)
   ========================================================================== */

:root {
    /* Colors - ReflexAI Inspired Theme */
    --forest-deep: #0A1F3C;
    /* Dark Green / Navy hybrid */
    --forest-light: #00AFA3;

    --beige-light: #F9F8F6;
    /* Warm Off-White */
    --beige-panel: #7CE7DF;
    /* Subtle Card Background */

    --lime-pop: #C5F55A;
    /* Vibrant Accent */
    --teal-core: #00AFA3;
    /* Secondary Data Accent */

    --text-rich: #111A18;
    /* Dark text for beige backgrounds */
    --text-secondary: #5A6D68;

    --white: #FFFFFF;

    /* Traffic Lights */
    --status-red: #E63946;
    --status-amber: #F4A261;
    --status-green: #2A9D8F;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2.5rem;
    --sp-lg: 5rem;
    --sp-xl: 8rem;

    /* Border Radius - Softer UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--beige-light);
}

body {
    font-family: var(--font-primary);
    color: var(--text-rich);
    background-color: var(--beige-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
    color: var(--forest-deep);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--sp-xl) 0;
}

.bg-light {
    background-color: var(--beige-light);
}

.bg-panel {
    background-color: var(--beige-panel);
}

.bg-dark {
    background-color: var(--forest-deep);
    color: var(--white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark p {
    color: var(--white);
}

.center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-sm {
    max-width: 400px;
}

.max-w-md {
    max-width: 600px;
}

.max-w-lg {
    max-width: 800px;
}

.mt-sm {
    margin-top: var(--sp-sm);
}

.mt-md {
    margin-top: var(--sp-md);
}

.mt-lg {
    margin-top: var(--sp-lg);
}

.mt-xl {
    margin-top: var(--sp-xl);
}

.secondary-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.large-text {
    font-size: 1.25rem;
}

.huge-text {
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: var(--forest-deep);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--lime-pop);
    color: var(--forest-deep);
    border: none;
    box-shadow: 0 4px 14px rgba(197, 245, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 245, 90, 0.4);
    background-color: #D4F77B;
}

.bg-dark .btn-primary {
    background-color: var(--lime-pop);
    color: var(--forest-deep);
}

.btn-secondary {
    background-color: transparent;
    color: var(--forest-deep);
    border: 2px solid var(--forest-deep);
}

.btn-secondary:hover {
    background-color: var(--forest-deep);
    color: var(--white);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    background-color: var(--beige-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-deep);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--forest-deep);
    color: var(--white);
    box-shadow: none;
}

.navbar .btn-primary:hover {
    background-color: var(--forest-light);
    transform: none;
}

/* Indicators */
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background-color: var(--status-red);
}

.dot.amber {
    background-color: var(--status-amber);
}

.dot.green {
    background-color: var(--status-green);
}

/* Dividers */
.divider {
    height: 2px;
    width: 80px;
    background-color: var(--forest-deep);
    margin-top: 2rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Hero Section */
.hero {
    padding: 6rem 0 8rem;
    background-color: var(--beige-light);
}

.hero p {
    margin: 2rem 0;
    font-size: 1.25rem;
}

/* Hero Visual - Floating Mockups */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.mockup-card-main {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(13, 43, 38, 0.08);
    position: relative;
    z-index: 2;
}

.mc-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--beige-panel);
}

.mc-header-text {
    font-weight: 600;
    color: var(--forest-deep);
    margin-left: 1rem;
}

.mc-bar {
    height: 12px;
    border-radius: 6px;
    background: var(--beige-panel);
    margin-bottom: 1rem;
}

.mc-bar.w-70 {
    width: 70%;
    background: var(--teal-core);
}

.mc-bar.w-40 {
    width: 40%;
}

.mc-bar.w-90 {
    width: 90%;
}

.mockup-card-float {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--forest-deep);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(13, 43, 38, 0.15);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-card-float .dot {
    margin: 0;
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
    border-top: 1px solid var(--beige-panel);
    border-bottom: 1px solid var(--beige-panel);
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    margin-top: 2rem;
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Problem Section */
.problem-points ul {
    margin-top: 4rem;
    font-size: 1.25rem;
}

.problem-points li {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--teal-core);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* Intro Section */
.pre-heading {
    font-weight: 700;
    color: var(--lime-pop);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.statement-text {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    color: var(--white);
    margin-top: 1.5rem;
    line-height: 1.3;
}

/* How It Works - Cards instead of arrows */
.flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

.flow-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(13, 43, 38, 0.04);
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.flow-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--beige-panel);
}

.flow-content h3 {
    margin-bottom: 0.5rem;
}

.flow-content p {
    color: var(--text-secondary);
}

/* Dashboard Preview Section */
.dashboard-text {
    padding-right: 2rem;
}

.accordion {
    margin-top: 3rem;
}

.accordion-item {
    border-bottom: 1px solid var(--beige-panel);
    padding: 1.5rem 0;
}

.accordion-title {
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--forest-deep);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-title::after {
    content: '+';
    color: var(--text-secondary);
    font-weight: 400;
}

.accordion-item.active .accordion-title::after {
    content: '−';
    color: var(--forest-deep);
}

.accordion-content {
    display: none;
    padding-top: 1rem;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

/* Soft Mockup */
.dashboard-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(13, 43, 38, 0.08);
    overflow: hidden;
    padding: 1rem;
}

.mockup-inner {
    background: var(--beige-light);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.m-widget {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.m-text {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
}

.m-text strong {
    color: var(--forest-deep);
    font-size: 1.125rem;
}

.m-text span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Features Section */
.feature-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(13, 43, 38, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 43, 38, 0.08);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Override text color in .bg-dark context for feature cards */
.bg-dark .feature-card h3 {
    color: var(--forest-deep);
}

.bg-dark .feature-card p {
    color: var(--text-secondary);
}

/* Use Cases */
.use-cases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.use-case-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: left;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--forest-deep);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
}

.use-case-item::before {
    content: '→';
    color: var(--teal-core);
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

/* Team Section */
.team-card {
    background: var(--beige-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.team-photo {
    width: 140px;
    height: 140px;
    background-color: var(--beige-panel);
    border-radius: var(--radius-pill);
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--forest-deep);
}

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

.cta-box {
    background: var(--forest-deep);
    padding: 6rem 3rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(13, 43, 38, 0.15);
}

.cta-box h2 {
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--forest-deep);
    color: var(--white);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand-img {
    height: 48px;
    filter: brightness(0) invert(1);
    /* Ensure logo stands out on dark mode */
}

.footer-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 400px;
    color: var(--beige-panel);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .dashboard-visual {
        order: -1;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .huge-text {
        font-size: 2.5rem;
    }

    .mockup-card-float {
        left: 0;
        bottom: -20px;
        width: 100%;
        justify-content: center;
    }
}