@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --bg-light: #F6F8FA;
    --app-white: #FFFFFF;
    --app-ink: #0A1224;
    --app-muted: #66758A;
    --app-accent: #08BFEA;
    --app-accent-hot: #F93D52;
    --app-accent-dark: #079FC5;
    --border-color: #E4EBF4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 18px 35px -20px rgba(8, 191, 234, 0.32), 0 10px 18px -18px rgba(249, 61, 82, 0.26);
    --shadow-xl: 0 28px 55px -30px rgba(10, 18, 36, 0.22), 0 16px 26px -24px rgba(10, 18, 36, 0.18);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 18%, rgba(8, 191, 234, 0.14), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(249, 61, 82, 0.09), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-light) 45%, #ffffff 100%);
    color: var(--app-ink);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header & Navbar */
header {
    background-color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--app-ink);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1px;
}

.logo-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid var(--app-ink);
    margin-right: 6px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-triangle {
    transform: rotate(90deg) scale(1.1);
}

.logo span {
    color: var(--app-ink);
}

nav a {
    text-decoration: none;
    color: var(--app-muted);
    font-weight: 600;
    font-size: 15px;
    margin-left: 24px;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--app-accent);
}

/* Landing Page Split Hero Layout */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 80px 0;
    position: relative;
}

.hero-split::before {
    content: '';
    position: absolute;
    inset: 38px -7vw 16px;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(10, 18, 36, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 18, 36, 0.07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .tagline {
    font-size: 11px;
    font-weight: 800;
    color: var(--app-accent-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--app-ink);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--app-accent-hot);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--app-muted);
    margin-bottom: 32px;
}

/* Mockup Presentation & Subtle Float Animation */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-wrapper {
    position: relative;
    max-width: 340px;
    width: 100%;
    animation: floatAnimation 6s ease-in-out infinite;
}

.mockup-wrapper::before {
    content: '';
    position: absolute;
    inset: 8% -10%;
    z-index: -1;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(8, 191, 234, 0.18), rgba(249, 61, 82, 0.13));
    filter: blur(20px);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: 1px solid rgba(228, 235, 244, 0.9);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.mockup-wrapper:hover .mockup-img {
    transform: scale(1.02);
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Call to Action Badge Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--app-ink), #101B33);
    color: var(--app-white);
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -18px rgba(10, 18, 36, 0.48), 0 10px 18px -16px rgba(8, 191, 234, 0.55);
}

.cta-button:active {
    transform: translateY(0);
}

.google-play-icon {
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.cta-button:hover .google-play-icon {
    transform: scale(1.1);
}

/* General Hero Page Layout (Privacy / Terms) */
.hero {
    padding: 64px 0 40px 0;
    text-align: center;
}

.tagline {
    font-size: 11px;
    font-weight: 800;
    color: var(--app-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--app-ink);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero p {
    font-size: 16px;
    color: var(--app-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Panel */
.content-panel {
    background-color: var(--app-white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 64px;
}

.last-updated {
    font-size: 13px;
    color: var(--app-muted);
    opacity: 0.7;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Policy Content */
.section {
    margin-bottom: 36px;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--app-ink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: var(--app-accent);
    border-radius: 2px;
    margin-right: 10px;
}

.section p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--app-muted);
}

/* Sections */
.gameplay-section, .features-section {
    padding: 64px 0;
}

.section-title {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--app-ink);
}

/* Gameplay Step Cards */
.gameplay-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background-color: var(--app-white);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(8, 191, 234, 0.32);
}

.step-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--app-accent), var(--app-accent-hot));
    color: var(--app-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 18px -12px rgba(249, 61, 82, 0.65);
}

.step-card h3, .feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--app-ink);
}

.step-card p, .feature-card p {
    font-size: 14px;
    color: var(--app-muted);
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--app-white);
    border: 1px solid var(--border-color);
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(8, 191, 234, 0.32);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--app-accent-hot);
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 800;
}

/* Footer */
footer {
    background-color: var(--app-white);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 13px;
    color: var(--app-muted);
}

footer .footer-links {
    margin-top: 12px;
}

footer .footer-links a {
    color: var(--app-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin: 0 12px;
    transition: color 0.2s ease;
}

footer .footer-links a:hover {
    color: var(--app-accent);
}

/* Responsive Rules */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 48px 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .gameplay-steps, .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .content-panel {
        padding: 24px;
        border-radius: 16px;
    }
    
    .hero {
        padding: 40px 0 24px 0;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}
