/* ============================================
   FINARISEN LANDING PAGE — Design System
   Premium finance app landing page styles
   ============================================ */

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

:root {
    /* Brand Colors */
    --brand-primary: #4361b5;
    --brand-primary-light: #5a7de8;
    --brand-primary-dark: #2d4494;
    --brand-accent: #6c5ce7;
    --brand-accent-light: #a29bfe;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #151b3d 30%, #1a2550 60%, #0f1429 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-cta: linear-gradient(135deg, #4361b5 0%, #6c5ce7 50%, #5a7de8 100%);
    --gradient-cta-hover: linear-gradient(135deg, #5a7de8 0%, #7c6ef7 50%, #6a8df8 100%);
    --gradient-ai: linear-gradient(135deg, #6c5ce7 0%, #e040fb 100%);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fc;
    --gray-100: #f1f3f8;
    --gray-200: #e2e6ef;
    --gray-300: #c5cbd9;
    --gray-400: #8892a8;
    --gray-500: #6b7280;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #0d1117;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 0 40px rgba(67, 97, 181, 0.3);

    /* Transition */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ── Typography ─────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ── Container ──────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ── Navbar ──────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.navbar-brand span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-links a:hover {
    color: var(--white);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary-light);
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-cta {
    padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
    background: var(--gradient-cta) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(67, 97, 181, 0.4);
}

.navbar-cta::after {
    display: none !important;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ── Hero Section ────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(67, 97, 181, 0.15) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -30px) scale(1.1);
    }
}

/* Floating grid dots */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(67, 97, 181, 0.15);
    border: 1px solid rgba(67, 97, 181, 0.25);
    color: var(--brand-primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #5a7de8, #a29bfe, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(67, 97, 181, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(67, 97, 181, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

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

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ── Features Section ────────────────────── */
.features {
    padding: var(--section-padding);
    background: var(--gray-50);
    position: relative;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.feature-icon.purple {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ── OCR / Smart Receipt Scanner Section ─── */
.ocr-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 30%, #fde68a20 60%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.ocr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ocr-text {
    max-width: 540px;
}

.ocr-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.ocr-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.06);
    transition: all var(--transition-normal);
}

.ocr-step:hover {
    transform: translateX(6px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.ocr-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ocr-step-content strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.ocr-step-content span {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* OCR Visual / Mockup */
.ocr-visual {
    display: flex;
    justify-content: center;
}

.ocr-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ocr-receipt {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 260px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.ocr-receipt-header {
    text-align: center;
    margin-bottom: 8px;
}

.ocr-receipt-store {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-800);
    letter-spacing: 1px;
}

.ocr-receipt-date {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 2px;
}

.ocr-receipt-divider {
    border-top: 1px dashed var(--gray-300);
    margin: 10px 0;
}

.ocr-receipt-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ocr-receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ocr-item-name {
    font-size: 11px;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.ocr-item-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-800);
    flex-shrink: 0;
    white-space: nowrap;
}

.ocr-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900);
}

.ocr-total-price {
    color: var(--brand-primary);
}

/* Scan line animation */
.ocr-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, #f59e0b, transparent);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    animation: ocrScan 2.5s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes ocrScan {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* Arrow between receipt and account */
.ocr-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--brand-primary);
    animation: ocrPulse 2s ease-in-out infinite;
}

.ocr-arrow svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-primary);
}

.ocr-arrow-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
    background: rgba(67, 97, 181, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

@keyframes ocrPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* Account result panel */
.ocr-account {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 280px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ocr-account-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 10px;
}

.ocr-account-header svg {
    stroke: var(--success);
}

.ocr-account-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ocr-account-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-600);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.ocr-account-item.added {
    background: rgba(16, 185, 129, 0.06);
    animation: ocrItemFadeIn 0.5s ease-out;
}

.ocr-account-item.adding {
    background: rgba(245, 158, 11, 0.06);
    animation: ocrItemPulse 1.5s ease-in-out infinite;
}

.ocr-added-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: var(--radius-full);
    background: var(--success);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-adding-spinner {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-top-color: #f59e0b;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ocr-added-amount {
    margin-left: auto;
    font-weight: 600;
    color: #ef4444;
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes ocrItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ocrItemPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ── AI Section ──────────────────────────── */
.ai-section {
    padding: var(--section-padding);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ai-text .section-badge {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.25);
    color: var(--brand-accent-light);
}

.ai-text .section-title {
    color: var(--white);
}

.ai-text .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
}

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

.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ai-feature-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ai-feature-check svg {
    width: 14px;
    height: 14px;
    color: var(--brand-accent-light);
}

.ai-feature-item span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.ai-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 420px;
}

.ai-chat-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-chat-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
}

.ai-chat-message.user {
    background: var(--gradient-cta);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-chat-message.assistant {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-chat-typing {
    display: flex;
    gap: 6px;
    padding: 12px 18px;
    align-self: flex-start;
}

.ai-chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: typing 1.4s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Platforms Section ───────────────────── */
.platforms {
    padding: var(--section-padding);
    background: var(--white);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.platform-card {
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-light);
}

.platform-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.platform-icon svg {
    width: 32px;
    height: 32px;
}

.platform-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.platform-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.7;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.platform-btn.app-store {
    background: #000;
    color: var(--white);
}

.platform-btn.app-store:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-btn.play-store {
    background: #000;
    color: var(--white);
}

.platform-btn.play-store:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-btn.web-app {
    background: var(--gradient-cta);
    color: var(--white);
}

.platform-btn.web-app:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(67, 97, 181, 0.3);
}

.platform-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Pricing Section ─────────────────────── */
.pricing {
    padding: var(--section-padding);
    background: var(--gray-50);
}

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

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.pricing-card.featured:hover {
    box-shadow: 0 0 50px rgba(67, 97, 181, 0.35), var(--shadow-lg);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-cta);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pricing-plan-name.free {
    color: var(--gray-500);
}

.pricing-plan-name.starter {
    color: #16a34a;
}

.pricing-plan-name.advanced {
    color: #2563eb;
}

.pricing-plan-name.professional {
    color: #9333ea;
}

.pricing-plan-name.business {
    color: #ea580c;
}

.pricing-plan-name.enterprise {
    color: #f59e0b;
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-400);
}

.pricing-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
}

.pricing-feature svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

.pricing-feature svg.check {
    color: var(--success);
}

.pricing-feature svg.cross {
    color: var(--gray-300);
}

.pricing-feature.disabled {
    color: var(--gray-400);
}

.pricing-cta {
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all var(--transition-normal);
}

.pricing-cta.primary {
    background: var(--gradient-cta);
    color: var(--white);
}

.pricing-cta.primary:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(67, 97, 181, 0.3);
}

.pricing-cta.outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.pricing-cta.outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(67, 97, 181, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ── Footer ──────────────────────────────── */
.footer {
    padding: 48px 0 24px;
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Animations ──────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {

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

    .ai-content,
    .ocr-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-visual {
        order: -1;
    }

    .ocr-visual {
        order: -1;
    }

    .ocr-text {
        max-width: 100%;
    }

    .ai-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 40px;
        gap: 24px;
        transition: right var(--transition-normal);
        z-index: 999;
    }

    .navbar-links.open {
        right: 0;
    }

    .navbar-links a {
        font-size: 16px;
    }

    .navbar-toggle {
        display: block;
        z-index: 1001;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 22px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .ocr-card {
        flex-direction: column;
        gap: 16px;
    }

    .ocr-arrow {
        transform: rotate(90deg);
    }

    .ocr-receipt,
    .ocr-account {
        width: 100%;
        max-width: 260px;
    }
}

/* ── Mobile overlay ──────────────────────── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

/* ── Language Switcher ───────────────────── */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-switcher-btn .lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher-btn .lang-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.lang-switcher.open .lang-switcher-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(10, 14, 39, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1100;
    box-shadow: var(--shadow-xl);
}

.lang-switcher.open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-dropdown::-webkit-scrollbar {
    width: 5px;
}

.lang-switcher-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-switcher-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.lang-option.active {
    background: rgba(67, 97, 181, 0.2);
    color: var(--white);
}

.lang-option .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-check {
    font-size: 12px;
    color: var(--brand-primary-light);
}

/* ── Billing Toggle ─────────────────────── */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    margin-bottom: 48px;
    position: relative;
}

.billing-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.billing-btn.active {
    background: var(--white);
    color: var(--gray-900);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.billing-btn:not(.active):hover {
    color: var(--gray-700);
}

.billing-save {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── RTL Support ────────────────────────── */
html[dir="rtl"] .navbar-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .ai-content {
    direction: rtl;
}

html[dir="rtl"] .ai-feature-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pricing-feature {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switcher-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .footer-content,
html[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-badge,
html[dir="rtl"] .section-badge {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    html[dir="rtl"] .navbar-links {
        right: auto;
        left: -100%;
        flex-direction: column;
    }

    html[dir="rtl"] .navbar-links.open {
        left: 0;
        right: auto;
    }
}

/* ── Scroll progress indicator ───────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-cta);
    z-index: 1001;
    transition: width 0.1s linear;
}