/* Variables & Reset */
:root {
    --color-bg-dark: #0a1128; /* Deep Navy Blue */
    --color-bg-card: #131d3b;
    --color-gold: #cfaa6e; /* Luxury Gold */
    --color-gold-hover: #e0be82;
    --color-text-light: #f5f5f5;
    --color-text-dim: #a0a0a0;
    --color-accent: #2c3e50;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --gradient-gold: linear-gradient(135deg, #cfaa6e 0%, #f0d588 50%, #cfaa6e 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(207, 170, 110, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.text-center { text-align: center; }
.gold-text { color: var(--color-gold); }
.section-padding { padding: 80px 0; }

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glisten-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.glisten-effect:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex; /* Aligns text parts */
    align-items: center;
    gap: 5px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 40px;
    width: auto;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    font-family: var(--font-body);
}

nav {
    display: flex;
    align-items: center;
}

.cta-header {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, #1a2a50 0%, var(--color-bg-dark) 70%);
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    max-width: 300px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 8px solid #222;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
}

.icon-box {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* Characters */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.char-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.char-card:hover {
    transform: translateY(-5px);
}

.char-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.char-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.char-card:hover .char-img-wrapper img {
    transform: scale(1.05);
}

.char-info {
    padding: 25px;
    text-align: center;
}

.char-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.char-role {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.char-desc {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Gamification */
.gamification-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.gamification-text {
    flex: 1;
    min-width: 300px;
}

.gamification-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.levels-list {
    margin-top: 40px;
}

.levels-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 15px;
}

.levels-list li i {
    color: var(--color-gold);
}

.moving-star {
    animation: starPulse 2s infinite ease-in-out;
}

@keyframes starPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; color: #fff; }
    100% { transform: scale(1); opacity: 0.8; }
}

.tilt-effect {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.tilt-effect:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Download */
.download {
    background: linear-gradient(0deg, #050916 0%, var(--color-bg-dark) 100%);
}

.btn-store-large img {
    height: 80px;
    transition: transform 0.2s;
}

.btn-store-large:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

/* Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

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

/* Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .btn-secondary { margin-left: 0; }
    .gamification-container { flex-direction: column-reverse; }
    .tilt-effect { transform: none; }
    .header-container .cta-header { display: none; /* Hide top CTA on small mobile to save space */ }
}
