/* === QuestForge – Vibrant Adventure Aesthetic === */
:root {
    --color-bg: #0a0a1a;
    --color-bg-alt: #0f0f24;
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-bg-card-solid: #141430;
    --color-text: #f0eef8;
    --color-text-light: #a09cb8;
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-secondary: #06b6d4;
    --color-accent: #10b981;
    --color-gradient-1: #7c3aed;
    --color-gradient-2: #06b6d4;
    --color-gradient-3: #10b981;
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --max-width: 1200px;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2), var(--color-gradient-3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 24px; }
.logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-primary-light); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--color-text-light); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--color-text); }
.nav-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600;
}
.nav-btn:hover { opacity: 0.9; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; }

/* === Hero === */
.hero {
    position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; padding: 120px 24px 80px; max-width: var(--max-width); margin: 0 auto;
    gap: 48px; overflow: hidden;
}
.hero-glow {
    position: fixed; top: -200px; right: -200px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 {
    font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px);
    font-weight: 700; line-height: 1.1; margin-bottom: 24px;
}
.hero-sub {
    font-size: 18px; color: var(--color-text-light); max-width: 480px;
    margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; }

.btn {
    display: inline-block; padding: 14px 32px; border-radius: 12px;
    font-family: var(--font-body); font-size: 16px; font-weight: 600;
    text-decoration: none; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff; box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

.hero-scene { position: relative; }
.scene-card {
    background: var(--color-bg-card-solid); border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 80px rgba(124, 58, 237, 0.08);
}
.scene-header {
    padding: 16px 24px; font-family: var(--font-display); font-size: 14px;
    font-weight: 600; color: var(--color-primary-light); letter-spacing: 1px;
    background: rgba(124, 58, 237, 0.06); border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.scene-text { padding: 24px; }
.scene-text p { font-size: 15px; line-height: 1.8; color: var(--color-text-light); margin-bottom: 20px; font-style: italic; }
.scene-choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
    padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-light); transition: all 0.2s; cursor: pointer;
}
.choice:hover { border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.05); }
.choice.active {
    border-color: var(--color-primary); background: rgba(124, 58, 237, 0.1);
    color: var(--color-text); box-shadow: 0 0 16px rgba(124, 58, 237, 0.15);
}

/* === Sections Common === */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--color-secondary);
    background: rgba(6, 182, 212, 0.1); padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px);
    font-weight: 700; margin-bottom: 16px;
}
.section-header p { font-size: 18px; color: var(--color-text-light); max-width: 560px; margin: 0 auto; }

/* === Features Bento === */
.features { padding: 120px 0; background: var(--color-bg-alt); }
.features-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
    background: var(--color-bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 32px 28px; transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.bento-card.large { grid-column: span 2; }
.bento-card:hover { border-color: rgba(124, 58, 237, 0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08); }
.bento-icon { font-size: 32px; margin-bottom: 16px; }
.bento-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.bento-card p { color: var(--color-text-light); font-size: 15px; line-height: 1.7; }

/* === Adventure Flow === */
.adventure { padding: 120px 0; background: var(--color-bg); }
.adventure-flow { max-width: 640px; margin: 0 auto; }
.flow-step {
    display: flex; gap: 24px; padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.flow-num {
    font-family: var(--font-display); font-size: 48px; font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    opacity: 0.5; flex-shrink: 0; width: 72px;
}
.flow-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.flow-content p { color: var(--color-text-light); font-size: 15px; line-height: 1.7; }

/* === Characters === */
.characters { padding: 120px 0; background: var(--color-bg-alt); }
.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.char-card {
    text-align: center; padding: 32px 20px; background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); transition: all 0.3s;
}
.char-card:hover { border-color: rgba(124, 58, 237, 0.3); transform: translateY(-4px); }
.char-avatar { font-size: 40px; margin-bottom: 12px; }
.char-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.char-card p { color: var(--color-text-light); font-size: 13px; line-height: 1.5; }

/* === Pricing === */
.pricing { padding: 120px 0; background: var(--color-bg); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.pricing-card {
    position: relative; background: var(--color-bg-card-solid); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 40px 28px; text-align: center;
}
.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 48px rgba(124, 58, 237, 0.12); transform: scale(1.05);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 20px;
}
.pricing-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.price {
    font-family: var(--font-display); font-size: 48px; font-weight: 700; margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.price span { font-size: 16px; font-weight: 400; -webkit-text-fill-color: var(--color-text-light); }
.pricing-card ul { list-style: none; margin-bottom: 32px; }
.pricing-card li { padding: 8px 0; font-size: 15px; color: var(--color-text-light); border-bottom: 1px solid rgba(255,255,255,0.04); }
.pricing-card .btn { width: 100%; text-align: center; }

/* === Footer === */
.footer { background: #060612; color: var(--color-text); padding: 80px 0 40px; border-top: 1px solid rgba(124, 58, 237, 0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 24px; display: block; margin-bottom: 12px; color: var(--color-primary-light); }
.footer-brand p { color: var(--color-text-light); font-size: 14px; }
.footer-links h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 16px; color: var(--color-text); }
.footer-links a { display: block; color: var(--color-text-light); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; text-align: center; font-size: 14px; color: var(--color-text-light); }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--color-bg); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid rgba(124,58,237,0.1); }
    .nav-links.open { display: flex; }
    .nav-mobile-toggle { display: block; }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .features-bento { grid-template-columns: 1fr; }
    .bento-card.large { grid-column: span 1; }
    .char-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}
