/* ========================================
   LIVIAGO - LANDING PAGE
   Brand: Navy + Steel Blue + Red "GO"
   ======================================== */

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

/* ---- THEME: DARK (default) ---- */
:root,
[data-theme="dark"] {
    --lp-bg: #0b1622;
    --lp-bg-alt: #0f1d2e;
    --lp-surface: #132338;
    --lp-surface-2: #172a42;
    --lp-border: rgba(90, 165, 210, 0.1);
    --lp-border-hover: rgba(90, 165, 210, 0.2);
    --lp-text: #eaf2fb;
    --lp-text-secondary: #8aa8c7;
    --lp-text-muted: #5a7a9a;
    --lp-brand-blue: #4a9ebe;
    --lp-brand-red: #e53935;
    --lp-accent: #4a9ebe;
    --lp-accent-hover: #5bb5d8;
    --lp-accent-glow: rgba(74, 158, 190, 0.2);
    --lp-hero-glow-1: rgba(74, 158, 190, 0.12);
    --lp-hero-glow-2: rgba(229, 57, 53, 0.06);
    --lp-card-hover: #1a3050;
    --lp-nav-bg: rgba(11, 22, 34, 0.85);
    --lp-logo-filter: none;
    --lp-icon-bg-opacity: 0.12;
}

/* ---- THEME: LIGHT ---- */
[data-theme="light"] {
    --lp-bg: #f4f7fb;
    --lp-bg-alt: #edf2f8;
    --lp-surface: #ffffff;
    --lp-surface-2: #f8fafc;
    --lp-border: rgba(74, 158, 190, 0.12);
    --lp-border-hover: rgba(74, 158, 190, 0.25);
    --lp-text: #0d1b2a;
    --lp-text-secondary: #3e5c76;
    --lp-text-muted: #6b8ba8;
    --lp-brand-blue: #2d7fa5;
    --lp-brand-red: #d32f2f;
    --lp-accent: #2d7fa5;
    --lp-accent-hover: #236b8e;
    --lp-accent-glow: rgba(45, 127, 165, 0.15);
    --lp-hero-glow-1: rgba(74, 158, 190, 0.08);
    --lp-hero-glow-2: rgba(229, 57, 53, 0.04);
    --lp-card-hover: #eef5fa;
    --lp-nav-bg: rgba(244, 247, 251, 0.9);
    --lp-logo-filter: none;
    --lp-icon-bg-opacity: 0.1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- NAV ---- */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--lp-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lp-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.lp-nav-logo {
    height: 36px;
    width: auto;
    filter: var(--lp-logo-filter);
}

.lp-nav-brand-text {
    color: var(--lp-brand-blue);
    font-weight: 700;
}

.lp-nav-brand-go {
    color: var(--lp-brand-red);
    font-weight: 800;
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-nav-link {
    color: var(--lp-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s;
}

.lp-nav-link:hover {
    color: var(--lp-text);
}

.lp-theme-toggle {
    background: transparent;
    border: 1px solid var(--lp-border);
    color: var(--lp-text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.lp-theme-toggle:hover {
    border-color: var(--lp-border-hover);
    color: var(--lp-text);
    background: var(--lp-surface);
}

/* ---- BUTTONS ---- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
}

.lp-btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.lp-btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.lp-btn-primary {
    background: var(--lp-accent);
    color: #fff;
}

.lp-btn-primary:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--lp-text-secondary);
    border: 1px solid var(--lp-border-hover);
}

.lp-btn-ghost:hover {
    color: var(--lp-text);
    border-color: var(--lp-accent);
    background: rgba(74, 158, 190, 0.05);
}

.lp-btn-red {
    background: var(--lp-brand-red);
    color: #fff;
}

.lp-btn-red:hover {
    background: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.2);
}

/* ---- HERO ---- */
.lp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.lp-hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background:
        radial-gradient(ellipse at 40% 50%, var(--lp-hero-glow-1) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 40%, var(--lp-hero-glow-2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.lp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.lp-hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    filter: var(--lp-logo-filter);
    transition: transform 0.3s ease;
}

.lp-hero-logo:hover {
    transform: scale(1.04);
}

.lp-hero-brand {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.lp-brand-livia {
    color: var(--lp-brand-blue);
}

.lp-brand-go {
    color: var(--lp-brand-red);
}

.lp-hero h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--lp-text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.lp-hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--lp-text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- FEATURES ---- */
.lp-features {
    padding: 100px 24px;
    background: var(--lp-bg-alt);
    transition: background 0.3s ease;
}

.lp-section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.lp-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.lp-overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-brand-red);
    margin-bottom: 16px;
}

.lp-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-text);
    margin-bottom: 12px;
}

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

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--lp-border);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    overflow: hidden;
}

.lp-feature-card {
    background: var(--lp-surface);
    padding: 36px 32px;
    transition: background 0.3s ease;
}

.lp-feature-card:hover {
    background: var(--lp-card-hover);
}

.lp-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--icon-color);
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    transition: background 0.3s ease;
}

.lp-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.lp-feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--lp-text-muted);
    margin: 0;
}

/* ---- CTA ---- */
.lp-cta {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}

.lp-cta-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background:
        radial-gradient(ellipse at 50% 50%, var(--lp-hero-glow-1) 0%, transparent 60%),
        radial-gradient(ellipse at 55% 60%, var(--lp-hero-glow-2) 0%, transparent 50%);
    pointer-events: none;
}

.lp-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.lp-cta p {
    font-size: 1.05rem;
    color: var(--lp-text-muted);
    margin-bottom: 32px;
}

/* ---- FOOTER ---- */
.lp-footer {
    border-top: 1px solid var(--lp-border);
    padding: 40px 24px;
    background: var(--lp-bg);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lp-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
}

.lp-footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

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

.lp-footer-links a {
    color: var(--lp-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.lp-footer-copy {
    color: var(--lp-text-muted);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-hero {
        min-height: auto;
        padding: 110px 20px 60px;
    }

    .lp-hero-logo {
        width: 130px;
    }

    .lp-hero-actions {
        flex-direction: column;
    }

    .lp-btn-lg {
        width: 100%;
    }

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

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

    .lp-features {
        padding: 60px 16px;
    }

    .lp-cta {
        padding: 60px 16px;
    }

    .lp-feature-card {
        padding: 28px 24px;
    }

    .lp-nav-brand-text,
    .lp-nav-brand-go {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .lp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
    .lp-hero-content {
        animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .lp-feature-card {
        animation: fadeIn 0.5s ease forwards;
        opacity: 0;
    }

    .lp-feature-card:nth-child(1) { animation-delay: 0.1s; }
    .lp-feature-card:nth-child(2) { animation-delay: 0.15s; }
    .lp-feature-card:nth-child(3) { animation-delay: 0.2s; }
    .lp-feature-card:nth-child(4) { animation-delay: 0.25s; }
    .lp-feature-card:nth-child(5) { animation-delay: 0.3s; }
    .lp-feature-card:nth-child(6) { animation-delay: 0.35s; }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
