/* =========================
   RESET & BASE
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-2: #11111a;
    --bg-3: #161622;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5fa;
    --text-dim: #9b9bb0;
    --text-soft: #6b6b80;
    --accent: #7c5cff;
    --accent-2: #ff5cc8;
    --accent-3: #5ce1ff;
    --gradient: linear-gradient(135deg, #7c5cff 0%, #ff5cc8 50%, #5ce1ff 100%);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(255, 92, 200, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* =========================
   FOND ROBLOX (studs + logo R)
   ========================= */
.rbx-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Motif des "studs" (les petits cylindres iconiques des briques Roblox) */
.rbx-studs {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0 4px, transparent 5px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.025) 0 12px, transparent 13px);
    background-size: 48px 48px, 48px 48px;
    background-position: 0 0, 24px 24px;
    opacity: 0.8;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Watermark logo Roblox (R stylisé 2019) */
.rbx-logo-watermark {
    position: absolute;
    width: 380px;
    height: 380px;
    color: rgba(124, 92, 255, 0.06);
    top: 8%;
    right: -80px;
    animation: rbxFloat 18s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(124, 92, 255, 0.15));
}
.rbx-logo-watermark.logo-2 {
    color: rgba(255, 92, 200, 0.05);
    top: auto;
    right: auto;
    bottom: 10%;
    left: -100px;
    width: 460px;
    height: 460px;
    animation-delay: -9s;
    filter: drop-shadow(0 0 30px rgba(255, 92, 200, 0.15));
}
@keyframes rbxFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: white; }

/* =========================
   CURSEUR
   ========================= */
.card { cursor: pointer; }

/* =========================
   TYPO
   ========================= */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 800px;
    padding: 0 1.5rem;
}

.section-header .section-subtitle { margin: 0 auto; }

/* =========================
   BOUTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(124, 92, 255, 0.8);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.6);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo-text {
    background: linear-gradient(180deg, #ffffff 0%, #cfcfe0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 12px rgba(124, 92, 255, 0.15);
}
.logo-mark {
    color: var(--accent);
    font-size: 1.4rem;
    animation: spin 8s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.6));
}
.logo .accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-left: 1px;
}
@media (max-width: 1100px) {
    .logo { font-size: 1.1rem; }
    .logo-mark { font-size: 1.25rem; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 1.2rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.nav-cta:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}
.cart-count {
    background: var(--gradient);
    color: white;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        padding: 2rem;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
    }
}

/* =========================
   HERO
   ========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}
.pulse {
    width: 8px; height: 8px;
    background: #5cff8d;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(92, 255, 141, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(92, 255, 141, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(92, 255, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 255, 141, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-soft);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
}

/* =========================
   GALERIE
   ========================= */
.gallery {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.filter {
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: all 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.6s forwards;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.card-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

/* Real image preview of a Roblox model */
.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-image {
    transform: scale(1.06);
}

.card-3d-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(120, 90, 255, 0.92), rgba(80, 60, 200, 0.92));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* Fallback gradient + icon (shown when Three.js is unavailable) */
.card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, var(--c, var(--accent)) 0%, transparent 60%),
        linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
    z-index: 1;
    transition: opacity 0.4s;
}
.card-fallback svg {
    width: 38%;
    height: 38%;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    animation: cardIconFloat 4s ease-in-out infinite;
}
@keyframes cardIconFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}
.card-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2;
}
.card-badge.new { background: var(--gradient); color: white; }
.card-badge.hot { background: rgba(255, 92, 92, 0.9); color: white; }

.card-info {
    padding: 1.25rem;
}
.card-cat {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
}
.card-style {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}
.card-delay {
    font-size: 0.78rem;
    color: var(--text-soft);
    padding: 0.2rem 0.55rem;
    background: var(--surface);
    border-radius: 100px;
    white-space: nowrap;
}

/* =========================
   VISUALISEUR
   ========================= */
.viewer-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.viewer-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 900px) {
    .viewer-wrap { grid-template-columns: 1fr; gap: 0; }
}

.viewer-canvas-wrap {
    aspect-ratio: 1;
    position: relative;
    background: radial-gradient(circle at center, var(--bg-3), var(--bg));
    min-height: 400px;
}
#viewer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.viewer-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid var(--border);
}
.vc-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: all 0.2s;
}
.vc-btn:hover { color: var(--text); background: var(--surface-hover); }
.vc-btn.active {
    background: var(--gradient);
    color: white;
}

.viewer-hint {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 0.75rem;
    color: var(--text-soft);
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 100px;
}

.viewer-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.badge {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}
.viewer-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.viewer-desc {
    color: var(--text-dim);
    margin-bottom: 2rem;
}
.viewer-specs {
    margin-bottom: 2rem;
}
.viewer-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.viewer-specs li span { color: var(--text-soft); }
.viewer-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.price-now {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}
.price-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}
.price-old {
    color: var(--text-soft);
    text-decoration: line-through;
    margin-left: 0.6rem;
}

/* CTA fin de galerie */
.gallery-cta {
    text-align: center;
    margin-top: 3.5rem;
    padding: 2rem;
}
.gallery-cta p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* =========================
   PROCESS + TARIFS
   ========================= */
.process {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}
.process-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.step {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    position: relative;
    transition: all 0.3s;
}
.step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}
.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}
.step p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Tarifs */
.pricing {
    max-width: 1200px;
    margin: 5rem auto 0;
    text-align: center;
}
.pricing-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}
.pricing-sub {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.price-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}
.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, var(--bg-2), rgba(124, 92, 255, 0.08));
    transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-card .badge {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    background: var(--gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.price-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.price-card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}
.price-card .price small {
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-soft);
}
.price-robux {
    display: inline-block;
    margin-top: -0.6rem;
    margin-bottom: 1.2rem;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.price-robux::before {
    content: '◆ ';
    color: var(--accent);
}
.price-card ul li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.price-card ul li::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.4rem;
}
.price-card ul li:last-child { border-bottom: none; }

/* =========================
   À PROPOS
   ========================= */
.about {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}
.about-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
}
.about-text p {
    color: var(--text-dim);
    margin: 1rem 0;
    font-size: 1.05rem;
}
.about-text strong { color: var(--text); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2.5rem;
}
@media (max-width: 600px) {
    .about-features { grid-template-columns: 1fr; }
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: all 0.3s;
}
.feature:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-3px);
}
.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}
.feature h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.feature p { font-size: 0.85rem; color: var(--text-dim); }

.about-visual {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orb {
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}
.float-card {
    position: absolute;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: floatY 4s ease-in-out infinite;
}
.float-card span { white-space: nowrap; }
.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { top: 50%; right: 5%; animation-delay: 1s; }
.card-3 { bottom: 10%; left: 15%; animation-delay: 2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.cube-mini {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 6px;
    transform: rotate(45deg);
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}
.cube-mini.purple { background: var(--accent-2); box-shadow: 0 0 20px rgba(255, 92, 200, 0.5); }
.cube-mini.pink { background: var(--accent-3); box-shadow: 0 0 20px rgba(92, 225, 255, 0.5); }

/* =========================
   CONTACT
   ========================= */
.contact {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}
.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.contact-form {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    resize: vertical;
}
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239b9bb0' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.contact-form select option { background: var(--bg-2); color: var(--text); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-hover);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-soft);
}
.contact-form button {
    align-self: center;
    margin-top: 0.5rem;
}
.form-status {
    margin-top: 1.5rem;
    min-height: 1.5rem;
    color: #5cff8d;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.form-status.visible { opacity: 1; }

/* =========================
   DISCORD CONTACT CARD
   ========================= */
.discord-section .contact-inner { text-align: center; }

.discord-card {
    margin: 2.5rem auto 1.5rem;
    max-width: 560px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(124, 92, 255, 0.08) 100%);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
    transition: all 0.3s;
    box-shadow: 0 12px 40px -20px rgba(88, 101, 242, 0.5);
}
.discord-card:hover {
    border-color: #5865F2;
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -20px rgba(88, 101, 242, 0.7);
}

.discord-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865F2;
    border-radius: 16px;
    box-shadow: 0 8px 22px -6px rgba(88, 101, 242, 0.7);
}
.discord-icon svg {
    width: 38px;
    height: 38px;
    color: white;
}

.discord-info { flex: 1; min-width: 0; }
.discord-label {
    font-size: 0.75rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
}
.discord-handle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text);
    word-break: break-all;
    transition: color 0.2s;
}
.discord-handle:hover { color: #8c95f5; }

.discord-btn { flex-shrink: 0; background: #5865F2 !important; box-shadow: 0 8px 22px -6px rgba(88, 101, 242, 0.6) !important; }
.discord-btn:hover { background: #4752c4 !important; }

@media (max-width: 600px) {
    .discord-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .discord-info { text-align: center; }
}

/* Small Discord CTA in navbar */
.nav-cta.discord-cta {
    background: #5865F2;
    color: white;
    border-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-cta.discord-cta:hover {
    background: #4752c4;
}

.contact-note {
    margin-top: 1.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.contact-note strong { color: var(--text-dim); }

/* =========================
   FOOTER
   ========================= */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand p {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.footer-col h5 {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}
.footer-col a {
    display: block;
    padding: 0.3rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* =========================
   MODAL
   ========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    z-index: 2;
    transition: all 0.2s;
}
.modal-close:hover {
    background: var(--accent);
    color: white;
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.modal-body--3d {
    align-items: start;
}
.modal-body--3d .modal-thumb {
    aspect-ratio: unset;
    justify-self: stretch;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-body--3d .modal-thumb {
        width: 100% !important;
        max-height: min(52vh, 420px);
    }
}
.modal-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-thumb canvas { width: 100%; height: 100%; display: block; position: relative; z-index: 2; }

/* Full GLB / GLTF viewer inside modal (ArtStation-style orbit) */
.model-viewer-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #454039 0%, #35302b 100%);
}

.model-viewer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    touch-action: none;
    cursor: grab;
    outline: none;
}
.model-viewer-canvas:active {
    cursor: grabbing;
}

.model-viewer-loading,
.model-viewer-error {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    pointer-events: none;
    max-width: calc(100% - 2rem);
    text-align: center;
    line-height: 1.35;
}

.model-viewer-loading {
    top: 42%;
    color: var(--text-soft);
    background: rgba(10, 10, 15, 0.65);
    border: 1px solid var(--border);
}

.model-viewer-error {
    top: 42%;
    color: #ff8a8a;
    background: rgba(40, 10, 10, 0.75);
    border: 1px solid rgba(255, 100, 100, 0.35);
}

/* =========================
   EXECUTIONER SWORDS
   (slam into the upper corners of the modal — Gold Roger style)
   Timing: 0.7s throw → 2s hold → 0.5s fade  (total 3.2s)
   ========================= */
.modal-content { overflow: visible; }

.sword {
    position: absolute;
    width: 50px;
    height: 340px;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.75));
    will-change: transform, opacity;
}

.sword-left {
    top: -170px;
    left: -25px;
    transform-origin: 50% 50%;
    animation: swordLeft 3.2s cubic-bezier(0.18, 0.85, 0.25, 1.05) both;
}

.sword-right {
    top: -170px;
    right: -25px;
    transform-origin: 50% 50%;
    animation: swordRight 3.2s 0.16s cubic-bezier(0.18, 0.85, 0.25, 1.05) both;
}

@keyframes swordLeft {
    /* Throw + plant: 0% → 22% (0 → 0.7s) */
    0%   { transform: translate(-620px, -640px) rotate(-220deg); opacity: 0; }
    11%  { opacity: 1; }
    18%  { transform: translate(22px, 22px) rotate(-28deg); opacity: 1; }
    22%  { transform: translate(0, 0) rotate(-45deg); opacity: 1; }
    /* Hold: 22% → 84% (0.7s → 2.7s) */
    84%  { transform: translate(0, 0) rotate(-45deg); opacity: 1; }
    /* Fade out: 84% → 100% (2.7s → 3.2s) */
    100% { transform: translate(-8px, -8px) rotate(-50deg); opacity: 0; }
}

@keyframes swordRight {
    0%   { transform: translate(620px, -640px) rotate(220deg); opacity: 0; }
    11%  { opacity: 1; }
    18%  { transform: translate(-22px, 22px) rotate(28deg); opacity: 1; }
    22%  { transform: translate(0, 0) rotate(45deg); opacity: 1; }
    84%  { transform: translate(0, 0) rotate(45deg); opacity: 1; }
    100% { transform: translate(8px, -8px) rotate(50deg); opacity: 0; }
}

@media (max-width: 800px) {
    .sword { width: 40px; height: 270px; }
    .sword-left  { top: -135px; left: -20px; }
    .sword-right { top: -135px; right: -20px; }
}

@media (max-width: 500px) {
    .sword { width: 30px; height: 200px; }
    .sword-left  { top: -100px; left: -15px; }
    .sword-right { top: -100px; right: -15px; }
}

@media (prefers-reduced-motion: reduce) {
    .sword { animation: none !important; opacity: 1; }
    .sword-left  { transform: rotate(-45deg); }
    .sword-right { transform: rotate(45deg); }
}
.modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.modal-info .cat {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
}
.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.modal-info p { color: var(--text-dim); margin-bottom: 1.5rem; }
.modal-info ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.modal-info ul li span { color: var(--text-soft); }
.modal-info .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.modal-cta {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border);
}
.modal-cta p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================
   REVEAL ON SCROLL
   ========================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BACKGROUND MUSIC TOGGLE
   ========================= */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.music-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(120, 90, 255, 0.5);
    box-shadow: 0 10px 26px rgba(120, 90, 255, 0.25);
}

.music-toggle .icon-pause { display: none; }
.music-toggle .icon-play { display: block; }
.music-toggle.playing .icon-pause { display: block; }
.music-toggle.playing .icon-play { display: none; }

.music-toggle.playing {
    background: linear-gradient(135deg, rgba(120, 90, 255, 0.85), rgba(80, 60, 200, 0.85));
    border-color: rgba(255, 255, 255, 0.25);
}

.music-toggle.error {
    background: rgba(220, 60, 80, 0.85);
    border-color: rgba(255, 120, 140, 0.6);
    animation: musicShake 0.5s ease-in-out;
}

@keyframes musicShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.music-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(120, 90, 255, 0.55);
    opacity: 0;
    pointer-events: none;
}

.music-toggle.playing .music-ring {
    animation: musicPulse 2.2s ease-out infinite;
}
.music-toggle.playing .music-ring.delay {
    animation-delay: 1.1s;
}

@keyframes musicPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0;   }
}

@media (max-width: 600px) {
    .music-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}
