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

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 35, 0.7);
    --bg-card-darker: rgba(12, 14, 24, 0.9);
    --border-color: rgba(255, 255, 255, 0.07);
    
    /* RPG Palette Colors */
    --primary: #ffbd2e;         /* Gold */
    --primary-hover: #ffd066;
    --primary-glow: rgba(255, 189, 46, 0.25);
    
    --dragon-color: #ff5e36;    /* Red/Orange */
    --cat-color: #ffd02e;       /* Gold/Yellow */
    --slime-color: #2ed1ff;     /* Cyan/Blue */
    
    --accent: #8e2de2;          /* Purple/Indigo */
    --accent-glow: rgba(142, 45, 226, 0.3);
    
    --text-main: #f0f2f5;
    --text-muted: #8d95a5;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(142, 45, 226, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255, 189, 46, 0.06) 0%, transparent 45%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-emoji {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px 0;
    position: relative;
}

.hero-badge {
    background: rgba(255, 189, 46, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 189, 46, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.5;
}

.badge-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    background: #000000;
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    gap: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.play-store-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 24px;
}

.btn-text-small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.btn-text-large {
    font-size: 16px;
    font-weight: 600;
}

/* Phone Mockup UI */
.hero-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-wrapper {
    width: 290px;
    height: 580px;
    background: #0e111a;
    border: 10px solid #202433;
    border-radius: 42px;
    position: relative;
    box-shadow: 
        0 25px 60px -15px rgba(0,0,0,0.85),
        0 0 50px rgba(142, 45, 226, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mockup-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #101321 0%, #06070a 100%);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.mockup-lvl {
    background: rgba(255, 189, 46, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.mockup-gold {
    color: #ffb834;
}

.mockup-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-lbl {
    font-size: 10px;
    font-weight: 700;
    width: 24px;
}

.stat-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill-hp {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #e53935, #ff4a4a);
}

.stat-fill-xp {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.mockup-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 0;
    overflow: hidden;
}

.mockup-monster-card {
    background: rgba(255, 74, 74, 0.05);
    border: 1px solid rgba(255, 74, 74, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-emoji {
    font-size: 20px;
    animation: float 2.5s ease-in-out infinite;
}

.m-name {
    font-size: 11px;
    font-weight: 700;
    color: #ff7878;
}

.m-hp-bar {
    width: 140px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.m-hp-fill {
    width: 60%;
    height: 100%;
    background: #ff4a4a;
}

.mockup-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.mockup-pet {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.mockup-pet-name {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.mockup-pet-buff {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
}

.mockup-habits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-habit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    border-left: 3px solid #ffbd2e;
    color: var(--text-main);
}

.mockup-habit.checked {
    border-left-color: #4caf50;
    opacity: 0.6;
}

.checkbox-circle {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
}

.checkbox-circle.checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.mockup-navbar {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-muted);
}

.mockup-navbar span {
    cursor: pointer;
}

.mockup-navbar .active-tab {
    color: var(--primary);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* Game Showcase Sections */
.game-section {
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.game-section.dark-bg {
    background: #0b0c14;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 25px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.showcase-emoji {
    font-size: 44px;
    margin-bottom: 15px;
    display: inline-block;
}

.showcase-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}

/* Pet Cards */
.pet-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.border-dragon:hover { border-color: rgba(255, 94, 54, 0.35); }
.border-cat:hover { border-color: rgba(255, 208, 46, 0.35); }
.border-slime:hover { border-color: rgba(46, 209, 255, 0.35); }

.badge-buff {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    width: fit-content;
}

.buff-damage {
    background: rgba(255, 94, 54, 0.12);
    color: var(--dragon-color);
    border: 1px solid rgba(255, 94, 54, 0.2);
}

.buff-gold {
    background: rgba(255, 208, 46, 0.12);
    color: var(--cat-color);
    border: 1px solid rgba(255, 208, 46, 0.2);
}

.buff-defense {
    background: rgba(46, 209, 255, 0.12);
    color: var(--slime-color);
    border: 1px solid rgba(46, 209, 255, 0.2);
}

.xp-container {
    margin-top: 15px;
}

.xp-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.xp-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 3px;
}

/* Monster Cards */
.monster-card {
    border-left: 4px solid var(--border-color);
}

.monster-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.hydration-color { background-color: #2f80ed; }
.morning-color { background-color: #f2c94c; }
.afternoon-color { background-color: #f2994a; }
.night-color { background-color: #9b51e0; }

.weakness-box {
    background: rgba(255, 189, 46, 0.05);
    border: 1px solid rgba(255, 189, 46, 0.15);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
    margin-top: auto;
}

.weakness-box strong {
    color: var(--primary);
}

/* Shop and Equipment */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.item-slot {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.item-slot:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.item-icon {
    font-size: 32px;
    background: rgba(255, 189, 46, 0.08);
    border: 1px solid rgba(255, 189, 46, 0.2);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    color: var(--primary);
}

.item-slot h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.item-stat {
    font-size: 12px;
    color: #4caf50;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.item-slot p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

/* Achievements Section */
.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.ach-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.ach-badge:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.2);
}

.ach-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.ach-badge h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ach-badge p {
    font-size: 11px;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    padding: 90px 0;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.2) 0%, rgba(255, 189, 46, 0.05) 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.cta-banner p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Subpages - Privacy Policy */
body.subpage {
    background-image: radial-gradient(circle at 50% 10%, rgba(142, 45, 226, 0.1) 0%, transparent 50%);
}

.content-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(12px);
}

.policy-section h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.policy-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.policy-section p, .policy-section ul {
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 300;
    font-size: 15px;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .badge-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .badge-group {
        flex-direction: column;
    }
    
    .card {
        padding: 24px;
    }
}
