/* ==========================================================================
   Lokali Landing Page Styles
   ========================================================================== */

/* CSS Variables - Lokali Brand Colors */
:root {
    /* Primary Colors */
    --color-primary-50: #fef2f3;
    --color-primary-100: #fde6e8;
    --color-primary-200: #fbd0d5;
    --color-primary-300: #f7a8b1;
    --color-primary-400: #f17588;
    --color-primary-500: #e7425f;
    --color-primary-600: #db162f;
    --color-primary-700: #b91228;
    --color-primary-800: #9a1124;
    --color-primary-900: #821323;
    --color-primary-950: #470710;
    --color-primary: #db162f;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Neutral Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index Scale */
    --z-header: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: white;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-2xl);
    }
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: var(--z-header);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

@media (min-width: 480px) {
    .logo img {
        height: 36px;
        max-width: 160px;
    }
}

@media (min-width: 768px) {
    .logo img {
        height: 40px;
        max-width: 180px;
    }
}

.logo:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-700);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-gray-900);
    border-color: var(--color-gray-300);
}

.btn-outline:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.btn-ghost {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.btn-ghost:hover {
    background: var(--color-gray-300);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

/* Spline viewer takes full height */
.hero spline-viewer {
    width: 100%;
    height: 100%;
}

/* Show desktop Spline by default, hide mobile */
.hero .spline-mobile {
    display: none !important;
}

.hero .spline-desktop {
    display: block !important;
}

/* On mobile screens, show mobile Spline and hide desktop */
@media (max-width: 767px) {
    .hero .spline-mobile {
        display: block !important;
    }

    .hero .spline-desktop {
        display: none !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    padding: var(--spacing-4xl) 0;
}

.section-alt {
    background: var(--color-gray-50);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-4xl);
}

.section-title {
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-200);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits-section {
    margin-top: var(--spacing-4xl);
}

.benefit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-4xl);
    align-items: center;
}

@media (min-width: 768px) {
    .benefit-row {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-row-reverse {
        direction: rtl;
    }

    .benefit-row-reverse > * {
        direction: ltr;
    }
}

.benefit-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-primary-50);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.benefit-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.benefit-text {
    color: var(--color-gray-600);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-700);
}

.benefit-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-full);
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.benefit-image img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary-200);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-gray-900);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-gray-400);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-3xl);
    color: rgba(255, 255, 255, 0.95);
}

.app-download {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
}

.app-store-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    transition: all var(--transition-base);
}

.app-store-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.app-store-icon {
    width: 32px;
    height: 32px;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.app-store-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.app-store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .footer-logo img {
        height: 36px;
        max-width: 160px;
    }
}

.footer-text {
    color: var(--color-gray-400);
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-gray-800);
}

.footer-copyright {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal a {
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal span {
    color: var(--color-gray-700);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 767px) {
    .hero {
        min-height: 500px;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .benefit-row {
        gap: var(--spacing-xl);
    }

    .app-download {
        flex-direction: column;
        align-items: center;
    }

    .app-store-button {
        width: 100%;
        max-width: 280px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nav-actions {
        gap: var(--spacing-sm);
    }

    .nav-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .nav {
        height: 64px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .feature-card,
    .benefit-content {
        padding: var(--spacing-lg);
    }

    .faq-question {
        padding: var(--spacing-lg);
        font-size: 0.9375rem;
    }

    .faq-answer p {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Smooth font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for transforms */
.btn,
.feature-card,
.faq-item,
.app-store-button {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: var(--spacing-lg);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    color: var(--color-gray-700);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--color-primary-700);
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
