/* Cloud99 Games - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette - Logo Extracted */
    --color-bg-start: #FDFBF7;
    /* Warm Cream */
    --color-bg-end: #FFFFFF;
    /* White */
    --color-primary: #D6A476;
    /* Medium Wood/Orange */
    --color-primary-dark: #B58B62;
    /* Darker Wood */
    --color-accent: #E3C97E;
    /* Light Gold/Wood */
    --color-text-main: #2D241E;
    /* Dark Brown (instead of Slate) */
    --color-text-muted: #6B5B52;
    /* Muted Brown */
    --color-white: #FFFFFF;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(45 36 30 / 0.1), 0 2px 4px -2px rgb(45 36 30 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(45 36 30 / 0.1), 0 4px 6px -4px rgb(45 36 30 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(45 36 30 / 0.1), 0 8px 10px -6px rgb(45 36 30 / 0.1);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(227, 201, 126, 0.3);

    /* Spacing */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-main);
    background: linear-gradient(180deg, var(--color-bg-start) 0%, var(--color-white) 100%);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(214, 164, 118, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(214, 164, 118, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-ios {
    background-color: #007AFF;
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(0, 122, 255, 0.4);
}

.btn-ios:hover {
    background-color: #0062CC;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.btn-android {
    background-color: #34C759;
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(52, 199, 89, 0.4);
}

.btn-android:hover {
    background-color: #2DA84E;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(253, 251, 247, 0.9);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-primary);
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 90%;
    width: 400px;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-visuals {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: -2rem;
    pointer-events: none;
}

/* Floating Blocks Animation */
.block {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 8px;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.block:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
}

.block:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.block:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
    background: #6366F1;
}

.block:nth-child(4) {
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
    width: 40px;
    height: 40px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--color-white);
}

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

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #F8FAFC;
    transition: transform 0.3s ease;
    border: 1px solid #F1F5F9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: var(--color-white);
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

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

.copyright {
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Form Styles */
.form-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 4rem auto;
    border: 1px solid #E2E8F0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(214, 164, 118, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.privacy-content h1 {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simple mobile hide for now, could add hamburger later */
    }
}