/* FlexFly Brand System - CSS */
:root {
    /* -- Core palette -- */
    --ff-ink: #1a1a2e;
    --ff-charcoal: #2d2d44;
    --ff-blue: #6c5ce7;
    --ff-blue-light: #857eff;
    --ff-blue-wash: #f6f5ff;
    --ff-teal: #2ed8a3;
    --ff-teal-wash: #f0fdf9;

    /* -- Neutrals -- */
    --ff-white: #ffffff;
    --ff-snow: #fafafa;
    --ff-cloud: #f4f4f5;
    --ff-silver: #e4e4e7;
    --ff-stone: #71717a;
    --ff-slate: #3f3f46;

    /* -- Functional -- */
    --ff-error: #ef4444;
    --ff-warning: #f59e0b;
    --ff-info: #3b82f6;

    /* -- Shadows -- */
    --ff-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ff-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ff-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --ff-shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);

    /* -- Radius -- */
    --ff-radius-sm: 6px;
    --ff-radius-md: 10px;
    --ff-radius-lg: 16px;
    --ff-radius-xl: 24px;

    /* -- Transitions -- */
    --ff-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ff-duration: 200ms;

    /* -- Typography -- */
    --ff-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

body {
    font-family: var(--ff-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ff-ink);
    background: var(--ff-snow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Scale */
.display {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

h1, .h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h2, .h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h3, .h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.body {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
}

.body-large {
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.7;
}

.small {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.overline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.mono {
    font-family: var(--ff-font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ff-silver);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ff-slate);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--ff-radius-sm);
    transition: all var(--ff-duration) var(--ff-ease);
}

.nav-links a:hover {
    color: var(--ff-ink);
    background: var(--ff-cloud);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ff-radius-md);
    font-family: var(--ff-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ff-duration) var(--ff-ease);
    border: none;
}

.btn-primary {
    background: var(--ff-blue);
    color: white;
    box-shadow: 0 1px 2px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    background: var(--ff-blue-light);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ff-blue);
    border: 1.5px solid var(--ff-silver);
    padding: 11px 23px;
}

.btn-secondary:hover {
    border-color: var(--ff-blue);
    background: var(--ff-blue-wash);
}

.btn-ghost {
    background: transparent;
    color: var(--ff-slate);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--ff-blue);
    background: var(--ff-cloud);
}

.btn-nav {
    background: var(--ff-blue);
    color: white;
    padding: 8px 18px;
    border-radius: var(--ff-radius-sm);
    font-size: 0.875rem;
}

.btn-nav:hover {
    background: var(--ff-blue-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--ff-radius-lg);
}

/* Hero Section */
.hero {
    background: var(--ff-ink);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 191, 138, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-overline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-teal);
    margin-bottom: 16px;
    font-family: var(--ff-font-mono);
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    box-shadow: 0 0 24px rgba(108, 92, 231, 0.3);
}

.hero .btn-secondary {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero .btn-secondary:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Agent Dashboard Mock */
.hero-visual {
    perspective: 1000px;
}

.agent-dashboard {
    background: var(--ff-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--ff-radius-lg);
    padding: 24px;
    transform: rotateY(-4deg) rotateX(2deg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-teal);
    box-shadow: 0 0 8px rgba(10, 191, 138, 0.5);
    animation: pulse 2s ease infinite;
}

.dash-title {
    font-family: var(--ff-font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.dash-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-row:last-child {
    border-bottom: none;
}

.dash-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.dash-value {
    font-family: var(--ff-font-mono);
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
}

.dash-row.highlight .dash-value {
    color: var(--ff-teal);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Social Proof Strip */
.proof-strip {
    padding: 32px 0;
    background: var(--ff-white);
    border-bottom: 1px solid var(--ff-silver);
}

.proof-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ff-stone);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.proof-stat .number {
    font-family: var(--ff-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ff-ink);
}

.proof-stat .label {
    font-size: 0.8125rem;
    color: var(--ff-stone);
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-light {
    background: var(--ff-white);
}

.section-alt {
    background: var(--ff-cloud);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-overline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-blue);
    margin-bottom: 12px;
    font-family: var(--ff-font-mono);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--ff-ink);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--ff-stone);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--ff-white);
    border: 1px solid var(--ff-silver);
    border-radius: var(--ff-radius-lg);
    padding: 32px;
    transition: all var(--ff-duration) var(--ff-ease);
    cursor: pointer;
    position: relative;
}

.feature-card:hover {
    border-color: var(--ff-blue);
    box-shadow: var(--ff-shadow-md);
    transform: translateY(-2px);
}

.feature-card:focus {
    outline: 2px solid var(--ff-blue);
    outline-offset: 2px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ff-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--ff-blue-wash);
    color: var(--ff-blue);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ff-ink);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--ff-stone);
    line-height: 1.65;
}

.feature-more {
    display: block;
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ff-blue);
    opacity: 0;
    transition: opacity var(--ff-duration) var(--ff-ease);
}

.feature-card:hover .feature-more {
    opacity: 1;
}

/* Feature Modal */
.feature-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ff-ease);
}

.feature-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.feature-modal {
    background: var(--ff-white);
    border-radius: var(--ff-radius-xl);
    padding: 48px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: var(--ff-shadow-lg);
    transform: translateY(20px) scale(0.96);
    transition: transform 300ms var(--ff-ease);
}

.feature-modal-overlay.active .feature-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--ff-cloud);
    color: var(--ff-slate);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ff-duration) var(--ff-ease);
}

.modal-close:hover {
    background: var(--ff-silver);
    color: var(--ff-ink);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ff-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--ff-blue-wash);
    color: var(--ff-blue);
}

.feature-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ff-ink);
}

.modal-body {
    font-size: 0.9375rem;
    color: var(--ff-stone);
    line-height: 1.75;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--ff-ink);
    font-weight: 600;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.modal-body ul li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-teal);
}

/* Empowerment Grid */
.empowerment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.empower-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--ff-radius-lg);
    background: var(--ff-white);
    border: 1px solid var(--ff-silver);
}

.empower-number {
    font-family: var(--ff-font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ff-blue);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.empower-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ff-ink);
}

.empower-card p {
    font-size: 0.9375rem;
    color: var(--ff-stone);
    line-height: 1.65;
}

/* Reviews Showcase */
.reviews-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.review-platform {
    background: var(--ff-snow);
    border: 1px solid var(--ff-silver);
    border-radius: var(--ff-radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--ff-duration) var(--ff-ease);
}

.review-platform:hover {
    border-color: var(--ff-warning);
    box-shadow: var(--ff-shadow-md);
    transform: translateY(-2px);
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.review-score {
    font-family: var(--ff-font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ff-ink);
    margin-bottom: 4px;
}

.review-platform-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ff-stone);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.review-quote {
    font-size: 0.9375rem;
    color: var(--ff-slate);
    line-height: 1.65;
    font-style: italic;
}

.reviews-footnote {
    text-align: center;
    color: var(--ff-stone);
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--ff-silver);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 20px;
    background: var(--ff-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ff-ink);
}

.step p {
    font-size: 0.875rem;
    color: var(--ff-stone);
    line-height: 1.6;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--ff-white);
    border: 1px solid var(--ff-silver);
    border-radius: var(--ff-radius-xl);
    padding: 40px 32px;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--ff-blue);
    box-shadow: var(--ff-shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ff-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ff-ink);
}

.pricing-card .small {
    color: var(--ff-stone);
    margin-bottom: 16px;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ff-ink);
    font-family: var(--ff-font-mono);
    margin-bottom: 24px;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ff-stone);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-cloud);
    font-size: 0.9375rem;
    color: var(--ff-slate);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ff-teal);
}

/* CTA Section */
.cta-section {
    background: var(--ff-ink);
    color: white;
}

.cta-section .section-overline {
    color: var(--ff-teal);
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    box-shadow: 0 0 24px rgba(108, 92, 231, 0.3);
}

/* Footer */
.footer {
    background: var(--ff-ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .small {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.link-group h4 {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 4px 0;
    transition: color var(--ff-duration) var(--ff-ease);
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
}

.footer-bottom .small {
    color: rgba(255, 255, 255, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .nav-links {
        display: none;
    }

    .features-grid,
    .empowerment-grid,
    .reviews-showcase {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-grid::before {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .feature-modal {
        padding: 32px 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-showcase .review-platform:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }
}
