:root {
    /* Enforce Dark theme */
    --bg-color: #0f0f11;
    --text-color: #f0f0f2;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-color: #dcb159;
    /* Gold color from the icon/game */
    --accent-secondary: #b88e3c;
    --accent-glow: rgba(220, 177, 89, 0.25);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --gradient-overlay-1: rgba(220, 177, 89, 0.05);
    /* Gold tint */
    --gradient-overlay-2: rgba(184, 142, 60, 0.05);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1000px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, var(--gradient-overlay-1) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, var(--gradient-overlay-2) 0%, transparent 25%);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: rgba(220, 177, 89, 0.2);
}

a:hover {
    opacity: 0.8;
}

a:active {
    opacity: 0.6;
}

/* Focus states for keyboard navigation */
a:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

nav a:focus-visible {
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Better spacing for desktop */
@media (min-width: 769px) {
    .container {
        padding: 0 40px;
    }

    .feature-image {
        perspective: 1000px;
    }

    .feature-image img,
    .feature-video {
        transform-style: preserve-3d;
    }
}

/* Header */
header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header>.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

header.scrolled .logo {
    font-size: 1.1rem;
}

header.scrolled .logo img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--text-color);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for dark icon */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 15ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge:active {
    transform: translateY(0);
    opacity: 0.8;
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

.story-section {
    padding: 100px 0;
    max-width: 700px;
    margin: 0 auto;
}

.story-content {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.story-content p {
    margin-bottom: 24px;
}

.story-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.highlight {
    color: var(--accent-color);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
    text-align: center;
}

.value-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 16px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.value-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: #fff;
}

.value-item:hover::before {
    opacity: 0.1;
}

/* Feature Showcase */
.feature-showcase {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 16px;
    /* Slightly sharper corners for pixel art vibe? standard 32px is fine too, keeping readable */
    border: 4px solid var(--card-border);
    box-shadow: 0 30px 60px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: pixelated;
    /* Essential for pixel art! */
}

.feature-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px var(--shadow-color);
    border-color: rgba(220, 177, 89, 0.3);
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-image img {
        max-height: 500px;
    }
}

/* Footer */
footer {
    padding: 80px 0 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer .links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-muted);
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

footer a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 20px 0;
    }

    header.scrolled {
        padding: 12px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 32px;
    }

    .hero h1 {
        font-size: 2.5rem;
        max-width: 100%;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 36px;
    }

    .story-section {
        padding: 60px 0;
    }

    .story-content {
        font-size: 1.05rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .feature-showcase {
        gap: 80px;
        padding: 60px 0;
    }

    .feature-text h3 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .feature-text p {
        font-size: 1.05rem;
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .story-content {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }
}

/* Large desktop screens */
@media (min-width: 1400px) {
    :root {
        --max-width: 1200px;
    }

    .container {
        padding: 0 60px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.4rem;
        max-width: 650px;
    }

    .feature-text h3 {
        font-size: 2.25rem;
    }

    .feature-text p {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .story-content {
        font-size: 1.2rem;
    }

    .story-section {
        padding: 120px 0;
    }
}