/* ============================================
   Albion Forge — Styles
   ============================================ */

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

:root {
    --bg-start: #0a0a0f;
    --bg-end: #0f0f1a;
    --accent: #F59E0B;
    --accent-hover: #FBBF24;
    --pvp: #EF4444;
    --pve: #10B981;
    --craft: #8B5CF6;
    --crystal: #3B82F6;
    --text: #F5F5F5;
    --text-muted: #9CA3AF;
    --card-bg: rgba(245, 158, 11, 0.05);
    --card-border: rgba(245, 158, 11, 0.10);
    --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, 15, 0.85);
    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: 6px;
}

.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(--bg-start);
    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(245, 158, 11, 0.2);
}

.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;
}

/* Preview Badge */
.preview-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* CTA Buttons */
.btn-primary-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* WIP Notice */
.hero-wip-notice {
    margin-top: 20px;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.5;
}

/* Platform Status */
.cta-platforms-status {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.platform-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-beta { background: #10B981; }
.status-wip { background: #F59E0B; }
.status-dev { background: #6B7280; }

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

.mockup-browser {
    width: 420px;
    background: linear-gradient(135deg, #1a1a2e, #16162a);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 80px rgba(245, 158, 11, 0.06);
    overflow: hidden;
}

.mockup-browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--card-border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mockup-dots span:first-child { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:last-child { background: #10B981; }

.mockup-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-browser-content {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

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

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

.section-alt {
    background: rgba(245, 158, 11, 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(245, 158, 11, 0.25);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 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(245, 158, 11, 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;
}

/* ============================================
   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(245, 158, 11, 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(--bg-start);
    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);
}

/* ============================================
   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);
    }

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

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

    .section {
        padding: 64px 0;
    }

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

    .mockup-browser {
        width: 100%;
        max-width: 340px;
    }

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

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