/* Landing — inspirado en landing SaaS moderna (Electron-style) */
:root {
    --lp-bg: #06060b;
    --lp-bg-elevated: #0e0e16;
    --lp-surface: rgba(255, 255, 255, 0.04);
    --lp-border: rgba(255, 255, 255, 0.08);
    --lp-text: #f4f4f8;
    --lp-muted: #9b9bb3;
    --lp-accent: #6c5ce7;
    --lp-accent-2: #00cec9;
    --lp-steam: #1b2838;
    --lp-steam-hover: #2a475e;
    --lp-radius: 16px;
    --lp-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body.landing-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.landing-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 206, 201, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(108, 92, 231, 0.1), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--lp-header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(6, 6, 11, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--lp-text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.lp-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lp-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-left: 1px solid var(--lp-border);
    border-right: 1px solid var(--lp-border);
}

.lp-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    opacity: 0.75;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.lp-lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.lp-lang-flag svg {
    width: 26px;
    height: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lp-lang-btn:hover {
    opacity: 1;
    background: var(--lp-surface);
    transform: translateY(-1px);
}

.lp-lang-btn.is-active {
    opacity: 1;
    border-color: var(--lp-accent);
    background: rgba(108, 92, 231, 0.15);
}

.lp-nav a:not(.lp-btn-steam) {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.lp-nav a:not(.lp-btn-steam):hover {
    color: var(--lp-text);
}

.lp-btn-steam {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.25rem;
    background: var(--lp-steam);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.lp-btn-steam:hover {
    background: var(--lp-steam-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lp-btn-steam svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main */
.lp-main {
    position: relative;
    z-index: 1;
    padding-top: var(--lp-header-h);
}

.lp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Hero */
.lp-hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    font-size: 0.8rem;
    color: var(--lp-muted);
    margin-bottom: 1.5rem;
}

.lp-badge span {
    color: var(--lp-accent-2);
    font-weight: 600;
}

.lp-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #c8c8e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--lp-muted);
    max-width: 640px;
    margin: 0 auto 2.25rem;
}

.lp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--lp-accent), #5a4bd1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.35);
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.45);
    color: #fff;
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--lp-muted);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.lp-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--lp-text);
}

/* Stats */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 0;
}

.lp-stat {
    position: relative;
    padding: 1.4rem 1rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    text-align: center;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.lp-stat:hover {
    border-color: rgba(0, 206, 201, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 206, 201, 0.12);
}

.lp-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--lp-accent-2), var(--lp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-stat-label {
    font-size: 0.8rem;
    color: var(--lp-muted);
    margin-top: 0.25rem;
}

.lp-stats-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--lp-muted);
    margin: 0.75rem auto 0;
    opacity: 0.85;
}

/* Sections */
.lp-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.lp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lp-section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.lp-section-header p {
    color: var(--lp-muted);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Features grid — simétrico (1 / 2 / 5 columnas) */
.lp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 600px) {
    .lp-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .lp-features { grid-template-columns: repeat(5, 1fr); }
}

.lp-feature {
    position: relative;
    padding: 1.6rem 1.35rem;
    background: var(--lp-bg-elevated);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.lp-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% -10%, rgba(108, 92, 231, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.lp-feature:hover {
    border-color: rgba(108, 92, 231, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.18);
}

.lp-feature:hover::before {
    opacity: 1;
}

.lp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.28), rgba(0, 206, 201, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.25s;
}

.lp-feature:hover .lp-feature-icon {
    transform: scale(1.08) rotate(-3deg);
}

.lp-feature h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    letter-spacing: -0.01em;
}

.lp-feature p {
    font-size: 0.86rem;
    color: var(--lp-muted);
    margin: 0;
    line-height: 1.55;
}

/* Steps */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.lp-step {
    text-align: center;
    padding: 1.5rem;
}

.lp-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.lp-step h3 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.lp-step p {
    font-size: 0.85rem;
    color: var(--lp-muted);
    margin: 0;
}

/* CTA band */
.lp-cta-band {
    margin: 2rem 0 4rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.08));
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 24px;
    text-align: center;
}

.lp-cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
}

.lp-cta-band p {
    color: var(--lp-muted);
    margin: 0 0 1.5rem;
}

.lp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.lp-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #5865F2;
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 24px rgba(88, 101, 242, 0.35);
}

.lp-btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.45);
    color: #fff;
}

/* FAQ */
.lp-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-faq-item {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    overflow: hidden;
}

.lp-faq-item summary {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--lp-muted);
    flex-shrink: 0;
}

.lp-faq-item[open] summary::after {
    content: '−';
}

.lp-faq-item summary:hover {
    color: var(--lp-accent-2);
}

.lp-faq-item p {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    font-size: 0.92rem;
    color: var(--lp-muted);
    line-height: 1.65;
}

.lp-faq-item p a {
    color: var(--lp-accent-2);
    text-decoration: none;
}

.lp-faq-item p a:hover {
    text-decoration: underline;
}

.lp-faq-item p code {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Footer */
.lp-footer {
    border-top: 1px solid var(--lp-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--lp-muted);
    font-size: 0.85rem;
}

.lp-footer a {
    color: var(--lp-accent-2);
    text-decoration: none;
}

.lp-section-examples {
    background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.04) 40%, transparent);
}

.lp-section-examples .lp-container {
    max-width: 1320px;
}

.lp-demo-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--lp-accent-2);
    background: rgba(0, 206, 201, 0.12);
    border: 1px solid rgba(0, 206, 201, 0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* Mobile nav */
.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .lp-nav-links a:not(.lp-btn-steam) {
        display: none;
    }

    .lp-header {
        padding: 0 1rem;
    }

    .lp-features {
        grid-template-columns: 1fr;
    }
}
