:root {
    --primary: #d97736;
    --primary-glow: rgba(217, 119, 54, 0.3);
    --secondary: #0c3b5e;
    
    /* Light Theme Colors */
    --bg-base: #f4f7f9;
    --bg-surface: #ffffff;
    --bg-panel: rgba(255, 255, 255, 0.7);
    
    --text-main: #0c3b5e;
    --text-muted: #5a7184;
    
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    --border-color: rgba(12, 59, 94, 0.08);
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, #d97736 0%, #f29c61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

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

/* Background Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.orb-1 {
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
}
.orb-2 {
    top: 40%;
    right: -300px;
    width: 800px;
    height: 800px;
    background: rgba(12, 59, 94, 0.2);
}
.orb-3 {
    bottom: -100px;
    left: 20%;
    width: 500px;
    height: 500px;
    background: rgba(217, 119, 54, 0.2);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(12, 59, 94, 0.05);
}

/* Buttons */
.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-huge {
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 100px;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(12, 59, 94, 0.3);
    border: 1px solid transparent;
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(12, 59, 94, 0.4);
    transform: translateY(-2px);
    background: #154c79;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: #fff;
    border-color: rgba(12, 59, 94, 0.15);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.5rem; font-weight: 800; color: var(--text-main);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo i { color: var(--primary); }
.logo span { font-weight: 400; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not([class^="btn"]) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:not([class^="btn"]):hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; }

/* Language Dropdown */
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn {
    background: none; border: none; color: var(--text-muted); font-size: 1rem;
    font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px;
    font-family: inherit; transition: var(--transition); padding: 8px 0;
}
.lang-btn:hover { color: var(--primary); }
.lang-menu {
    position: absolute; top: 100%; right: 0; margin-top: 0px;
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm); box-shadow: 0 10px 30px rgba(12,59,94,0.1);
    display: flex; flex-direction: column; width: 150px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden; z-index: 2000;
}
.lang-dropdown:hover .lang-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu a {
    padding: 12px 16px; color: var(--text-main) !important; text-decoration: none !important;
    font-size: 0.95rem; font-weight: 500; display: flex; align-items: center; gap: 10px;
    transition: var(--transition);
}
.lang-menu a:hover { background: rgba(217, 119, 54, 0.05); color: var(--primary) !important; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 24px 80px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Dashboard Mockup */
.hero-visual {
    margin-top: 80px;
    width: 100%;
    max-width: 1000px;
    perspective: 2000px;
}
.dashboard-mockup {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotateX(15deg) translateY(50px) scale(0.9);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: 0 40px 100px rgba(12, 59, 94, 0.15), 0 0 40px rgba(217, 119, 54, 0.1);
}
.dashboard-mockup.active-scroll {
    transform: rotateX(0deg) translateY(0) scale(1);
}

.mock-header {
    height: 40px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.mock-dots { display: flex; gap: 8px; }
.mock-dots span { width: 12px; height: 12px; border-radius: 50%; background: #e2e8f0; }
.mock-dots span:nth-child(1) { background: #ff5f56; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #27c93f; }
.mock-url { flex: 1; text-align: center; color: #94a3b8; font-size: 0.8rem; font-family: monospace; }
.mock-body { flex: 1; display: flex; padding: 20px; gap: 20px; background: rgba(255,255,255,0.4); }
.mock-nav { width: 80px; display: flex; flex-direction: column; gap: 12px; }
.mock-item { height: 40px; background: rgba(12, 59, 94, 0.05); border-radius: 8px; }
.mock-item.active { background: var(--primary-glow); }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.mock-row { display: flex; gap: 20px; }
.mock-card { background: #fff; border-radius: 12px; height: 120px; flex: 1; border: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.mock-large { flex: 2; height: 200px; padding: 20px; }
.mock-small { flex: 1; height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mock-chart { width: 100%; height: 100%; border-bottom: 2px solid #e2e8f0; border-left: 2px solid #e2e8f0; position: relative; }
.highlight { border-color: var(--primary); background: rgba(217, 119, 54, 0.05); }
.mock-stat { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.mock-label { color: var(--text-muted); font-size: 0.9rem; }

/* Bento Features */
.features-bento { padding: 120px 0; }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 60px; text-align: center; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 24px;
}
.bento-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    background: #fff;
}
.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 119, 54, 0.3);
    box-shadow: 0 20px 40px rgba(12, 59, 94, 0.08);
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 1; grid-row: span 1; }
.bento-wide { grid-column: span 3; grid-row: span 1; display: flex; flex-direction: row; align-items: center; }

.bento-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 24px; }
.bento-item h3 { font-size: 1.8rem; margin-bottom: 12px; }
.bento-item p { color: var(--text-muted); font-size: 1.1rem; }

.bento-large h3 { font-size: 2.5rem; }

/* Visuals inside Bento */
.visual-graph {
    margin-top: 40px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 8px 8px 0 0;
    transition: height 1s ease;
}
.bar.highlight {
    background: linear-gradient(0deg, var(--primary) 0%, #f29c61 100%);
    box-shadow: 0 0 20px var(--primary-glow);
}

.bento-content-horizontal {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.color-swatches { display: flex; gap: -10px; }
.swatch { width: 60px; height: 60px; border-radius: 50%; border: 4px solid #fff; margin-left: -20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.s1 { background: #d97736; z-index: 3; }
.s2 { background: #0c3b5e; z-index: 2; }
.s3 { background: #f4f7f9; z-index: 1; }

/* Pricing Sleek */
.pricing { padding: 120px 0; }
.pricing-container {
    display: flex;
    margin-top: 60px;
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.pricing-left {
    flex: 1;
    padding: 60px;
    background: rgba(12, 59, 94, 0.03);
    border-right: 1px solid var(--border-color);
}
.pricing-left h3 { font-size: 2rem; margin-bottom: 20px; }
.pricing-left p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.pricing-features-list { list-style: none; }
.pricing-features-list li { margin-bottom: 16px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.pricing-features-list i { color: var(--primary); }

.pricing-right {
    flex: 2;
    display: flex;
    flex-direction: column;
}
.pricing-tier {
    display: grid;
    grid-template-columns: 5fr 3fr auto;
    align-items: center;
    padding: 40px 60px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}
.pricing-tier > a {
    justify-self: end;
}
.pricing-tier:last-child { border-bottom: none; }
.pricing-tier:hover { background: rgba(12, 59, 94, 0.01); }

.highlight-tier { background: rgba(217, 119, 54, 0.05); }
.tier-badge {
    position: absolute; top: 12px; left: 60px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--primary); font-weight: 800;
}

.tier-info h4 { font-size: 1.5rem; margin-bottom: 4px; }
.tier-info span { color: var(--text-muted); font-size: 0.95rem; }

.tier-price { font-size: 3rem; font-weight: 800; display: flex; align-items: baseline; }
.tier-price .currency { font-size: 1.5rem; margin-right: 4px; color: var(--text-muted); }
.tier-price span:last-child { font-size: 1rem; color: var(--text-muted); margin-left: 4px; }

/* CTA Giant */
.cta-giant { padding: 160px 24px; position: relative; overflow: hidden; }
.cta-giant::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(217,119,54,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1; pointer-events: none;
}
.cta-giant h2 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 24px; }
.cta-giant p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 48px; }

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border-color); background: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.socials { display: flex; gap: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-base); display: flex; align-items: center; justify-content: center; color: var(--text-main); text-decoration: none; transition: var(--transition); border: 1px solid var(--border-color); }
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { margin-bottom: 24px; color: var(--text-main); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-fade {
    opacity: 0;
    animation: fadeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes textReveal {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeReveal {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; }
    .bento-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; gap: 40px; }
    .pricing-container { flex-direction: column; }
    .pricing-left { border-right: none; border-bottom: 1px solid var(--border-color); }
}

@media (max-width: 768px) {
    /* Performance fix: Hide heavy blur orbs on mobile */
    .glow-orb { display: none; }

    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-large, .bento-medium, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .pricing-tier { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px; }
    .tier-badge { top: 10px; left: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Disable double-tap to zoom on clickable elements for iOS Safari */
a, button, input, textarea, select, .btn-primary, .lang-btn, .mobile-menu-btn {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    /* Performance fix: Hide heavy blur orbs on mobile */
    .glow-orb { display: none; }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        z-index: 1000;
        align-items: flex-start;
    }
    .nav-links.active a {
        width: 100%;
        padding: 10px 0;
        color: var(--text-main);
    }
}

html, body {
    touch-action: pan-x pan-y;
}


/* Additional Mobile Fixes */
h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
}

@media (max-width: 768px) {
    /* Disable animations on mobile for instant load and iOS bug fix */
    .reveal-text, .reveal-fade {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Make Dashboard Mockup responsive */
    .dashboard-mockup {
        height: auto;
        padding-bottom: 20px;
    }
    .mock-body {
        flex-direction: column;
    }
    .mock-nav {
        display: none; /* Hide sidebar */
    }
    .mock-row {
        flex-direction: column;
    }
    .mock-card {
        width: 100%;
        height: auto;
        min-height: 100px;
        padding: 16px;
    }
    .mock-large, .mock-small {
        height: auto;
    }
    .hero {
        padding: 120px 20px 60px;
    }
    .bento-grid {
        gap: 20px;
    }
    .pricing-tier {
        width: 100%;
    }
}
