/* =============================================================================
   AraInvoice Subscription - Main Stylesheet
   ============================================================================= */

/* CSS Variables */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --accent-color: #7c3aed;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s ease;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
}

/* Reset */
*, *::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;
    font-size: 16px;
    line-height: var(--leading-relaxed);
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* =============================================================================
   Layout
   ============================================================================= */

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

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

.logo-img {
    height: 100px;
    width: auto;
    margin: -25px 0;
    filter: hue-rotate(-45deg) saturate(1.2) brightness(0.75);
}

.footer .logo-img {
    filter: brightness(0) invert(1);
    height: 80px;
    margin: -20px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 0.5rem;
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.language-selector .current-lang:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    min-width: 140px;
}

.language-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.language-menu button:hover {
    background: var(--bg-secondary);
}

.language-menu button.active {
    background: var(--primary-color);
    color: white;
}

.language-menu button:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.language-menu button:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-secondary);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(30, 64, 175, 0.06);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem 0.5rem 1.125rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30, 64, 175, 0.12);
    letter-spacing: 0.01em;
}

/* Hero Trust Badges */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-color);
    flex-shrink: 0;
}

/* Hero Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-mockup {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 540px;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-left: auto;
    font-weight: 500;
}

/* Mockup Tabs */
.mockup-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mockup-tabs::-webkit-scrollbar {
    display: none;
}

.mockup-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.6rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.mockup-tab svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.mockup-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.mockup-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    background: rgba(30, 64, 175, 0.1);
}

.mockup-content {
    padding: 0;
    min-height: 260px;
    overflow: hidden;
}

.mockup-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.3s ease;
}

.mockup-tab-content:hover .mockup-screenshot {
    transform: scale(1.02);
}

/* Tab Content */
.mockup-tab-content {
    display: none;
    height: 100%;
}

.mockup-tab-content.active {
    display: flex;
}


/* =============================================================================
   Social Proof Section
   ============================================================================= */

.social-proof {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.social-proof-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proof-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.proof-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* =============================================================================
   Features Section
   ============================================================================= */

.features {
    padding: 5rem 0;
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 64, 175, 0.07);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* =============================================================================
   How It Works Section
   ============================================================================= */

.how-it-works {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 3rem;
}

.step-arrow svg {
    width: 32px;
    height: 32px;
    stroke: var(--border-color);
}

/* =============================================================================
   OCR Highlight Section
   ============================================================================= */

.ocr-highlight {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.ocr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ocr-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
}

.ocr-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.ocr-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ocr-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.ocr-features li svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-color);
    flex-shrink: 0;
}

.ocr-visual {
    display: flex;
    justify-content: center;
}

.ocr-demo {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.ocr-step-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ocr-doc,
.ocr-brain,
.ocr-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    min-width: 80px;
}

.ocr-doc svg,
.ocr-brain svg,
.ocr-result svg {
    width: 32px;
    height: 32px;
}

.ocr-doc {
    border: 2px solid var(--border-color);
}

.ocr-doc svg { stroke: var(--text-muted); }

.ocr-brain {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(124, 58, 237, 0.1));
    border: 2px solid rgba(30, 64, 175, 0.2);
}

.ocr-brain svg { stroke: var(--primary-color); }

.ocr-brain span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.ocr-result {
    border: 2px solid rgba(5, 150, 105, 0.3);
    background: rgba(5, 150, 105, 0.05);
}

.ocr-result svg { stroke: var(--secondary-color); }

.ocr-result span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.8125rem;
}

.ocr-doc span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.ocr-arrow-anim {
    display: flex;
    align-items: center;
}

.ocr-arrow-anim svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
    opacity: 0.6;
}

/* =============================================================================
   Testimonials Section
   ============================================================================= */

.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-color);
}

.testimonial-stars {
    color: var(--warning-color);
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--warning-color);
    stroke: none;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-weight: 600;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================================================
   CTA Section
   ============================================================================= */

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    margin-bottom: 1.5rem;
}

.cta-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* =============================================================================
   FAQ Section
   ============================================================================= */

.faq {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-muted);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-minimal {
    padding: 2rem 0;
}

/* =============================================================================
   Pricing Page
   ============================================================================= */

.pricing-header {
    padding: 8rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.pricing-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.toggle-label[data-billing="yearly"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-badge {
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Pricing Section */
.pricing-section {
    padding: 3rem 0 5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-xl);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-card-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.price-period {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-color);
    flex-shrink: 0;
}

/* Enterprise CTA */
.enterprise-cta {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.enterprise-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.enterprise-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.enterprise-text p {
    color: var(--text-muted);
}

/* Comparison Table */
.comparison-section {
    padding: 3rem 0 5rem;
    background: var(--bg-secondary);
}

.comparison-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table td.featured,
.comparison-table th.featured {
    background: rgba(30, 64, 175, 0.05);
}

.comparison-table svg {
    width: 20px;
    height: 20px;
}

.comparison-table svg.check {
    stroke: var(--secondary-color);
}

.comparison-table svg.cross {
    stroke: var(--text-light);
}

/* Guarantee Section */
.guarantee-section {
    padding: 3rem 0;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.guarantee-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--secondary-color);
}

.guarantee-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.guarantee-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* =============================================================================
   Modal
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.modal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.modal-note a {
    color: var(--primary-color);
}

/* =============================================================================
   Success & Cancel Pages
   ============================================================================= */

.success-page,
.cancel-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.success-section,
.cancel-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.success-card,
.cancel-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.success-icon,
.cancel-icon {
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--success-color);
}

.cancel-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--error-color);
}

.success-card h1,
.cancel-card h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message,
.cancel-message {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.success-details {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-weight: 600;
}

.status-active {
    color: var(--success-color);
}

.success-next-steps {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.success-next-steps h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.success-next-steps ol {
    margin-left: 1.25rem;
}

.success-next-steps li {
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-support {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cancel Page Options */
.cancel-options {
    margin-bottom: 2rem;
}

.cancel-options h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.option-card {
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text-color);
}

.option-card:hover {
    background: var(--primary-color);
    color: white;
}

.option-card:hover .option-icon svg {
    stroke: white;
}

.option-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.option-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    margin-bottom: 0.75rem;
}

.option-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.option-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cancel-reassurance {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.cancel-reassurance h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.cancel-reassurance ul {
    list-style: none;
}

.cancel-reassurance li {
    padding: 0.25rem 0 0.25rem 1.5rem;
    color: var(--text-muted);
    position: relative;
}

.cancel-reassurance li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============================================================================
   Notifications
   ============================================================================= */

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    font-size: 0.9375rem;
}

.notification-success { background: var(--success-color); }
.notification-error { background: var(--error-color); }
.notification-info { background: var(--primary-light); }

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 0;
}

.notification button:hover {
    opacity: 1;
}

.notification.slide-out {
    animation: slideOut 0.3s ease forwards;
}

/* =============================================================================
   Feature Card Clickable
   ============================================================================= */

.feature-card[data-screen] {
    cursor: pointer;
    position: relative;
}

.feature-card[data-screen]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mockup tab content clickable */
.mockup-tab-content[onclick] {
    cursor: pointer;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-card-link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.feature-card[data-screen]:hover .feature-card-link {
    opacity: 1;
    transform: translateY(0);
}

.feature-card[data-screen]:hover .feature-card-link::after {
    transform: translateX(3px);
}


/* =============================================================================
   Screenshot Lightbox Modal
   ============================================================================= */

.screen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.screen-modal.open {
    display: flex;
}

.screen-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.screen-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    animation: screenModalIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes screenModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.screen-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.screen-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.screen-modal-close:hover {
    background: var(--bg-secondary);
}

.screen-modal-close:hover svg {
    stroke: var(--text-color);
}

.screen-modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.screen-modal-image {
    position: relative;
    flex-shrink: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
    overflow: hidden;
}

.screen-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 65vh;
    object-fit: contain;
}

/* Navigation arrows */
.screen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
}

.screen-modal-image:hover .screen-nav {
    opacity: 1;
}

.screen-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.screen-nav svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
}

.screen-nav-prev {
    left: 0.75rem;
}

.screen-nav-next {
    right: 0.75rem;
}

/* Info panel */
.screen-modal-info {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.screen-modal-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.screen-modal-info p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.screen-modal-counter {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

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

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .hero-image {
        order: -1;
    }

    .ocr-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .ocr-features {
        align-items: center;
    }

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

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

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

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

}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .mockup-tab span {
        display: none;
    }

    .mockup-tab svg {
        width: 16px;
        height: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .screen-modal {
        padding: 0.5rem;
    }

    .screen-modal-content {
        max-height: 95vh;
    }

    .screen-modal-image {
        max-height: 50vh;
    }

    .screen-modal-image img {
        max-height: 50vh;
    }

    .screen-modal-info {
        padding: 1rem 1.25rem;
    }

    .screen-nav {
        opacity: 1;
        width: 34px;
        height: 34px;
    }

    .feature-card-link {
        opacity: 1;
        transform: translateY(0);
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        display: none;
    }

    .proof-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .proof-divider {
        display: none;
    }

    .proof-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ocr-step-visual {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-features span:nth-child(even) {
        display: none;
    }

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

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

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

    .details-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.625rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}
