/* ===================================
   FALONA — ELITE DESIGN SYSTEM
   ================================ */

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

/* Design Tokens */
:root {
    /* Colors */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --indigo-600: #4f46e5;

    /* Spacing (8px grid) */
    --sp-1: 0.5rem;
    /* 8px */
    --sp-2: 1rem;
    /* 16px */
    --sp-3: 1.5rem;
    /* 24px */
    --sp-4: 2rem;
    /* 32px */
    --sp-5: 2.5rem;
    /* 40px */
    --sp-6: 3rem;
    /* 48px */
    --sp-8: 4rem;
    /* 64px */
    --sp-10: 5rem;
    /* 80px */
    --sp-12: 6rem;
    /* 96px */
    --sp-16: 8rem;
    /* 128px */

    /* Typography */
    --font-body: 'Inter', system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Effects */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--slate-100);
    background: var(--slate-950);
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 600;
    font-size: var(--text-lg);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.nav-links a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--slate-100);
}

.nav-cta {
    padding: var(--sp-2) var(--sp-3);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--slate-100) !important;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
    padding: calc(72px + var(--sp-16)) var(--sp-4) var(--sp-16);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-12);
    align-items: center;
    min-height: calc(100vh - 72px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-1) var(--sp-2);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--indigo-400);
    margin-bottom: var(--sp-4);
}

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

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-4);
    color: var(--slate-50);
}

.gradient-text {
    background: linear-gradient(135deg, var(--indigo-400), var(--indigo-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--slate-400);
    margin-bottom: var(--sp-6);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--indigo-500);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--indigo-600);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-300);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--slate-100);
}

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

.btn-white:hover {
    background: var(--slate-100);
    transform: translateY(-1px);
}

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

.hero-card {
    position: relative;
    padding: var(--sp-6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
    transform: rotate(-3deg);
    transition: var(--transition-slow);
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-app-img {
    width: 100%;
    max-width: 320px;
    display: block;
    border-radius: var(--radius-md);
}

/* Social Proof */
.proof {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.proof-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--slate-50);
    margin-bottom: var(--sp-1);
    line-height: 1;
}

.proof-label {
    font-size: var(--text-sm);
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-16) var(--sp-4);
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-10);
}

.section-header h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--slate-50);
    margin-bottom: var(--sp-3);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--slate-400);
    max-width: 640px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
}

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

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-large {
    grid-column: span 2;
}

.feature-tall {
    grid-row: span 2;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--sp-3);
    display: block;
}

.feature-card h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--slate-50);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--slate-400);
    line-height: 1.7;
    font-size: var(--text-base);
}

.feature-meta {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.feature-tag {
    padding: var(--sp-1) var(--sp-2);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--indigo-400);
    font-weight: 500;
}

.feature-list {
    list-style: none;
    margin-top: var(--sp-4);
}

.feature-list li {
    padding: var(--sp-2) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--slate-400);
    font-size: var(--text-sm);
}

.feature-list li:first-child {
    border-top: none;
}

/* Technology */
.technology {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03));
    padding: var(--sp-16) var(--sp-4);
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.tech-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-text h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--slate-50);
    margin-bottom: var(--sp-4);
    line-height: 1.1;
}

.tech-text p {
    font-size: var(--text-lg);
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: var(--sp-6);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.tech-feature {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
}

.tech-feature-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
}

.tech-feature-title {
    font-weight: 600;
    color: var(--slate-50);
    margin-bottom: var(--sp-1);
}

.tech-feature-desc {
    color: var(--slate-400);
    font-size: var(--text-sm);
}

.tech-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-2xl);
}

.tech-card-header {
    display: flex;
    gap: var(--sp-1);
    margin-bottom: var(--sp-4);
}

.tech-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--slate-600);
}

.tech-code-line {
    height: 16px;
    background: linear-gradient(90deg, var(--slate-700), transparent);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-2);
}

.tech-code-line.short {
    width: 60%;
}

.tech-code-line.medium {
    width: 80%;
}

/* CTA */
.cta {
    padding: var(--sp-16) var(--sp-4);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--sp-10);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.cta-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-inner h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--slate-50);
    margin-bottom: var(--sp-3);
}

.cta-inner p {
    font-size: var(--text-lg);
    color: var(--slate-400);
    margin-bottom: var(--sp-6);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--sp-10) var(--sp-4) var(--sp-6);
    background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-6);
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--slate-50);
    margin-bottom: var(--sp-1);
}

.footer-tagline {
    color: var(--slate-500);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--sp-6);
}

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--sp-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: var(--slate-500);
    font-size: var(--text-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

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

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

    .feature-large,
    .feature-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .tech-content {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }

    .proof {
        flex-direction: column;
        gap: var(--sp-4);
    }

    .proof-divider {
        width: 48px;
        height: 1px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-lead {
        font-size: var(--text-base);
    }

    .section-header h2 {
        font-size: var(--text-3xl);
    }

    .nav-links {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--sp-6);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--sp-3);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}