/* ============================================
   Inazuma Eleven VR Save Editor — Landing Page
   Blue / Gold palette
   ============================================ */

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-rgb: 59, 130, 246;
    --dark: #0a0f1a;
    --dark-light: #0f172a;
    --dark-card: #1e293b;
    --gray: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

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

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.4);
}

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

.nav-kofi {
    background: rgba(255, 94, 91, 0.12);
    color: #ff6b6b !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 94, 91, 0.25);
    transition: var(--transition);
}

.nav-kofi:hover {
    background: rgba(255, 94, 91, 0.22);
    border-color: rgba(255, 94, 91, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 94, 91, 0.2);
}

.nav-kofi::after { display: none !important; }
.nav-kofi i { font-size: 13px; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-gradient {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Hero Editor Demo Widget
   ============================================ */
.hero-demo {
    margin: 0 auto 36px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.demo-desktop-bg {
    background: linear-gradient(135deg, #060d1f 0%, #0d1b33 60%, #060d1f 100%);
    border-radius: 20px;
    padding: 48px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.demo-desktop-bg::after {
    content: '● ● ●';
    position: absolute;
    top: 14px; left: 20px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 4px;
}

.demo-editor-widget {
    background: rgba(15, 23, 42, 0.97);
    border-radius: 14px;
    padding: 16px;
    width: 320px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 24px rgba(var(--primary-rgb), 0.06);
    position: relative;
    overflow: hidden;
    animation: floatWidget 4s ease-in-out infinite;
}

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

.demo-editor-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.12;
    transition: background 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.demo-editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.demo-editor-icon-wrap {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.6s ease, color 0.6s ease;
}

.demo-editor-title-wrap { flex: 1; min-width: 0; }

.demo-editor-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    transition: opacity 0.4s ease;
}

.demo-process-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #4ADE80;
}

.demo-process-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.demo-val-section {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
}

.demo-val-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.demo-val-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Courier New', monospace;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-val-box.new-val {
    border-color: rgba(var(--primary-rgb), 0.45);
    background: rgba(var(--primary-rgb), 0.07);
    color: var(--primary);
    transition: border-color 0.6s ease, background 0.6s ease, color 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
}

.demo-action-row {
    display: flex;
    gap: 8px;
    margin-top: 11px;
    position: relative;
    z-index: 1;
}

.demo-apply-btn {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 7px;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-align: center;
    transition: background 0.6s ease;
}

.demo-freeze-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    transition: all 0.4s ease;
}

.demo-freeze-btn.active {
    background: rgba(100, 200, 255, 0.1);
    border-color: rgba(100, 200, 255, 0.35);
    color: #64C8FF;
}

.demo-status-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.demo-status-indicator {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.demo-status-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.4s ease;
}

.demo-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.demo-hint i { color: var(--primary); }

/* Hero text below demo */
.hero-description {
    font-size: 19px;
    color: var(--gray);
    max-width: 620px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-description em { font-style: italic; color: var(--light); }

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.65s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat i { color: var(--primary); font-size: 18px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.mouse {
    width: 24px; height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}

.wheel {
    width: 3px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0%, 20% { transform: translate(-50%, 0); opacity: 1; }
    100%     { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-indicator p {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn i { font-size: 18px; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.btn-gamebanana {
    background: rgba(255, 140, 0, 0.1);
    color: #ffaa33;
    border: 1px solid rgba(255, 140, 0, 0.25);
    text-decoration: none;
}

.btn-gamebanana:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-4px);
    color: #ffaa33;
    box-shadow: 0 8px 16px rgba(255, 140, 0, 0.2);
}

.btn-gamebanana-icon {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.btn-github-alt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--white);
    margin-top: 20px;
    font-family: inherit;
}

.btn-github-alt:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
}

.btn-gamebanana-alt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 140, 0, 0.25);
    background: rgba(255, 140, 0, 0.08);
    color: #ffaa33;
    margin-top: 20px;
    font-family: inherit;
}

.btn-gamebanana-alt:hover {
    border-color: rgba(255, 140, 0, 0.5);
    background: rgba(255, 140, 0, 0.18);
    transform: translateY(-2px);
    color: #ffaa33;
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.2);
}

.btn-github-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
    font-family: inherit;
    cursor: pointer;
}

.btn-github-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

/* ============================================
   Section Header (Reusable)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 120px 0;
    background: var(--dark-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.1);
}

.feature-icon {
    width: 60px; height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(var(--primary-rgb), 0.18);
}

.feature-icon i {
    font-size: 26px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================
   Preview Section
   ============================================ */
.screenshots {
    padding: 120px 0;
    background: var(--dark);
}

.screenshots-grid {
    display: grid;
    gap: 64px;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.screenshot-item:nth-child(even) { direction: rtl; }
.screenshot-item:nth-child(even) > * { direction: ltr; }

.screenshot-image {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

/* Real screenshot frame */
.real-screenshot-frame {
    background: #0c1120;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.screenshot-image:hover .real-screenshot-frame {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
    transform: scale(1.02);
}

.real-screenshot-chrome {
    background: #141c2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chrome-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chrome-dot:nth-child(1) { background: #FF5F57; }
.chrome-dot:nth-child(2) { background: #FFBD2E; }
.chrome-dot:nth-child(3) { background: #28CA41; }

.chrome-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-left: 6px;
}

.real-screenshot-frame > img {
    width: 100%;
    display: block;
    max-height: 280px;
    object-fit: cover;
    object-position: top;
}

/* Feature tiles grid (preview 3) */
.feature-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 12px;
}

.feature-tile {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-tile img {
    width: 100%;
    display: block;
    object-fit: contain;
}

/* ============================================
   Spirits Section
   ============================================ */
.spirits-section {
    padding: 120px 0;
    background: var(--dark);
}

.spirits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.spirit-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.spirit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.14);
}

.spirit-card:hover .spirit-card-overlay {
    opacity: 1;
}

.spirit-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    font-size: 22px;
    color: white;
}

.spirit-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.spirit-card-name {
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.spirit-card:hover .spirit-card-name {
    color: white;
    background: rgba(var(--primary-rgb), 0.25);
}

/* ============================================
   Spirit Modal
   ============================================ */
.modal-spirit {
    max-width: 480px;
}

.spirit-modal-header {
    text-align: center;
    padding: 44px 32px 20px;
}

.spirit-modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.spirit-modal-header p {
    font-size: 13px;
    color: var(--gray);
}

.spirit-modal-variants {
    display: flex;
    gap: 16px;
    padding: 8px 28px 32px;
}

.spirit-variant-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spirit-variant-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    background: #0a0f1a;
}

.spirit-variant-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.spirit-variant-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Screenshot text side */
.screenshot-info { position: relative; }

.screenshot-number {
    font-size: 64px;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.16);
    line-height: 1;
    margin-bottom: 16px;
}

.screenshot-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.screenshot-info p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: 120px 0;
    background: var(--dark-light);
}

.download-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 64px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.download-icon {
    width: 80px; height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.download-icon i { font-size: 38px; color: var(--white); }

.download-card h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-card > p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn-download {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 48px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
    margin-bottom: 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-download i { font-size: 22px; }

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.5);
}

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.info-item i { color: var(--primary); font-size: 15px; }

.download-section-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content { text-align: center; }

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 34px; height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.footer-text p {
    color: var(--gray);
    font-size: 14px;
    margin: 4px 0;
}

.footer-kofi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 22px;
    background: rgba(255, 94, 91, 0.1);
    border: 1px solid rgba(255, 94, 91, 0.25);
    border-radius: 50px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-kofi:hover {
    background: rgba(255, 94, 91, 0.2);
    border-color: rgba(255, 94, 91, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 94, 91, 0.2);
    color: #ff6b6b;
}

.footer-kofi i { font-size: 13px; }

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #111827;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.modal.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    font-size: 16px;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 48px 40px 28px;
}

.modal-icon {
    width: 80px; height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.modal-icon i { font-size: 36px; color: var(--white); }

.modal-icon-github {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    box-shadow: none;
}

.modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.modal-header p { color: var(--gray); font-size: 15px; }

.modal-body {
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-large { max-width: 800px; }

.modal-with-footer {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body-with-footer {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.modal-footer {
    padding: 20px 40px;
    background: rgba(5, 8, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 0;
    border-radius: 0 0 24px 24px;
}

/* Download option rows in modal */
.download-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
    cursor: pointer;
}

.download-option:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateX(8px);
}

.download-option-icon {
    width: 56px; height: 56px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-option-icon i { font-size: 26px; color: var(--primary); }

.download-option-info { flex: 1; }

.download-option-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.download-option-info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.download-option-meta { display: flex; gap: 8px; }

.download-option-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.download-option-arrow {
    flex-shrink: 0;
    color: var(--gray);
    font-size: 18px;
    transition: var(--transition);
}

.download-option:hover .download-option-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.download-option.loading {
    pointer-events: none;
    opacity: 0.75;
    cursor: wait;
}

.download-option.download-success .download-option-icon { background: rgba(34, 197, 94, 0.12); }
.download-option.download-success .download-option-icon i,
.download-option.download-success .download-option-arrow { color: #22c55e; }

.download-option.download-error { border-color: rgba(239, 68, 68, 0.3); }
.download-option.download-error .download-option-icon { background: rgba(239, 68, 68, 0.1); }
.download-option.download-error .download-option-icon i,
.download-option.download-error .download-option-arrow { color: #ef4444; }

}

/* GitHub modal file list */
.github-preview { width: 100%; }

.github-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.github-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.github-breadcrumb i { font-size: 16px; color: var(--white); }

.github-breadcrumb span:nth-child(2),
.github-breadcrumb span:nth-child(4) {
    color: var(--white);
    font-weight: 600;
}

.github-branch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.github-file-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.github-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.github-file-item:last-child { border-bottom: none; }
.github-file-item:hover { background: rgba(255, 255, 255, 0.03); }

.github-file-item i { font-size: 15px; width: 18px; text-align: center; }
.github-file-item.folder i { color: #54aeff; }
.github-file-item.file i { color: var(--gray); }

.github-file-item span { font-size: 14px; color: var(--white); font-weight: 500; }

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.5); }

/* ============================================
   Scroll Reveal
   ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 42px; letter-spacing: -1px; }
    .hero-description { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { gap: 20px; }
    .btn { width: 100%; justify-content: center; }
    .demo-desktop-bg { padding: 32px 24px; }
    .demo-editor-widget { width: 272px; }

    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }

    .screenshots { padding: 80px 0; }
    .screenshots-grid { gap: 48px; }
    .screenshot-item,
    .screenshot-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .screenshot-number { font-size: 48px; }
    .screenshot-info h3 { font-size: 24px; }
    .feature-tiles-grid { grid-template-columns: repeat(2, 1fr); }

    .spirits-section { padding: 80px 0; }
    .spirits-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }

    .download-section { padding: 80px 0; }
    .download-card { padding: 48px 24px; }
    .download-card h2 { font-size: 28px; }
    .download-info { flex-direction: column; align-items: center; }

    .nav-links { gap: 20px; }
    .nav-links a { font-size: 13px; }
    .nav-cta { padding: 7px 14px; font-size: 13px; }

    .modal-header { padding: 32px 24px 20px; }
    .modal-body { padding: 0 24px 24px; }
    .modal-footer { padding: 16px 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-logo span { font-size: 15px; }
    .hero-stats { flex-direction: column; gap: 14px; }
    .hero-badge { font-size: 12px; }
}
