/*
 * Fuelwise - Railway-inspired Dark Mode Styles
 * Based on Railway.com design palette
 * Use site-wide for dark mode theming
 */

/* Mona Sans Variable Font */
@font-face {
    font-family: 'Mona Sans';
    src: url('/fonts/MonaSans-Variable.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Railway's actual palette from inspection */
    --ff-bg: #13111C;
    --ff-card-1: #313C3C;  /* Teal-ish - hero/logos */
    --ff-card-2: #1B2132;  /* Dark blue */
    --ff-card-3: #1F2B2E;  /* Dark teal */
    --ff-card-4: #251823;  /* Dark purple/maroon */
    --ff-border: rgba(255, 255, 255, 0.08);
    --ff-border-hover: rgba(255, 255, 255, 0.15);
    --ff-text: #FAFAFA;
    --ff-text-muted: #C4C4CC;  /* Improved contrast - 7.5:1 on dark bg */
    --ff-text-subtle: #9E9EA8;  /* Improved contrast - 5.2:1 on dark bg */
    --ff-success: #22C55E;
    --ff-danger: #EF4444;
}

* {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--ff-bg);
    color: var(--ff-text);
    overflow-x: hidden;
}

/* Body padding for fixed header on subpages */
body.ff-body {
    padding-top: 56px;
}

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

/* Generic Card - used on subpages */
.ff-card {
    background: var(--ff-card-3);
    border: 1px solid var(--ff-border);
    position: relative;
}

.ff-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    border-radius: 24px 24px 0 0;
}

.ff-card-highlight {
    background: var(--ff-card-1);
}

/* Tertiary background for nested elements */
.ff-bg-tertiary {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ff-border);
}

/* Pill filter buttons */
.ff-pill-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ff-border);
    color: var(--ff-text-muted);
}

.ff-pill-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ff-success);
    color: var(--ff-success);
}

.ff-pill-filter.active {
    background: var(--ff-success) !important;
    border-color: var(--ff-success) !important;
    color: white !important;
}

/* Danger variant for dearest page */
.ff-pill-filter.ff-pill-danger:hover {
    border-color: var(--ff-danger);
    color: var(--ff-danger);
}

.ff-pill-filter.ff-pill-danger.active {
    background: var(--ff-danger) !important;
    border-color: var(--ff-danger) !important;
}

/* Rank badges */
.ff-rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

.ff-rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.ff-rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Warning banner */
.ff-warning-banner {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.ff-warning-banner a {
    color: #fbbf24;
    font-weight: 600;
}

/* Loading spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ff-spinner {
    animation: spin 1s linear infinite;
}

/* ============================================
   Section Cards - Railway style
   ============================================ */
.ff-section-card {
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 1.5rem;
}

.ff-card-teal { background: var(--ff-card-1); }
.ff-card-blue { background: var(--ff-card-2); }
.ff-card-dark-teal { background: var(--ff-card-3); }
.ff-card-purple { background: var(--ff-card-4); }

/* Subtle glow effects */
.ff-glow {
    position: relative;
}

.ff-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ============================================
   Navigation - Railway style
   ============================================ */
.ff-nav {
    background: rgba(19, 17, 28, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ff-border);
}

.ff-nav .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ff-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ff-nav .nav-link {
    color: var(--ff-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    transition: color 0.15s ease;
}

.ff-nav .nav-link:hover {
    color: var(--ff-text);
}

/* Fixed Header Component - Bootstrap Navbar */
.ff-header {
    background: rgba(19, 17, 28, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ff-border);
}

.ff-header .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.ff-header .nav-link {
    color: var(--ff-text-muted) !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.ff-header .nav-link:hover,
.ff-header .nav-link.active {
    color: var(--ff-text) !important;
}

.ff-header .navbar-toggler {
    border-color: var(--ff-border);
}

.ff-header .navbar-toggler:focus {
    box-shadow: none;
}

.ff-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ff-text);
    text-decoration: none;
}

.ff-logo:hover {
    color: var(--ff-text);
}

.ff-logo i {
    color: var(--ff-text);
    font-size: 1.5rem;
}

/* Buttons */
.ff-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--ff-text);
    color: var(--ff-bg);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ff-btn-primary:hover {
    background: #E4E4E7;
    color: var(--ff-bg);
    transform: translateY(-1px);
}

.ff-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ff-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ff-border-hover);
    color: var(--ff-text);
}

/* Footer */
.ff-footer {
    background: var(--ff-bg);
    border-top: 1px solid var(--ff-border);
}

.ff-footer-link {
    color: var(--ff-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ff-footer-link:hover {
    color: var(--ff-text);
}

/* Text utilities */
.ff-text-muted {
    color: var(--ff-text-muted);
}

/* ============================================
   Hero Section
   ============================================ */
.ff-hero {
    padding: 5rem 0 0;
    position: relative;
}

.ff-hero-card {
    background: #313C3C;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
}

/* Background image with overlay */
.ff-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg-train-dusk.avif') center center / cover no-repeat;
    z-index: 0;
}

/* Dark tinted overlay on top of image */
.ff-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19, 17, 28, 0.65);
}

/* Gradient fade to solid color at bottom */
.ff-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(49, 60, 60, 0.5) 65%,
        rgba(49, 60, 60, 0.85) 80%,
        #313C3C 95%
    );
    z-index: 1;
}

.ff-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem 0;
}

.ff-hero-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.ff-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    z-index: 3;
}

.ff-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--ff-text);
}

.ff-hero-subtitle {
    font-size: 1.125rem;
    color: var(--ff-text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ============================================
   Badges
   ============================================ */
.ff-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--ff-text-muted);
    margin-bottom: 1.5rem;
}

.ff-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--ff-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================
   Buttons - Railway style
   ============================================ */
.ff-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--ff-text);
    color: var(--ff-bg);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ff-btn-primary:hover {
    background: #E4E4E7;
    color: var(--ff-bg);
    transform: translateY(-1px);
}

.ff-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ff-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ff-border-hover);
    color: var(--ff-text);
}

/* ============================================
   Price Display Card
   ============================================ */
.ff-price-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
}

.ff-price-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ff-text-muted);
    margin-bottom: 0.375rem;
}

.ff-price-value {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ff-text);
}

.ff-price-unit {
    font-size: 1rem;
    color: var(--ff-text-muted);
    font-weight: 400;
}

.ff-price-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.ff-price-down {
    color: var(--ff-success);
    background: rgba(34, 197, 94, 0.15);
}

.ff-price-up {
    color: var(--ff-danger);
    background: rgba(239, 68, 68, 0.15);
}

/* ============================================
   Logos Bar
   ============================================ */
.ff-logos-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #313C3C;
}

.ff-logos-bar span {
    color: var(--ff-text-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ff-logos-bar span:hover {
    opacity: 1;
}

/* ============================================
   Transition Image
   ============================================ */
.ff-transition {
    width: 100%;
    height: auto;
    display: block;
    margin: -1px 0;
}

.ff-transition img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Stats Section - Dark Blue Card
   ============================================ */
.ff-stats {
    padding: 3rem 0;
}

.ff-stats-card {
    background: var(--ff-card-2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.ff-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

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

.ff-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ff-text);
}

.ff-stat-label {
    color: var(--ff-text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ============================================
   Quote Section - No Card
   ============================================ */
.ff-quote {
    background: transparent;
}

.ff-quote-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ff-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.ff-quote-text strong {
    color: var(--ff-text);
    font-weight: 600;
}

.ff-quote-source {
    font-size: 0.875rem;
}

/* ============================================
   Features Section - Dark Teal Card
   ============================================ */
.ff-features {
    padding: 1.5rem 0;
}

.ff-features-card {
    background: var(--ff-card-3);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.ff-features-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ff-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-text-muted);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.ff-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--ff-text);
}

.ff-section-subtitle {
    font-size: 1rem;
    color: var(--ff-text-muted);
    max-width: 500px;
}

.ff-feature-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.15s ease;
}

.ff-feature-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.ff-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--ff-text);
}

.ff-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ff-text);
}

.ff-feature-desc {
    color: var(--ff-text-muted);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* ============================================
   Brands Section - Purple Card
   ============================================ */
.ff-brands {
    padding: 1.5rem 0;
}

.ff-brands-card {
    background: var(--ff-card-4);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.ff-brands-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ff-brand-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    transition: all 0.15s ease;
}

.ff-brand-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.ff-brand-item span {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--ff-text-muted);
    font-weight: 600;
}

/* ============================================
   CTA Section - Dark Blue Card
   ============================================ */
.ff-cta {
    padding: 1.5rem 0 3rem;
}

.ff-cta-card {
    background: var(--ff-card-2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.ff-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ff-cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ff-text);
}

.ff-cta-subtitle {
    color: var(--ff-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */
.ff-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--ff-border);
}

.ff-footer-text {
    color: var(--ff-text-subtle);
    font-size: 0.8rem;
}

.ff-footer-link {
    color: var(--ff-text-subtle);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.ff-footer-link:hover {
    color: var(--ff-text);
}

/* ============================================
   Animations
   ============================================ */
.ff-fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.ff-fade-in-delay-1 { animation-delay: 0.1s; }
.ff-fade-in-delay-2 { animation-delay: 0.2s; }
.ff-fade-in-delay-3 { animation-delay: 0.3s; }
.ff-fade-in-delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Hero Glow - New Design with Grid & Effects
   ============================================ */
.hero-glow {
    background: var(--ff-bg);
    color: #fff;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Gradient mesh background using Railway palette */
.hero-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(34, 197, 94, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(49, 60, 60, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(31, 43, 46, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(37, 24, 35, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle grid pattern with fade */
.hero-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
}

/* Bottom fade overlay */
.hero-glow-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--ff-bg) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow .container-xxl,
.hero-glow .container {
    position: relative;
    z-index: 1;
}

/* Hero glow variant for danger (dearest page) */
.hero-glow.hero-glow-danger::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(239, 68, 68, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(49, 60, 60, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(31, 43, 46, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(37, 24, 35, 0.4) 0%, transparent 50%);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--ff-text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-success);
}

.hero-tag-dot.danger {
    background: var(--ff-danger);
}

.hero-mega-title {
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-mega-title .highlight {
    background: linear-gradient(135deg, var(--ff-success), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-mega-title .highlight-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-intro {
    color: var(--ff-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* ============================================
   Full-width CTA Section
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--ff-bg);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(34, 197, 94, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(49, 60, 60, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container-xxl,
.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--ff-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--ff-success), #10b981);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
    color: #fff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.9375rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ============================================
   Modern Footer
   ============================================ */
.footer {
    background: var(--ff-bg);
    color: var(--ff-text-muted);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .footer-brand,
.footer .footer-heading {
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links li {
    margin-bottom: 0.25rem;
}

.footer .footer-links a {
    color: var(--ff-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.375rem 0;
    transition: color 0.2s ease;
}

.footer .footer-links a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.footer .footer-links a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;  /* Lighter gray for better contrast - WCAG AA compliant */
}

.footer .footer-bottom a {
    color: var(--ff-success);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer .footer-bottom a:hover {
    color: #10b981;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767.98px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ff-hero {
        padding: 5rem 0 0;
    }

    .ff-hero-card {
        min-height: calc(100vh - 6rem);
    }

    .ff-hero-content {
        padding: 2rem 1.5rem 0;
    }
    
    .ff-price-card {
        margin-top: 2rem;
    }

    .ff-stats-card,
    .ff-features-card,
    .ff-brands-card,
    .ff-cta-card {
        padding: 2rem 1.25rem;
    }

    .ff-logos-bar {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        padding: 1.5rem;
    }

    .ff-logos-bar span {
        font-size: 0.6rem;
    }
}
