/* ═══════════════════════════════════════
    CSS VARIABLES — from app palette
═══════════════════════════════════════ */
:root {
    --primary: #FF8A65;
    --primary-light: #FFB199;
    --primary-dark: #E76F51;
    --secondary: #4F8A97;
    --secondary-light: #6FA6B1;
    --secondary-dark: #2F6773;
    --success: #8FD6B3;
    --warning: #FFC857;
    --error: #f85041;
    --bg-default: #0F1C1E;
    --bg-paper: #1D2A2D;
    --text-primary: #E9F1F2;
    --text-secondary: #B0BEC5;
    --text-disabled: #6F7F85;
    --divider: #2E3A3D;

    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ═══════════════════════════════════════
    RESET & BASE
═══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-default);
    color: var(--text-primary);
    font-family: var(--font-display);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════
    CANVAS — background particle effect
═══════════════════════════════════════ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════
    NAV
═══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(15, 28, 30, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .accent {
    color: var(--primary);
}

.nav-brand .nav-logo {
    height: 2rem;
    width: auto;
    display: none;
}

.nav-brand.show-logo .nav-logo {
    display: block;
    animation: fadeInDown 0.4s ease both;
}

.lang-switch {
    display: flex;
    background: var(--bg-paper);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--divider);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
}

.lang-btn.active {
    background: var(--secondary-dark);
    color: var(--text-primary);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(79, 138, 151, 0.15);
}

/* ═══════════════════════════════════════
    LAYOUT
═══════════════════════════════════════ */
.page-content {
    position: relative;
    z-index: 1;
}

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════
    HERO
═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-logo {
    display: block;
    width: clamp(140px, 22vw, 220px);
    height: auto;
    margin: 0 auto 3rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 138, 101, 0.1);
    border: 1px solid rgba(255, 138, 101, 0.25);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--warning) 50%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInDown 0.8s ease 0.35s both;
}

.scroll-hint {
    margin-top: 3.5rem;
    animation: fadeInDown 0.8s ease 0.5s both;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    color: var(--text-disabled);
    animation: float 2.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════
    BUTTONS
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 138, 101, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 138, 101, 0.35);
}

.btn-secondary {
    background: var(--bg-paper);
    color: var(--text-primary);
    border: 1px solid var(--divider);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(79, 138, 151, 0.1);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════
    FEATURES
═══════════════════════════════════════ */
.features {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-paper);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    border-color: rgba(79, 138, 151, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
}

.fc-encounter {
    --card-accent: var(--primary);
}

.fc-encounter .feature-icon {
    background: rgba(255, 138, 101, 0.12);
}

.fc-compat {
    --card-accent: var(--secondary-light);
}

.fc-compat .feature-icon {
    background: rgba(79, 138, 151, 0.15);
}

.fc-latam {
    --card-accent: var(--warning);
}

.fc-latam .feature-icon {
    background: rgba(255, 200, 87, 0.12);
}

.fc-safe {
    --card-accent: var(--success);
}

.fc-safe .feature-icon {
    background: rgba(143, 214, 179, 0.12);
}

/* ═══════════════════════════════════════
    CTA SECTION
═══════════════════════════════════════ */
.cta-section {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.cta-box {
    background: var(--bg-paper);
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 138, 101, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.cta-box .cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto 1.5rem;
}

.email-form input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--divider);
    background: var(--bg-default);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s ease;
}

.email-form input::placeholder {
    color: var(--text-disabled);
}

.email-form input:focus {
    border-color: var(--secondary);
}

.form-msg {
    font-size: 0.82rem;
    color: var(--success);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
    transition: opacity 0.3s ease;
}

.divider-text {
    color: var(--text-disabled);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════
    FOOTER
═══════════════════════════════════════ */
footer {
    border-top: 1px solid var(--divider);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-disabled);
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-disabled);
    background: var(--bg-paper);
    border: 1px solid var(--divider);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
}

.visitor-counter .counter-dot {
    width: 5px;
    height: 5px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease infinite;
}

/* ═══════════════════════════════════════
    ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
    RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    section {
        padding: 0 1.25rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form .btn {
        max-width: 100%;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
    }

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