:root {
    /* Color Palette */
    --base-dark: #140d0a;
    --base-surface: #2a1a14;
    --cherry: #ff3b3b;
    --orange: #ff8c42;
    --lemon: #ffd93b;
    --lime: #6be675;
    --grape: #9b5de5;
    --text-main: #fff3e6;
    --text-muted: #d6bfa7;
    
    /* Gradients */
    --gradient-fruit: linear-gradient(135deg, var(--cherry), var(--orange));
    --gradient-citrus: linear-gradient(135deg, var(--orange), var(--lemon));
    --gradient-berry: linear-gradient(135deg, var(--grape), var(--cherry));
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Layout & UI */
    --max-width: 1320px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 40px rgba(20, 13, 10, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 140, 66, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(42, 26, 20, 0.65);
    --glass-border: rgba(255, 243, 230, 0.08);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--base-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255,140,66,0.05) 0%, transparent 70%),
                radial-gradient(circle at 100% 100%, rgba(155,93,229,0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

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

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

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

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-fruit);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-padding { padding: 6rem 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-fruit);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--orange);
}

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

/* Header - Juice Glass Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-fruit);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-fruit);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/frutybar-hero-ambient-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(8px);
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--base-dark) 95%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-visual img {
    border-radius: var(--radius-sm);
}

/* Game Section */
.game-section {
    position: relative;
    z-index: 10;
}

.game-wrapper {
    background: var(--base-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft), 0 0 40px rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,59,59,0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 66, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--base-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    color: var(--orange);
}

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

/* Generic Pages (Legal, About) */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(42,26,20,0.8) 0%, var(--base-dark) 100%);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.content-wrapper {
    background: var(--base-surface);
    border-radius: var(--radius);
    padding: 4rem;
    margin-bottom: 4rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--lemon);
    font-size: 1.8rem;
}

.legal-content ul {
    list-style: disc inside;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--orange);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--base-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
}

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

/* Footer */
.footer {
    background: var(--base-surface);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rg-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rg-badge {
    width: 40px;
    height: 40px;
    background: var(--base-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--glass-border);
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--text-muted);
}