:root {
    --bg-color: #0f0f11;
    --card-bg: #1a1a1d;
    --primary-color: #e63946;
    /* Ninja Red */
    --accent-color: #ffffff;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.mascot-logo {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
    background-color: #ff4d5a;
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary.large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Establish stacking context */
}

/* Ninja background accent */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, rgba(15, 15, 17, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    /* Ensure content spans full width */
}

.text-content {
    flex: 1;
    position: relative;
    z-index: 10;
    /* Keep text above the ninja */
}

.text-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    /* Ensure the ninja stays within this box when zipping */
    height: 400px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    width: 400px;
    /* Enforce size for consistency */
    max-height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
    /* Below text */
    transition: top 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s;
    cursor: pointer;
}

.hero-image.ninja-mode {
    position: absolute;
    margin: 0;
    animation: none;
    /* Stop floating when jumping */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Guide and Features Page Specifics */
.guide-page,
.features-page {
    padding-top: 8rem;
    /* Account for fixed header */
    padding-bottom: 4rem;
}

.step-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.step-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-details {
    margin-left: 3.5rem;
    /* Align with text, offset by number width + gap */
}

/* Features */
.features {
    padding: 6rem 0;
    background: var(--card-bg);
}

.features h2,
.guide h2,
.download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    /* Darker than section bg */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* Guide */
.guide {
    padding: 6rem 0;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guide h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Download */
.download {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to top, #1a1a1d, #0f0f11);
}

.download p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.download-meta p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.download-meta .coming-soon {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }

    .text-content h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Simple hide for mobile MVP, could add burger later */
    }
}