/* ========================================
   PixelForge AI — Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --secondary: #00D9FF;
    --accent: #FF6B9D;
    --yellow: #FFD93D;
    --green: #00E676;
    --dark-bg: #0a0a0f;
    --dark-2: #0f0f17;
    --card-bg: #13131a;
    --card-border: #1e1e2a;
    --text-primary: #ffffff;
    --text-secondary: #8B8B9E;
    --text-muted: #5a5a6e;
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #00D9FF 100%);
    --gradient-2: linear-gradient(135deg, #FF6B9D 0%, #6C5CE7 100%);
    --gradient-3: linear-gradient(135deg, #00D9FF 0%, #A29BFE 100%);
    --gradient-4: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 50%, #6C5CE7 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.4);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Warm sunrise palette — distinct from dark mode, inviting, energetic */
    --primary: #FF6B6B;
    --primary-light: #FF8E8E;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --yellow: #FFB627;
    --green: #06D6A0;
    --dark-bg: #FFF8F0;
    --dark-2: #FFEFE0;
    --card-bg: #FFFFFF;
    --card-border: #FFE4C4;
    --text-primary: #2D1810;
    --text-secondary: #6B4423;
    --text-muted: #A0826D;
    --gradient-1: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --gradient-3: linear-gradient(135deg, #FFE66D 0%, #FF6B6B 100%);
    --gradient-4: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
    --shadow-sm: 0 2px 12px rgba(255, 107, 107, 0.08);
    --shadow-md: 0 4px 20px rgba(255, 107, 107, 0.12);
    --shadow-lg: 0 10px 40px rgba(255, 107, 107, 0.15);
    --shadow-glow: 0 0 40px rgba(255, 230, 109, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    cursor: none;
}

[data-theme="light"] body {
    background:
        radial-gradient(ellipse at top, rgba(255, 230, 109, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        var(--dark-bg);
    background-attachment: fixed;
}

@media (max-width: 1024px) {
    body { cursor: auto; }
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--dark-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen.paused {
    filter: blur(4px);
    pointer-events: none;
}

.loading-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-pixel {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary);
    animation: pixelSpin 2s ease-in-out infinite;
}

@keyframes pixelSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(90deg) scale(1.1); }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glitchText 4s ease-in-out infinite;
}

.logo-accent {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes glitchText {
    0%, 90%, 100% { transform: translate(0); filter: none; }
    92% { transform: translate(-2px, 1px); filter: hue-rotate(30deg); }
    94% { transform: translate(2px, -1px); filter: hue-rotate(-30deg); }
    96% { transform: translate(-1px, -1px); filter: hue-rotate(15deg); }
    98% { transform: translate(1px, 1px); filter: none; }
}

.logo-sub {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 0.4em;
    text-shadow: 0 0 20px var(--secondary);
}

.loading-bar-container {
    width: 240px;
    height: 4px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-4);
    background-size: 200% 100%;
    animation: barShine 1.5s linear infinite;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes barShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.loading-percentage {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--primary-light);
    letter-spacing: 0.1em;
}

.loading-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    min-height: 1.2em;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor-dot.hovering {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    opacity: 0.6;
}

.cursor-outline.hovering {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* ========================================
   PARTICLE CANVAS
   ======================================== */
.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 0;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 245, 250, 0.85);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform var(--transition);
}

.nav-logo:hover { transform: scale(1.05); }

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.logo-name {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.1);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-ghost:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform var(--transition);
    display: inline-block;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding-left: 2px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(255, 107, 107, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 107, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .navbar {
    background: rgba(255, 248, 240, 0.85);
    border-bottom: 1px solid rgba(255, 228, 196, 0.5);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .feature-card,
[data-theme="light"] .price-card,
[data-theme="light"] .about-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .tool-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 16px rgba(255, 107, 107, 0.06);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .price-card:hover,
[data-theme="light"] .about-card:hover {
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
    transform: translateY(-4px);
}

[data-theme="light"] .section-tag {
    background: linear-gradient(135deg, #FFE66D 0%, #FF6B6B 100%);
    color: #fff;
}

[data-theme="light"] .btn-ghost {
    border: 2px solid var(--primary);
    color: var(--primary);
}

[data-theme="light"] .btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] #genPrompt:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

[data-theme="light"] .gen-style.active,
[data-theme="light"] .gen-aspect.active {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.3);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 4s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.45s backwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-visual { display: none; }
}

.pixel-orb {
    width: 100%;
    height: 100%;
    position: relative;
    animation: mascotFloat 6s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-pixels {
    position: absolute;
    inset: 0;
}

.floating-pixel {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    box-shadow: 0 0 10px currentColor;
    animation: floatAround 8s linear infinite;
    image-rendering: pixelated;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) rotate(360deg); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: fadeInUp 1s ease 1s backwards;
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    position: relative;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ========================================
   SECTION GENERIC
   ======================================== */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 100px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: var(--primary-light);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(108, 92, 231, 0.03) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.about-card:hover::before { transform: scaleX(1); }

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.2) rotate(-10deg);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-stat {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.about-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 217, 255, 0.15), transparent 50%);
}

.about-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 2.5rem;
}

@media (max-width: 900px) {
    .feature-large { grid-column: span 1; grid-row: span 1; }
}

.feature-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .feature-wide { grid-column: span 1; }
}

.feature-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.05);
}

.feature-large .feature-visual { height: 300px; }
.feature-visual.small { height: 120px; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Brain animation */
.anim-brain {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-node {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: brainPulse 2s ease-in-out infinite;
}

.ai-node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.ai-node:nth-child(2) { top: 20%; right: 20%; animation-delay: 0.5s; background: var(--secondary); box-shadow: 0 0 20px var(--secondary); }
.ai-node:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 1s; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.ai-node:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.ai-connection {
    position: absolute;
    top: 32%;
    left: 32%;
    width: 36%;
    height: 36%;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

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

/* Palette */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 200px;
}

.palette-grid div {
    aspect-ratio: 1;
    border-radius: 4px;
    animation: paletteBlink 3s ease-in-out infinite;
}

.palette-grid div:nth-child(2n) { animation-delay: 0.2s; }
.palette-grid div:nth-child(3n) { animation-delay: 0.4s; }
.palette-grid div:nth-child(5n) { animation-delay: 0.6s; }

@keyframes paletteBlink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.8); }
}

/* Export animation */
.anim-export {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.export-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.export-bars {
    display: flex;
    gap: 4px;
}

.export-bars div {
    width: 6px;
    height: 20px;
    background: var(--secondary);
    border-radius: 2px;
    animation: barHeight 1s ease-in-out infinite;
}

.export-bars div:nth-child(1) { animation-delay: 0s; }
.export-bars div:nth-child(2) { animation-delay: 0.1s; }
.export-bars div:nth-child(3) { animation-delay: 0.2s; }
.export-bars div:nth-child(4) { animation-delay: 0.3s; }

@keyframes barHeight {
    0%, 100% { height: 10px; }
    50% { height: 28px; }
}

/* Grid animation */
.anim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 120px;
}

.anim-grid div {
    aspect-ratio: 1;
    background: var(--card-border);
    border-radius: 2px;
    animation: gridBlink 1.5s ease-in-out infinite;
}

.anim-grid div:nth-child(2n) { animation-delay: 0.1s; }
.anim-grid div:nth-child(3n) { animation-delay: 0.2s; }
.anim-grid div:nth-child(5n) { animation-delay: 0.3s; }
.anim-grid div:nth-child(7n) { animation-delay: 0.4s; }

@keyframes gridBlink {
    0%, 100% { background: var(--card-border); }
    50% { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
}

/* Remix */
.anim-remix .remix-arrow {
    font-size: 4rem;
    color: var(--accent);
    animation: rotateReverse 3s linear infinite;
    text-shadow: 0 0 30px var(--accent);
}

@keyframes rotateReverse {
    to { transform: rotate(-360deg); }
}

/* Stream animation */
.anim-stream {
    display: flex;
    gap: 6px;
}

.stream-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    animation: streamBounce 0.8s ease-in-out infinite;
    box-shadow: 0 0 15px currentColor;
}

.stream-dot:nth-child(1) { background: var(--primary); animation-delay: 0s; }
.stream-dot:nth-child(2) { background: var(--secondary); animation-delay: 0.1s; }
.stream-dot:nth-child(3) { background: var(--accent); animation-delay: 0.2s; }
.stream-dot:nth-child(4) { background: var(--yellow); animation-delay: 0.3s; }
.stream-dot:nth-child(5) { background: var(--accent); animation-delay: 0.4s; }
.stream-dot:nth-child(6) { background: var(--secondary); animation-delay: 0.5s; }
.stream-dot:nth-child(7) { background: var(--primary); animation-delay: 0.6s; }
.stream-dot:nth-child(8) { background: var(--primary-light); animation-delay: 0.7s; }

@keyframes streamBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   PLAYGROUND
   ======================================== */
.playground {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 217, 255, 0.03) 100%);
}

.playground-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .playground-layout { grid-template-columns: 1fr; }
}

.playground-canvas-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.tool-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition);
}

.tool-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.size-control input[type="range"] {
    width: 80px;
    accent-color: var(--primary);
}

.playground-canvas {
    width: 100%;
    height: auto;
    background: #1a1a2e;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: crosshair;
    display: block;
    aspect-ratio: 1;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.canvas-info {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.1em;
}

.i2i-section {
    margin-top: 1rem;
    text-align: center;
    border-top: 1px dashed var(--card-border);
    padding-top: 1rem;
}

.i2i-btn {
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px dashed var(--card-border);
    background: transparent;
    color: var(--text-primary);
    transition: all var(--transition);
}

[data-theme="light"] .i2i-btn {
    border-color: rgba(255, 107, 107, 0.4);
}

[data-theme="light"] .i2i-btn:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.i2i-btn:hover {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

[data-theme="light"] .i2i-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.i2i-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

.playground-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.playground-sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', monospace;
}

/* ========================================
   AI GENERATOR (replaces pixel playground)
   ======================================== */
.generator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .generator-layout { grid-template-columns: 1fr; }
}

.generator-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gen-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gen-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-weight: 600;
}

#genPrompt {
    width: 100%;
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition);
}

#genPrompt:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.gen-styles, .gen-aspects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gen-style, .gen-aspect {
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.gen-style:hover, .gen-aspect:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.gen-style.active, .gen-aspect.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

#genBtn {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.gen-btn-content, .gen-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.gen-tip {
    background: var(--dark-2);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gen-tip strong { color: var(--primary-light); }

.generator-output {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.output-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
}

.output-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.output-empty h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.output-empty p {
    font-size: 0.9rem;
    max-width: 280px;
}

.output-loading {
    width: 100%;
    height: 100%;
    min-height: 480px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
}

.loading-shimmer {
    width: 80%;
    max-width: 400px;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, var(--dark-2) 0%, var(--card-border) 50%, var(--dark-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.loading-progress {
    width: 80%;
    max-width: 400px;
    height: 4px;
    background: var(--dark-2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.output-result {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    display: flex;
}

#genImage {
    width: 100%;
    height: auto;
    display: block;
    background: var(--dark-2);
}

.output-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.gen-examples {
    text-align: center;
    padding: 2rem 1rem 0;
    border-top: 1px solid var(--card-border);
}

.examples-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-chip {
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.example-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.palette-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.palette-preset {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--card-border);
    transition: all var(--transition);
    background: linear-gradient(45deg, #6C5CE7 25%, #00D9FF 25%, #00D9FF 50%, #FF6B9D 50%, #FF6B9D 75%, #FFD93D 75%);
    background-size: 12px 12px;
    cursor: pointer;
}

.palette-preset[data-palette="nes"] {
    background: linear-gradient(45deg, #7C7C7C 25%, #0000FF 25%, #0000FF 50%, #0000FC 50%, #0000FC 75%, #4424BC 75%);
    background-size: 12px 12px;
}

.palette-preset[data-palette="gameboy"] {
    background: linear-gradient(45deg, #0F380F 25%, #306230 25%, #306230 50%, #8BAC0F 50%, #8BAC0F 75%, #9BBC0F 75%);
    background-size: 12px 12px;
}

.palette-preset[data-palette="pico8"] {
    background: linear-gradient(45deg, #000000 25%, #1D2B53 25%, #1D2B53 50%, #7E2553 50%, #7E2553 75%, #FFA300 75%);
    background-size: 12px 12px;
}

.palette-preset[data-palette="pastel"] {
    background: linear-gradient(45deg, #FFB3BA 25%, #FFDFBA 25%, #FFDFBA 50%, #FFFFBA 50%, #FFFFBA 75%, #BAFFC9 75%);
    background-size: 12px 12px;
}

.palette-preset:hover { transform: scale(1.1); }
.palette-preset.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3); }

.palette-colors {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 1.25rem;
}

.palette-color {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.palette-color:hover { transform: scale(1.15); z-index: 1; }
.palette-color.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--primary), 0 0 10px var(--primary);
    transform: scale(1.1);
}

.custom-color {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.custom-color input[type="color"] {
    width: 50px;
    height: 32px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
}

.current-color-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.current-color-display {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    box-shadow: 0 0 15px currentColor;
    border: 2px solid var(--card-border);
}

.playground-tip {
    padding: 1rem;
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.playground-tip strong { color: var(--primary-light); }

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.gallery-item canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 157, 0.03) 100%);
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    transition: all var(--transition);
}

.toggle-label.active {
    background: var(--primary);
    color: white;
}

.save-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: var(--green);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
}

.toggle-switch {
    display: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.price-card.featured {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.price-card.featured:hover {
    transform: translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: var(--gradient-1);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 100px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.5);
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    transition: all var(--transition);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-features li:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.open {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background var(--transition);
}

.faq-question:hover {
    background: rgba(108, 92, 231, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ========================================
   FEEDBACK
   ======================================== */
.feedback-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    align-items: start;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(108, 92, 231, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 217, 255, 0.08), transparent 50%);
}

@media (max-width: 800px) {
    .feedback-box { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
}

.feedback-content .section-tag { margin-bottom: 1rem; }
.feedback-content .section-title { margin-bottom: 1rem; }
.feedback-content .section-sub { margin-bottom: 2rem; }

.feedback-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.channel:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.channel-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
}

[data-theme="light"] .channel-icon {
    background: rgba(255, 107, 107, 0.1);
}

.channel strong {
    color: var(--text-primary);
}

.channel strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.channel span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-form h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all var(--transition);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.star:hover,
.star.active {
    color: var(--yellow);
    text-shadow: 0 0 10px var(--yellow);
    transform: scale(1.2);
}

.form-success {
    padding: 0.75rem 1rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-success.show { display: block; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.875rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    min-width: 0;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover { color: var(--text-primary); }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 50;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions button {
        flex: 1;
    }
}

[data-theme="light"] .cookie-banner {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.18);
}

/* ========================================
   THEME PICKER (shown after loading screen, first visit)
   ======================================== */
.theme-picker {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.theme-picker.show {
    opacity: 1;
    visibility: visible;
}

.theme-picker-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .theme-picker-bg {
    background: rgba(255, 248, 240, 0.85);
}

.theme-picker-content {
    position: relative;
    text-align: center;
    max-width: 540px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-picker.show .theme-picker-content {
    transform: scale(1) translateY(0);
}

.theme-picker-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.theme-picker-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

[data-theme="light"] .theme-picker-title {
    color: #2D1810;
}

.theme-picker-sub {
    color: #8B8B9E;
    font-size: 1rem;
    margin-bottom: 2rem;
}

[data-theme="light"] .theme-picker-sub {
    color: #6B4423;
}

.theme-picker-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .theme-picker-options {
        grid-template-columns: 1fr;
    }
}

.theme-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
}

[data-theme="light"] .theme-option {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 107, 107, 0.2);
    color: #2D1810;
}

.theme-option:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.3);
}

[data-theme="light"] .theme-option:hover {
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.theme-option.selected {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.25);
}

[data-theme="light"] .theme-option.selected {
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.25);
}

.theme-option.selected .theme-option-label::after {
    content: ' · Last used';
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.8;
}

[data-theme="light"] .theme-option.selected .theme-option-label::after {
    color: #FF6B6B;
}

/* Theme preview thumbnail */
.theme-preview {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.theme-preview-dark {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border: 1px solid #1e1e2a;
}

.theme-preview-light {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4C4 100%);
    border: 1px solid #FFE4C4;
}

.tp-bar {
    height: 16%;
    background: rgba(108, 92, 231, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-preview-light .tp-bar {
    background: rgba(255, 107, 107, 0.2);
    border-bottom: 1px solid rgba(255, 228, 196, 0.5);
}

.tp-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 8px;
}

.tp-grid > div {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.theme-preview-light .tp-grid > div {
    background: rgba(255, 255, 255, 0.7);
}

.tp-card {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 35%;
    height: 25%;
    background: linear-gradient(135deg, #6C5CE7, #00D9FF);
    border-radius: 4px;
}

.theme-preview-light .tp-card {
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
}

.theme-option-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.theme-option-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.theme-picker-note {
    color: #8B8B9E;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

[data-theme="light"] .theme-picker-note {
    color: #6B4423;
}

/* ========================================
   404 NOT FOUND PAGE
   ======================================== */
.notfound-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.notfound-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.notfound-content {
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.notfound-art {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-grid-404 {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    transform: rotate(45deg);
}

.pixel-cell {
    background: var(--primary);
    border-radius: 2px;
    opacity: 0;
    animation: pixelFade 0.6s ease forwards;
}

.pixel-cell:nth-child(3n) { background: var(--secondary); }
.pixel-cell:nth-child(5n) { background: var(--accent); }
.pixel-cell:nth-child(7n) { background: var(--primary-light); }

@keyframes pixelFade {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 0.5; transform: scale(1); }
}

.notfound-ghost {
    font-size: 5rem;
    animation: ghostFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.5));
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.notfound-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    font-family: 'Press Start 2P', monospace;
}

.notfound-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.notfound-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.notfound-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.notfound-links p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.notfound-links-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.notfound-links-grid a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    transition: all var(--transition);
}

.notfound-links-grid a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

[data-theme="light"] .pixel-cell { opacity: 0.4; }

/* ========================================
   LEGAL PAGES (Privacy, Terms)
   ======================================== */
.legal-page {
    min-height: 100vh;
    background: var(--dark-bg);
    padding: 2rem 0;
}

.legal-nav {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
}

.legal-nav-brand .logo-icon { color: var(--primary); }
.legal-nav-brand .logo-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-header {
    margin-bottom: 3rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 2rem;
}

.legal-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', monospace;
}

[data-theme="light"] .legal-tag {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

[data-theme="light"] .legal-header h1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(108, 92, 231, 0.4);
    text-underline-offset: 3px;
    transition: all var(--transition);
}

.legal-content a:hover {
    text-decoration-color: var(--primary);
}

[data-theme="light"] .legal-content a {
    color: #FF6B6B;
    text-decoration-color: rgba(255, 107, 107, 0.4);
}

.legal-content code {
    background: var(--dark-2);
    color: var(--primary-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

[data-theme="light"] .legal-content code {
    background: #FFEFE0;
    color: #FF6B6B;
}

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

.legal-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-footer a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer a:hover { color: var(--primary); }

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-step strong {
    display: block;
    margin-bottom: 0.25rem;
}

.modal-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   MOBILE NAV
   ======================================== */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--card-bg);
        border-left: 1px solid var(--card-border);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

    .nav-menu.open { transform: translateX(0); }

    .nav-link { padding: 0.875rem 1rem; font-size: 1rem; }
    .nav-link.active::after { display: none; }

    .nav-toggle { display: flex; }
    .nav-actions .btn { display: none; }
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(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;
    }
}
