/* ============================================
   Last Outpost — Styles
   ============================================ */

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

:root {
    --bg-start: #0a0a0a;
    --bg-end: #1a0a0a;
    --accent: #DC2626;
    --accent-hover: #EF4444;
    --danger: #EF4444;
    --safe: #10B981;
    --plague: #7C3AED;
    --skills: #F59E0B;
    --community: #3B82F6;
    --text: #F5F5F5;
    --text-muted: #9CA3AF;
    --card-bg: rgba(220, 38, 38, 0.04);
    --card-border: rgba(220, 38, 38, 0.12);
    --nav-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* ============================================
   NAV
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--card-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo-icon {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

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

.btn-lang {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.btn-lang:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-cta-nav {
    background: var(--accent);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.btn-cta-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: calc(var(--nav-height) + 64px) 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title br {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text);
    color: var(--bg-start);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-appstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.btn-appstore small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1;
}

.btn-appstore strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}

.btn-appstore-lg {
    padding: 16px 32px;
}

.btn-appstore-lg strong {
    font-size: 1.25rem;
}

/* Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
}

.mockup-phone {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border-radius: 40px;
    padding: 12px;
    border: 2px solid var(--card-border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 80px rgba(220, 38, 38, 0.08);
    position: relative;
}

.mockup-phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0a0a0a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a, #1a0808);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 96px 0;
}

.section-alt {
    background: rgba(220, 38, 38, 0.02);
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 16px 48px rgba(220, 38, 38, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--icon-color, var(--accent));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: steps;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   STATS / WHAT'S INSIDE
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.pricing-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.12);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.pricing-features {
    text-align: left;
    margin-bottom: 36px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features li svg {
    flex-shrink: 0;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
    text-align: center;
    padding: 32px 0;
}

.download-cta .section-title {
    margin-bottom: 12px;
}

.download-cta .section-subtitle {
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    text-align: center;
}

.footer-content a {
    color: var(--accent);
    transition: color 0.2s;
}

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

.footer-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: calc(var(--nav-height) + 40px) 0 48px;
        min-height: auto;
    }

    .mockup-phone {
        width: 220px;
        height: 440px;
        border-radius: 32px;
    }

    .mockup-screen {
        border-radius: 22px;
    }

    .pricing-card {
        padding: 36px 24px;
    }

    .nav-logo-text {
        display: none;
    }
}
