/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #da020e;
    --primary-yellow: #ffc72c;
    --secondary-red: #b71c1c;
    --secondary-yellow: #ffeb3b;
    --accent-orange: #ff6b35;
    --dark-red: #8b0000;
    --light-yellow: #fff9c4;
    --white: #ffffff;
    --black: #000000;
    --gray-dark: #333333;
    --gray-light: #f5f5f5;
    --success-green: #4caf50;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo .logo-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    font-family: 'Fredoka One', cursive;
}

.loading-logo h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Fredoka One', cursive;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--white);
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Fredoka One', cursive;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-red);
    font-family: 'Fredoka One', cursive;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    animation: float 6s ease-in-out infinite;
}

.coin-1 { top: 20%; left: 10%; animation-delay: 0s; }
.coin-2 { top: 30%; right: 15%; animation-delay: 1s; }
.coin-3 { top: 60%; left: 20%; animation-delay: 2s; }
.coin-4 { top: 70%; right: 25%; animation-delay: 3s; }
.coin-5 { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.title-sub {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: 'Fredoka One', cursive;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Game Preview */
.game-preview {
    position: relative;
}

.preview-screen {
    background: var(--black);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.screen-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 400px;
}

.game-interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wallet-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.wallet-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.wallet-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.game-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.blockchain-animation {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.block {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    border-radius: var(--radius-sm);
    animation: pulse 2s ease-in-out infinite;
}

.block-1 { animation-delay: 0s; }
.block-2 { animation-delay: 0.5s; }
.block-3 { animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.earnings-display {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.earning-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--success-green);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--primary-red);
    font-family: 'Fredoka One', cursive;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-yellow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    font-family: 'Fredoka One', cursive;
}

.feature-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Blockchain Section */
.blockchain {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-yellow), var(--white));
}

.blockchain-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.blockchain-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    font-family: 'Fredoka One', cursive;
}

.blockchain-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.blockchain-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blockchain-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blockchain-feature i {
    color: var(--success-green);
    font-size: 1.25rem;
}

.blockchain-visual {
    display: flex;
    justify-content: center;
}

.blockchain-animation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.chain-block {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 200px;
    animation: slideIn 1s ease-in-out;
}

.chain-block:nth-child(1) { animation-delay: 0s; }
.chain-block:nth-child(3) { animation-delay: 0.5s; }
.chain-block:nth-child(5) { animation-delay: 1s; }

@keyframes slideIn {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.block-header {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.block-data {
    font-size: 0.875rem;
    opacity: 0.9;
}

.chain-link {
    width: 4px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* RAPPIA Token Section */
.rappia-token {
    padding: 80px 0;
    background: var(--white);
}

.rappia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rappia-visual {
    display: flex;
    justify-content: center;
}

.token-display {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
}

.token-icon {
    width: 100px;
    height: 100px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    font-family: 'Fredoka One', cursive;
}

.token-name {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka One', cursive;
}

.token-value {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.9;
}

.rappia-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    font-family: 'Fredoka One', cursive;
}

.rappia-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.token-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.token-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

.stat-label {
    font-weight: 600;
    color: var(--gray-dark);
}

.stat-value {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.125rem;
}

.token-actions {
    display: flex;
    gap: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
}

.form-group input::placeholder {
    color: var(--gray-dark);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo h3 {
    color: var(--white);
    font-family: 'Fredoka One', cursive;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .blockchain-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .rappia-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .token-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .token-display {
        padding: 2rem;
        min-width: 250px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
