/**
 * CFIN Landing Page - Premium Dark Theme
 * Matching Project Amber's design language
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
    --bg-main: rgb(28, 28, 30);
    --bg-panel: rgb(44, 44, 46);
    --bg-elevated: rgb(50, 50, 52);
    --bg-card: rgba(44, 44, 46, 0.8);

    --text-main: rgb(255, 255, 255);
    --text-sub: rgb(152, 152, 157);
    --text-dim: rgb(99, 99, 102);

    --profit: rgb(52, 199, 89);
    --profit-bg: rgba(52, 199, 89, 0.15);
    --loss: rgb(255, 69, 58);
    --loss-bg: rgba(255, 69, 58, 0.15);
    --accent: rgb(10, 132, 255);
    --accent-bg: rgba(10, 132, 255, 0.15);
    --purple: rgb(191, 90, 242);
    --purple-bg: rgba(191, 90, 242, 0.15);
    --teal: rgb(90, 200, 250);
    --teal-bg: rgba(90, 200, 250, 0.15);
    --orange: rgb(255, 149, 0);
    --amber: rgb(255, 159, 10);
    --amber-bg: rgba(255, 159, 10, 0.15);
    --amber-gradient: linear-gradient(135deg, #0A84FF 0%, #BF5AF2 100%);

    --border: rgba(99, 99, 102, 0.3);
    --border-light: rgba(255, 255, 255, 0.1);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(52, 199, 89, 0.3);

    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================================================
   Background Effects
   ============================================================================ */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.25) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ============================================================================
   Navigation
   ============================================================================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: var(--transition);
}

.nav-header.scrolled {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.nav-logo:hover .logo-text {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--profit);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--profit);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--profit);
    transition: var(--transition);
}

.nav-cta:hover {
    background: rgba(52, 199, 89, 0.2);
    border-color: var(--profit);
    transform: translateY(-2px);
}

.nav-cta svg {
    transition: var(--transition);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--profit);
    margin-bottom: 32px;
}

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

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--accent), var(--profit));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.hero-title:hover .gradient-text {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--profit) 0%, rgb(40, 180, 75) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 199, 89, 0.5);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* Floating Cards */
.hero-cards {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 300px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    padding: 24px 32px;
    background: rgba(44, 44, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.floating-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(52, 199, 89, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.floating-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    font-feature-settings: 'tnum' 1;
}

.card-value.profit { color: var(--profit); }
.card-value.loss { color: var(--loss); }

.card-period {
    font-size: 13px;
    color: var(--text-sub);
}

.card-1 {
    top: 20px;
    left: 5%;
    animation: floatCard1 8s ease-in-out infinite;
}

.card-2 {
    top: 60px;
    right: 10%;
    animation: floatCard2 9s ease-in-out infinite;
}

.card-3 {
    bottom: 40px;
    left: 25%;
    animation: floatCard3 7s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-15px) rotateX(8deg) rotateY(-8deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotateX(-5deg) rotateY(5deg); }
    50% { transform: translateY(-20px) rotateX(-8deg) rotateY(8deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(3deg); }
    50% { transform: translateY(-12px) rotateX(6deg) rotateY(6deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 12px;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--profit), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================================
   Sections
   ============================================================================ */
.section {
    padding: 120px 40px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(90, 200, 250, 0.15) 100%);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #34C759;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   Stats Grid
   ============================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: rgba(44, 44, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.stat-icon.profit-bg { background: var(--profit-bg); color: var(--profit); }
.stat-icon.accent-bg { background: var(--accent-bg); color: var(--accent); }
.stat-icon.purple-bg { background: var(--purple-bg); color: var(--purple); }
.stat-icon.teal-bg { background: var(--teal-bg); color: var(--teal); }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-feature-settings: 'tnum' 1;
}

.stat-value.profit { color: var(--profit); }

.stat-label {
    font-size: 14px;
    color: var(--text-sub);
}

/* ============================================================================
   Chart Preview
   ============================================================================ */
.chart-preview {
    background: rgba(44, 44, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-dim);
}

.chart-balance {
    font-size: 24px;
    font-weight: 700;
    color: var(--profit);
}

.chart-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--profit);
    background: var(--profit-bg);
    padding: 4px 10px;
    border-radius: 12px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--profit);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0); }
}

.chart-container {
    display: flex;
    gap: 12px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    padding: 4px 0;
    min-width: 50px;
    text-align: right;
}

.chart-visual {
    position: relative;
    flex: 1;
    height: 180px;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.grid-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 10%, var(--border-light) 90%, transparent);
    opacity: 0.5;
}

.equity-line {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.equity-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2.5s ease-out forwards;
}

.equity-area {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.8s forwards;
}

.equity-dot {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.2s forwards, glowPulse 2s ease-in-out 2.7s infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgb(52, 199, 89)); }
    50% { filter: drop-shadow(0 0 10px rgb(52, 199, 89)) drop-shadow(0 0 20px rgba(52, 199, 89, 0.3)); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0 62px;
    font-size: 11px;
    color: var(--text-dim);
}

/* ============================================================================
   Monthly Returns Chart
   ============================================================================ */
.monthly-returns-chart {
    margin-top: 40px;
    background: rgba(44, 44, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.monthly-returns-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0;
    border-bottom: none;
}

.avg-return-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 100px;
}

.avg-return-badge .avg-label {
    font-size: 12px;
    color: var(--text-sub);
}

.avg-return-badge .avg-value {
    font-size: 16px;
    font-weight: 700;
}

.monthly-bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    gap: 12px;
    padding: 0 10px;
}

.monthly-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 80px;
}

.monthly-bar .bar-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.monthly-bar .bar {
    width: 100%;
    max-width: 50px;
    border-radius: 8px 8px 4px 4px;
    transition: all 0.3s ease;
    position: relative;
}

.monthly-bar .bar.profit {
    background: linear-gradient(180deg, #34C759 0%, #2AAE4A 100%);
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.monthly-bar .bar.loss {
    background: linear-gradient(180deg, #FF453A 0%, #D93830 100%);
    box-shadow: 0 4px 20px rgba(255, 69, 58, 0.3);
}

.monthly-bar:hover .bar {
    transform: scaleY(1.02);
    box-shadow: 0 6px 25px rgba(52, 199, 89, 0.4);
}

.monthly-bar .bar-value {
    font-size: 14px;
    font-weight: 700;
    font-feature-settings: 'tnum' 1;
}

.monthly-bar .bar-value.profit {
    color: var(--profit);
}

.monthly-bar .bar-value.loss {
    color: var(--loss);
}

.monthly-bar .bar-label {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

.monthly-bar.current .bar-label {
    color: var(--text-main);
}

.current-tag {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #34C759 0%, #5AC8FA 100%);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    margin-left: 4px;
}

.monthly-bar.current .bar {
    background: linear-gradient(180deg, #34C759 0%, #5AC8FA 100%);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3); }
    50% { box-shadow: 0 6px 30px rgba(52, 199, 89, 0.5); }
}

/* Responsive adjustments for monthly chart */
@media (max-width: 768px) {
    .monthly-bars-container {
        height: 160px;
    }

    .monthly-bar .bar-wrapper {
        height: 120px;
    }

    .monthly-bar .bar-value {
        font-size: 12px;
    }

    .monthly-bar .bar-label {
        font-size: 11px;
    }

    .avg-return-badge {
        padding: 6px 12px;
    }

    .avg-return-badge .avg-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .monthly-bars-container {
        gap: 8px;
        padding: 0;
    }

    .monthly-bar .bar {
        max-width: 40px;
    }

    .current-tag {
        display: none;
    }
}

/* ============================================================================
   Technology Grid
   ============================================================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    padding: 32px;
    background: rgba(44, 44, 46, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.tech-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--profit-bg), var(--accent-bg));
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--profit);
}

.tech-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ============================================================================
   Pricing Section
   ============================================================================ */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.pricing-calculator {
    position: relative;
    background: rgba(44, 44, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    overflow: hidden;
}

.calculator-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.calculator-header {
    text-align: center;
    margin-bottom: 32px;
}

.calculator-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.calculator-header p {
    font-size: 14px;
    color: var(--text-sub);
}

.calculator-body {
    margin-bottom: 32px;
}

.slider-container {
    margin-bottom: 32px;
}

.slider-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.slider-value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.slider-value-display .currency {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-sub);
}

.slider-input {
    width: 140px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
}

.slider-input::-webkit-outer-spin-button,
.slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-input:focus {
    outline: none;
}

.price-slider {
    width: 100%;
    height: 8px;
    background: var(--bg-panel);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #34C759 0%, #30B350 100%);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
    transition: transform 0.2s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #34C759 0%, #30B350 100%);
    border-radius: 50%;
    border: none;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.price-result {
    background: var(--bg-panel);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.price-breakdown {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.breakdown-label {
    font-size: 14px;
    color: var(--text-sub);
}

.breakdown-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.breakdown-value.profit {
    color: var(--profit);
}

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

.total-label {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.total-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.amount-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--profit);
}

.amount-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--profit);
    line-height: 1;
}

.amount-period {
    font-size: 16px;
    color: var(--text-sub);
}

.price-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.price-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.calculator-cta {
    width: 100%;
    justify-content: center;
}

/* Pricing Features */
.pricing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pricing-features .feature-card {
    background: rgba(44, 44, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition);
}

.pricing-features .feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--profit);
}

.pricing-features .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pricing-features .feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pricing-features .feature-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ============================================================================
   About Section
   ============================================================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-main);
}

.feature svg {
    color: var(--profit);
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(44, 44, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    animation: floatCard2 8s ease-in-out infinite;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, rgba(191, 90, 242, 0.1) 40%, transparent 60%);
    pointer-events: none;
}

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

.visual-label {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

/* ============================================================================
   Project Amber Branding - Animated Gradient (matches trade.cfin.be nav)
   ============================================================================ */

/* Animated gradient keyframes */
@keyframes gradientShiftSlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradientShiftFast {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Project Amber text - animated gradient */
.project-amber-text {
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.project-amber-text:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* Large PA logo box */
.logo-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.visual-card:hover .logo-large {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 40px rgba(10, 132, 255, 0.4), 0 0 0 2px rgba(191, 90, 242, 0.3);
}

/* Amber label under logo */
.visual-label.amber-label {
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.visual-card:hover .visual-label.amber-label {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* Section title with Project Amber class */
.section-title.project-amber-text {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
}

/* CFIN brand text - green/teal animated gradient */
.cfin-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.cfin-text:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* ============================================================================
   CTA Section
   ============================================================================ */
.cta-section {
    text-align: center;
    padding: 100px 40px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 32px;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    background: rgba(20, 20, 22, 0.8);
    border-top: 1px solid var(--border-light);
    padding: 60px 40px 40px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.footer-logo:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-sub);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-dim);
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) {
    .hero-cards {
        height: 400px;
    }

    .card-1 { left: 10%; top: 10px; }
    .card-2 { right: 5%; top: 130px; }
    .card-3 { left: 15%; bottom: 10px; }

    .pricing-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .visual-card {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-header {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-cards {
        height: 320px;
    }

    .floating-card {
        padding: 20px 24px;
    }

    .card-value {
        font-size: 26px;
    }

    .card-1 { left: 5%; top: 0; }
    .card-2 { right: 5%; top: 110px; }
    .card-3 { left: 20%; bottom: 0; }

    .section {
        padding: 80px 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

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

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

    .pricing-calculator {
        padding: 28px;
    }

    .amount-value {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-cards {
        height: 280px;
    }

    .floating-card {
        padding: 16px 20px;
    }

    .card-value {
        font-size: 22px;
    }

    .card-label, .card-period {
        font-size: 11px;
    }

    .card-1 { left: 2%; top: 0; }
    .card-2 { right: 2%; top: 90px; }
    .card-3 { left: 10%; bottom: 0; }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================================================
   Parallax & 3D Effect Classes (controlled via JS)
   ============================================================================ */
[data-parallax] {
    transition: transform 0.1s linear;
}

[data-parallax-3d] {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

/* ============================================================================
   FAQ Section - Premium Design
   ============================================================================ */
.faq-section {
    padding: 140px 0;
    background: linear-gradient(180deg,
        var(--bg-main) 0%,
        rgba(44, 44, 46, 0.5) 30%,
        rgba(52, 199, 89, 0.03) 50%,
        rgba(44, 44, 46, 0.5) 70%,
        var(--bg-main) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.faq-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: faq-pulse 8s ease-in-out infinite;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes faq-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}

.section-header-centered {
    text-align: center;
    margin-bottom: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 70px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    align-items: start; /* Prevent items from stretching to match row height */
}

.faq-item {
    background: linear-gradient(135deg,
        rgba(44, 44, 46, 0.6) 0%,
        rgba(50, 50, 52, 0.4) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    position: relative;
}

/* Hover glow effect */
.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(52, 199, 89, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    border-color: rgba(52, 199, 89, 0.3);
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(52, 199, 89, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    border-color: var(--profit);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(52, 199, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg,
        rgba(44, 44, 46, 0.8) 0%,
        rgba(52, 199, 89, 0.05) 100%
    );
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 32px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(52, 199, 89, 0.2) 0%,
        rgba(90, 200, 250, 0.15) 100%
    );
    border-radius: 12px;
    color: var(--profit);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.1);
}

.faq-item:hover .faq-question-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.2);
}

.faq-item.active .faq-question-icon {
    background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.4);
}

.faq-question-text {
    flex: 1;
    padding-top: 8px;
    letter-spacing: -0.01em;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-dim);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 9px;
}

.faq-item:hover .faq-icon {
    color: var(--text-sub);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--profit);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 32px 28px 92px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.faq-answer-content a {
    color: var(--profit);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.faq-answer-content a:hover {
    border-bottom-color: var(--profit);
}

.faq-answer-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* FAQ CTA Box */
.faq-cta {
    text-align: center;
    margin-top: 80px;
    padding: 50px 40px;
    background: linear-gradient(135deg,
        rgba(44, 44, 46, 0.6) 0%,
        rgba(52, 199, 89, 0.05) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: var(--radius-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(52, 199, 89, 0.5) 50%,
        transparent 100%
    );
}

.faq-cta-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-cta-text {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.faq-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.faq-cta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(52, 199, 89, 0.4);
}

.faq-cta-link svg {
    transition: transform 0.3s ease;
}

.faq-cta-link:hover svg {
    transform: translateX(4px);
}

/* FAQ Responsive */
@media (max-width: 1024px) {
    .faq-grid {
        gap: 20px;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 100px 0;
    }

    .faq-section::before {
        width: 400px;
        height: 400px;
    }

    .faq-grid {
        margin-top: 50px;
    }

    .faq-question {
        padding: 22px 20px;
        font-size: 14px;
        gap: 14px;
    }

    .faq-question-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .faq-question-icon svg {
        width: 16px;
        height: 16px;
    }

    .faq-question-text {
        padding-top: 6px;
    }

    .faq-answer-content {
        padding: 0 20px 22px 70px;
        font-size: 13px;
        line-height: 1.8;
    }

    .faq-cta {
        padding: 36px 24px;
        margin-top: 50px;
    }

    .faq-cta-title {
        font-size: 18px;
    }

    .faq-cta-text {
        font-size: 14px;
    }
}
