/* === DreamForge – Dark Fantasy RPG Aesthetic === */
:root {
    --color-bg: #0d0b14;
    --color-bg-alt: #13101e;
    --color-bg-card: #1a1528;
    --color-bg-light: #221d33;
    --color-text: #e2ddf0;
    --color-text-light: #9990b0;
    --color-primary: #c9a84c;
    --color-primary-light: #dbbf6a;
    --color-primary-dark: #a8893a;
    --color-accent: #7c5cbf;
    --color-accent-light: #9b7dd4;
    --color-glow: rgba(201, 168, 76, 0.15);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1200px;
    --radius: 12px;
}

*, *::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; }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 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); }
.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-primary); }
.nav-btn {
    background: var(--color-primary); color: var(--color-bg) !important; padding: 8px 20px;
    border-radius: 8px; font-weight: 600; transition: background 0.2s;
}
.nav-btn:hover { background: var(--color-primary-light); }
.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; transition: 0.3s; }

/* === Hero === */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 120px 24px 80px; overflow: hidden;
}
.hero-particles {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(124, 92, 191, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}
.hero-content { position: relative; max-width: 800px; }
.hero-badge {
    display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 3px; color: var(--color-primary); border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 8px 20px; border-radius: 24px; margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-display); font-size: clamp(48px, 7vw, 80px);
    font-weight: 700; line-height: 1.1; color: var(--color-text); margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--color-primary); text-shadow: 0 0 40px rgba(201, 168, 76, 0.3); }
.hero-sub {
    font-size: 19px; color: var(--color-text-light); max-width: 600px;
    margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

.btn {
    display: inline-block; padding: 14px 32px; border-radius: 10px;
    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: var(--color-primary); color: var(--color-bg);
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.3);
}
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: 0 6px 32px rgba(201, 168, 76, 0.4); }
.btn-secondary { background: transparent; color: var(--color-primary); border: 2px solid rgba(201, 168, 76, 0.3); }
.btn-secondary:hover { background: rgba(201, 168, 76, 0.1); border-color: var(--color-primary); }

.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: 14px; color: var(--color-text-light); margin-top: 4px; }

/* === 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-primary); background: rgba(201, 168, 76, 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; color: var(--color-text); margin-bottom: 16px;
}
.section-header p { font-size: 18px; color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

/* === Features === */
.features { padding: 120px 0; background: var(--color-bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--color-bg-card); border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: var(--radius); padding: 36px 28px; transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(201, 168, 76, 0.25); box-shadow: 0 8px 32px rgba(201, 168, 76, 0.08); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--color-text); }
.feature-card p { color: var(--color-text-light); font-size: 15px; line-height: 1.7; }

/* === GM Mode === */
.gm-mode { padding: 120px 0; background: var(--color-bg); }
.gm-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gm-text h2 { font-family: var(--font-display); font-size: 40px; margin: 12px 0 16px; color: var(--color-text); }
.gm-text p { color: var(--color-text-light); margin-bottom: 24px; line-height: 1.7; }
.gm-features { list-style: none; }
.gm-features li { padding: 10px 0; color: var(--color-text-light); font-size: 15px; border-bottom: 1px solid rgba(201, 168, 76, 0.06); line-height: 1.6; }
.gm-features li strong { color: var(--color-primary); }

.gm-mockup {
    background: var(--color-bg-card); border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.mockup-bar {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: rgba(201, 168, 76, 0.05); border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(201, 168, 76, 0.3); }
.mockup-title { margin-left: auto; font-size: 12px; color: var(--color-text-light); font-weight: 500; }
.mockup-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.mockup-panel {
    padding: 16px; background: rgba(201, 168, 76, 0.04); border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 8px;
}
.mockup-panel span { display: block; font-size: 13px; font-weight: 600; color: var(--color-primary); margin-bottom: 6px; }
.mockup-panel small { font-size: 12px; color: var(--color-text-light); line-height: 1.5; }
.mockup-panel.p4 { border-color: rgba(124, 92, 191, 0.2); background: rgba(124, 92, 191, 0.05); }
.mockup-panel.p4 span { color: var(--color-accent-light); }

/* === Worldbuilding === */
.worldbuilding { padding: 120px 0; background: var(--color-bg-alt); }
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.world-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 16px; background: var(--color-bg-card); border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: var(--radius); transition: all 0.3s; color: var(--color-text); font-size: 13px; font-weight: 500;
}
.world-item:hover { border-color: var(--color-primary); box-shadow: 0 0 20px rgba(201, 168, 76, 0.1); transform: translateY(-2px); }
.world-icon { font-size: 28px; }

/* === How It Works === */
.how-it-works { padding: 120px 0; background: var(--color-bg); }
.steps { display: flex; align-items: flex-start; justify-content: center; max-width: 1000px; margin: 0 auto; }
.step { flex: 1; text-align: center; padding: 0 20px; }
.step-num {
    font-family: var(--font-display); font-size: 42px; font-weight: 700;
    color: var(--color-primary); opacity: 0.4; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; color: var(--color-text); }
.step p { font-size: 14px; color: var(--color-text-light); line-height: 1.6; }
.step-line { width: 40px; height: 2px; background: var(--color-primary); margin-top: 30px; flex-shrink: 0; opacity: 0.2; }

/* === Pricing === */
.pricing { padding: 120px 0; background: var(--color-bg-alt); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
    position: relative; background: var(--color-bg-card); border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius); padding: 40px 28px; text-align: center;
}
.pricing-card.featured { border-color: var(--color-primary); box-shadow: 0 0 40px rgba(201, 168, 76, 0.1); transform: scale(1.05); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: var(--color-bg); 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; color: var(--color-text); }
.price { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--color-primary); margin-bottom: 24px; }
.price span { font-size: 16px; font-weight: 400; 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(201, 168, 76, 0.06); }
.pricing-card .btn { width: 100%; text-align: center; }

/* === Footer === */
.footer { background: #080610; color: var(--color-text); padding: 80px 0 40px; border-top: 1px solid rgba(201, 168, 76, 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); }
.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-primary); }
.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(201, 168, 76, 0.06); 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(201,168,76,0.1); }
    .nav-links.open { display: flex; }
    .nav-mobile-toggle { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .gm-content { grid-template-columns: 1fr; }
    .world-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { flex-direction: column; gap: 24px; }
    .step-line { width: 2px; height: 24px; margin: 0 auto; }
    .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
    .world-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}
