/* ============================================================
   BULLET ARMY RUN - ZEN GARDEN DESIGN
   Aesthetic: Japanese minimalism, wabi-sabi, ink-wash
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Core Palette */
    --color-primary: #2d2d2d;
    --color-secondary: #f7f5f0;
    --color-accent: #7d8c6c;
    --color-accent-light: #a3b18a;
    --color-accent-dark: #5a6b4a;

    /* Extended Palette */
    --color-charcoal: #2d2d2d;
    --color-charcoal-light: #4a4a4a;
    --color-stone: #8a8578;
    --color-stone-light: #b5aea3;
    --color-soft-white: #f7f5f0;
    --color-cream: #efe9dd;
    --color-bamboo: #c4a35a;
    --color-bamboo-light: #dcc88f;
    --color-cherry: #d4a0a0;
    --color-cherry-light: #e8c4c4;
    --color-ink: #1a1a1a;

    /* Surfaces */
    --surface-primary: #f7f5f0;
    --surface-secondary: #efe9dd;
    --surface-tertiary: #e5ded2;
    --surface-dark: #2d2d2d;
    --surface-card: rgba(255, 253, 248, 0.85);

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Noto Serif JP', 'Georgia', serif;
    --font-body: 'Zen Kaku Gothic New', 'Helvetica Neue', sans-serif;
    --font-accent: 'Noto Serif JP', serif;

    /* Sizes */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
    --text-md: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-2xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);
    --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    --text-hero: clamp(3.5rem, 2.5rem + 4vw, 7rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 8rem;
    --space-section: clamp(5rem, 4rem + 4vw, 10rem);

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-heavy: 0 16px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 700ms;
    --duration-slower: 1200ms;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 72px;

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-cookie: 2000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-primary);
    background-color: var(--surface-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Noise texture overlay on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-soft-white);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85em 2em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--duration-slow) var(--ease-out), height var(--duration-slow) var(--ease-out);
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--color-charcoal);
    color: var(--color-soft-white);
}

.btn-primary:hover {
    background-color: var(--color-charcoal-light);
    color: var(--color-soft-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-stone-light);
}

.btn-secondary:hover {
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 1em 2em;
    font-size: var(--text-base);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    background: rgba(247, 245, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all var(--duration-base) var(--ease-out);
}

.site-header.scrolled {
    box-shadow: var(--shadow-subtle);
    background: rgba(247, 245, 240, 0.95);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-primary);
}

.logo-enso {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid var(--color-charcoal);
    position: relative;
    opacity: 0.8;
}

.logo-enso::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--surface-primary);
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-charcoal-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-charcoal);
    color: var(--color-soft-white) !important;
    padding: 0.5em 1.2em;
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-charcoal-light);
    color: var(--color-soft-white) !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: calc(var(--z-overlay) + 10);
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all var(--duration-base) var(--ease-out);
    border-radius: 1px;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-overlay);
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-base) var(--ease-out);
}

.mobile-nav-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 100ms; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 150ms; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 200ms; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 250ms; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) { transition-delay: 300ms; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(6) { transition-delay: 350ms; }

.mobile-nav-cta {
    background: var(--color-charcoal);
    color: var(--color-soft-white) !important;
    padding: 0.5em 1.5em;
    border-radius: var(--radius-sm);
    font-size: var(--text-lg) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    overflow: hidden;
    background: linear-gradient(175deg, var(--surface-primary) 0%, var(--surface-secondary) 40%, var(--surface-tertiary) 100%);
}

/* Hero Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.sand-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sand-pattern-1 {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 60px,
        rgba(200, 192, 180, 0.08) 60px,
        rgba(200, 192, 180, 0.08) 61px
    );
    transform: rotate(-3deg) scale(1.2);
}

.sand-pattern-2 {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(200, 192, 180, 0.05) 80px,
        rgba(200, 192, 180, 0.05) 81px
    );
    transform: rotate(2deg) scale(1.3);
}

.enso-circle {
    border-radius: 50%;
    border: 2px solid rgba(125, 140, 108, 0.1);
    position: absolute;
}

.enso-hero {
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    top: 15%;
    right: -5%;
    border-width: 3px;
    border-color: rgba(125, 140, 108, 0.07);
    animation: ensoSpin 60s linear infinite;
}

.enso-hero::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 10%;
    width: 20px;
    height: 20px;
    background: var(--surface-primary);
    border-radius: 50%;
}

@keyframes ensoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ink-wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.04;
}

.ink-wash-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    top: 10%;
    left: -10%;
    animation: inkFloat 20s ease-in-out infinite alternate;
}

.ink-wash-2 {
    width: 400px;
    height: 400px;
    background: var(--color-cherry);
    bottom: 10%;
    right: -5%;
    animation: inkFloat 25s ease-in-out infinite alternate-reverse;
}

@keyframes inkFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

.floating-stone {
    position: absolute;
    background: var(--color-stone-light);
    border-radius: 50% 40% 50% 40%;
    opacity: 0.06;
}

.stone-1 {
    width: 12px;
    height: 10px;
    top: 30%;
    left: 15%;
    animation: stoneFloat 8s ease-in-out infinite alternate;
}

.stone-2 {
    width: 8px;
    height: 6px;
    top: 60%;
    right: 20%;
    animation: stoneFloat 10s ease-in-out infinite alternate-reverse;
}

.stone-3 {
    width: 16px;
    height: 12px;
    bottom: 25%;
    left: 30%;
    animation: stoneFloat 12s ease-in-out infinite alternate;
}

@keyframes stoneFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4em 1.2em;
    background: rgba(125, 140, 108, 0.1);
    border: 1px solid rgba(125, 140, 108, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-xl);
    color: var(--color-ink);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.title-line-1 {
    font-size: var(--text-hero);
    animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.title-line-2 {
    font-size: calc(var(--text-hero) * 0.85);
    color: var(--color-accent-dark);
    animation: fadeUp 1s var(--ease-out) 0.7s forwards;
    font-style: italic;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-stone);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-game-icon {
    position: relative;
    display: inline-block;
    margin-top: var(--space-3xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}

.game-icon-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(125, 140, 108, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-stone-light), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

.scroll-text {
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-stone-light);
}

/* ============================================================
   SAND DIVIDERS
   ============================================================ */
.sand-divider {
    padding: var(--space-md) 0;
    overflow: hidden;
}

.sand-divider-alt {
    transform: scaleX(-1);
}

.sand-svg {
    width: 100%;
    height: 40px;
    display: block;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header-left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-ink);
    letter-spacing: -0.03em;
}

.enso-small {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    margin: var(--space-lg) auto 0;
    position: relative;
    opacity: 0.4;
}

.enso-small::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--surface-primary);
    border-radius: 50%;
}

.section-header-left .enso-small {
    margin-left: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: var(--space-section) 0;
    background: var(--surface-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-lead {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-charcoal);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.about-text p {
    color: var(--color-stone);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--surface-tertiary);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-accent-dark);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-stone);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

/* Image Frame */
.image-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.image-frame:hover img {
    transform: scale(1.03);
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    opacity: 0.4;
}

.frame-tl {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.frame-br {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
    padding: var(--space-section) 0;
    background: var(--surface-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item-large .gallery-frame {
    height: 400px;
}

.gallery-item:not(.gallery-item-large):not(.gallery-item-wide) .gallery-frame {
    height: 300px;
}

.gallery-item-wide .gallery-frame {
    height: 350px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(to top, rgba(26,26,26,0.6) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-base) var(--ease-out);
}

.gallery-frame:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-frame:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    color: var(--color-soft-white);
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-style: italic;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    padding: var(--space-section) 0;
    background: var(--surface-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-2xl);
    background: var(--surface-card);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    opacity: 0.5;
}

.feature-icon {
    margin-bottom: var(--space-lg);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.feature-desc {
    color: var(--color-stone);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community-section {
    padding: var(--space-section) 0;
    background: var(--surface-secondary);
}

/* Live Counters */
.live-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.counter-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--surface-card);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    position: relative;
}

.counter-pulse {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 8px;
    height: 8px;
    background: #6a9f4a;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.counter-value {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.counter-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-stone);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-2xl);
    background: var(--surface-card);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    position: relative;
}

.testimonial-quote {
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-style: italic;
    color: var(--color-charcoal);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-charcoal);
}

.author-location {
    font-size: var(--text-xs);
    color: var(--color-stone);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    padding: var(--space-section) 0;
    background: var(--surface-primary);
}

.faq-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--surface-tertiary);
}

.faq-item:first-child {
    border-top: 1px solid var(--surface-tertiary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--color-charcoal);
    text-align: left;
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
    color: var(--color-accent-dark);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-stone-light);
    transition: transform var(--duration-base) var(--ease-out);
}

.faq-icon-v {
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-icon-v {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-out), padding var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--color-stone);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   SIGNUP SECTION
   ============================================================ */
.signup-section {
    padding: var(--space-section) 0;
    background: linear-gradient(175deg, var(--surface-secondary) 0%, var(--surface-tertiary) 100%);
    position: relative;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.signup-desc {
    color: var(--color-stone);
    font-size: var(--text-md);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.signup-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-charcoal);
    font-size: var(--text-sm);
}

.benefit-icon {
    flex-shrink: 0;
}

/* Form Styles */
.signup-form-wrapper {
    background: var(--surface-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.form-optional {
    font-weight: 300;
    color: var(--color-stone-light);
    font-size: var(--text-xs);
}

.form-input {
    width: 100%;
    padding: 0.8em 1em;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-charcoal);
    background: var(--surface-primary);
    border: 1.5px solid var(--surface-tertiary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-stone-light);
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(125, 140, 108, 0.1);
}

.form-input.error {
    border-color: #c0392b;
}

.form-error {
    display: block;
    font-size: var(--text-xs);
    color: #c0392b;
    margin-top: var(--space-xs);
    min-height: 1.2em;
}

/* Checkbox */
.form-group-checkbox {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-xs);
    color: var(--color-stone);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-stone-light);
    border-radius: 3px;
    margin-top: 1px;
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--color-soft-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(125, 140, 108, 0.2);
}

.checkbox-text a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Submit Button Loading */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success / Error Messages */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
}

.success-enso {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    position: relative;
    animation: ensoAppear 1s var(--ease-spring) forwards;
}

.success-enso::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--surface-card);
    border-radius: 50%;
}

@keyframes ensoAppear {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.form-success p {
    color: var(--color-stone);
}

.form-error-message {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(192, 57, 43, 0.05);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.form-error-message p {
    color: #c0392b;
    font-size: var(--text-sm);
}

.form-error-message a {
    color: #c0392b;
    text-decoration: underline;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section {
    padding: var(--space-section) 0;
    background: var(--surface-primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.trust-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.trust-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.trust-card p {
    color: var(--color-stone);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.trust-card a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-charcoal);
    color: var(--color-stone-light);
    padding-top: var(--space-md);
}

.footer-sand-top {
    margin-bottom: var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.footer-logo .logo-enso {
    border-color: var(--color-stone-light);
}

.footer-logo .logo-enso::before {
    background: var(--color-charcoal);
}

.footer-logo .logo-text {
    color: var(--color-soft-white);
}

.footer-desc {
    color: var(--color-stone-light);
    font-size: var(--text-sm);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-address {
    color: var(--color-stone);
    font-size: var(--text-xs);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-soft-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-stone-light);
    font-size: var(--text-sm);
    transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-icon {
    flex-shrink: 0;
    color: var(--color-stone);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-lg) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-stone);
}

.footer-age {
    font-size: var(--text-xs);
    color: var(--color-stone);
    opacity: 0.7;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie);
    background: rgba(45, 45, 45, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-soft-white);
    box-shadow: 0 -4px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.5s var(--ease-out);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) clamp(1.5rem, 3vw, 3rem);
}

.cookie-text p {
    font-size: var(--text-sm);
    color: var(--color-stone-light);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.cookie-text a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.5em 1.2em;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-accept {
    background: var(--color-accent);
    color: var(--color-soft-white);
}

.btn-accept:hover {
    background: var(--color-accent-light);
}

.btn-reject {
    background: transparent;
    color: var(--color-stone-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-reject:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--color-soft-white);
}

.btn-settings {
    background: transparent;
    color: var(--color-stone-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-settings:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--color-soft-white);
}

.cookie-settings-panel {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-setting-item {
    margin-bottom: var(--space-sm);
}

.cookie-setting-item label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-stone-light);
    cursor: pointer;
}

.cookie-setting-item input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

.cookie-settings-panel .btn-accept {
    margin-top: var(--space-md);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-section);
    background: var(--surface-primary);
    min-height: 80vh;
}

.legal-content .container {
    max-width: var(--container-narrow);
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-ink);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.legal-content .legal-date {
    font-size: var(--text-xs);
    color: var(--color-stone);
    margin-bottom: var(--space-3xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-charcoal);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--surface-tertiary);
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    color: var(--color-stone);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    color: var(--color-stone);
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.legal-content a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content strong {
    color: var(--color-charcoal);
    font-weight: 600;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-accent-dark);
    margin-bottom: var(--space-xl);
    text-decoration: none;
}

.legal-back-link:hover {
    color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item-large .gallery-frame,
    .gallery-item:not(.gallery-item-large):not(.gallery-item-wide) .gallery-frame,
    .gallery-item-wide .gallery-frame {
        height: 250px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .live-counters {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .testimonials {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .signup-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

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

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .signup-form-wrapper {
        padding: var(--space-lg);
    }

    .hero-game-icon {
        margin-top: var(--space-2xl);
    }

    .game-icon-img {
        width: 90px;
        height: 90px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .cookie-banner,
    .hero-bg-elements,
    .sand-divider,
    .hero-scroll-indicator,
    .mobile-nav-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }

    .title-line,
    .hero-badge,
    .hero-subtitle,
    .hero-actions,
    .hero-game-icon,
    .hero-scroll-indicator {
        opacity: 1;
        transform: none;
    }
}