/* ============================================================
   NiftyForger Landing Page — Global Styles
   ============================================================ */

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

:root {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-border: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-accent-light: rgba(99, 102, 241, 0.15);
    --color-nifty: #e2e8f0;
    --color-forger: #6366f1;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ============================================================
   Page Wrapper
   ============================================================ */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   Navigation
   ============================================================ */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-nifty {
    color: var(--color-nifty);
}

.brand-forger {
    color: var(--color-forger);
}

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

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
    white-space: nowrap;
    border: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    color: var(--color-text-muted);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}

.hero-inner {
    max-width: 720px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent-light);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.heading-accent {
    color: var(--color-forger);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

/* ============================================================
   Features Section
   ============================================================ */

.features {
    padding: 80px 24px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 52px;
    letter-spacing: -0.01em;
}

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

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-card);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

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

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
    padding: 80px 24px;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

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

/* ============================================================
   Footer
   ============================================================ */

footer {
    padding: 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

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

footer p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.15s;
}

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero {
        padding: 72px 20px 60px;
    }

    .features {
        padding: 60px 20px;
    }

    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 36px;
    }

    .cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.8rem;
    }

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

    .btn-lg {
        width: 100%;
        max-width: 320px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 1.15rem;
    }

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