/* Custom CSS for Rune Blast landing page website */
:root {
    --bg-dark: #07050d;
    --card-bg: rgba(26, 22, 38, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
    --accent-blue: #06b6d4;
    --accent-blue-glow: rgba(6, 182, 212, 0.4);
    --accent-gold: #f4c95d;
    --accent-gold-glow: rgba(244, 201, 93, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a7a9b8;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Atmospheric Glow Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 240px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 220px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 300px 350px, #8b5cf6, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 450px 290px, #06b6d4, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 600px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 550px 550px;
    opacity: 0.25;
    z-index: -3;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
    animation: pulseOrbs 8s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.orb-2 {
    bottom: 10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    animation-delay: 2s;
}

@keyframes pulseOrbs {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(30px, -20px); opacity: 0.2; }
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-purple-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--card-bg);
    color: #fff;
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.btn-nav:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch:hover {
    color: #fff;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
}

/* Navigation Header */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(7, 5, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    color: #fff;
}

.logo-text span {
    color: var(--accent-gold);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(244, 201, 93, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 11px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.hero-title {
    font-family: var(--font-header);
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-badge {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    gap: 12px;
    transition: all 0.3s;
}

.download-badge:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
}

.badge-text strong {
    font-family: var(--font-header);
    font-size: 15px;
}

/* Phone Frame container */
.hero-image-area {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame-container {
    position: relative;
    width: 280px;
    height: 560px;
}

.phone-shadow {
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}

.phone-frame {
    width: 100%;
    height: 100%;
    border: 10px solid #1a1726;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5),
        0 0 25px var(--accent-purple-glow);
    background: #000;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #1a1726;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: rgba(10, 8, 18, 0.5);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

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

.section-title {
    font-family: var(--font-header);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px var(--accent-purple-glow);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 24px;
}

.card-title {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

/* Gameplay Gallery Section */
.gallery-section {
    padding: 100px 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    aspect-ratio: 9/20;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide:hover {
    transform: scale(1.03);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.carousel-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #fff;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-purple);
    width: 24px;
    border-radius: 4px;
}

/* How to Play Section */
.how-to-play-section {
    padding: 100px 0;
    background: rgba(10, 8, 18, 0.3);
    border-top: 1px solid var(--card-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    position: relative;
    padding: 40px 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.step-num {
    position: absolute;
    top: -24px;
    left: 30px;
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 36px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--accent-purple-glow);
}

.step-title {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 14px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: #040307;
    border-top: 1px solid var(--card-border);
    padding: 80px 0 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    max-width: 320px;
}

.footer-info .logo-area {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-family: var(--font-header);
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 30px 0;
    text-align: center;
    color: #555;
    font-size: 13px;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-subtitle {
        margin: 0 auto 36px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .carousel-slide {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple burger menu or hide for simplicty */
    }
    .hero-title {
        font-size: 36px;
    }
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-container {
        max-width: 300px;
    }
}
