:root {
    /* Color Palette */
    --bg-dark: #051611;
    --bg-card: rgba(10, 32, 26, 0.7);
    --primary-gold: #D4AF37;
    --primary-gold-hover: #F3E5AB;
    --accent-green: #0B6E4F;
    --accent-green-glow: rgba(11, 110, 79, 0.3);
    --text-main: #FFFFFF;
    --text-muted: #A3B5B0;
    --border-color: rgba(212, 175, 55, 0.25);
    --glass-bg: rgba(8, 26, 21, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #b89325);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-gold));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-medium);
    padding: 1.5rem 0;
    backdrop-filter: blur(0px);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    backdrop-filter: blur(15px);
    background: rgba(5, 22, 17, 0.85);
    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.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-fast);
}

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

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

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #03120e;
    z-index: 2000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: var(--transition-medium);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.drawer-close-btn {
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.drawer-links a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.drawer-action {
    margin-top: auto;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 30%, var(--accent-green-glow) 0%, rgba(5, 22, 17, 1) 65%);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d4af37" fill-opacity="0.04"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.4;
    z-index: -1;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-gold);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary-gold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    color: var(--primary-gold);
    font-size: 1.25rem;
}

.stat-item span {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 500px;
    background: var(--accent-green);
    filter: blur(150px);
    opacity: 0.25;
    border-radius: 50%;
    z-index: 0;
}

.app-mockup {
    position: relative;
    z-index: 1;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 10px solid #142822;
    transform: rotate(-3deg) translateY(0);
    animation: float 6s ease-in-out infinite;
    max-width: 310px;
    background: #020b08;
    aspect-ratio: 9 / 19.5;
    width: 100%;
}

.mockup-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    background: #081511;
}

.mockup-header i {
    font-size: 6px;
    color: rgba(255,255,255,0.3);
}

.mockup-app-bar {
    height: 50px;
    background: #081511;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-bar-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.mockup-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mock-game {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-streak-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

.mock-chip {
    align-self: center;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
}

.mock-clue {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
}

.clue-num {
    font-size: 0.65rem;
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mock-clue p {
    font-size: 0.8rem;
    color: white;
}

.mock-clue.locked {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    height: 48px;
}

.mock-clue.locked .clue-num {
    color: rgba(255,255,255,0.25);
    margin: 0;
}

.mock-input {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
}

.mock-button {
    background: var(--primary-gold);
    color: var(--bg-dark);
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
}

.muted {
    opacity: 0.5;
}

@keyframes float {
    0% { transform: rotate(-3deg) translateY(0px); }
    50% { transform: rotate(-3deg) translateY(-20px); }
    100% { transform: rotate(-3deg) translateY(0px); }
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #03100c);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(11, 110, 79, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

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

/* Demo Section */
.demo-section {
    padding: 8rem 0;
    background: #030f0b;
}

.demo-game-container {
    max-width: 500px;
    margin: 0 auto;
}

.demo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-gold), transparent, var(--accent-green));
    z-index: -1;
    border-radius: 26px;
    opacity: 0.3;
}

.demo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.category-chip {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--primary-gold);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.score-display {
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.score-display strong {
    color: white;
}

.demo-clues {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.demo-clue-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-clue-card.active {
    opacity: 1;
    transform: translateY(0);
}

.demo-clue-card .clue-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.demo-clue-card .clue-body {
    font-size: 1.05rem;
    color: white;
}

.reveal-clue-btn {
    width: 100%;
    margin-bottom: 2rem;
}

.demo-input-group {
    display: flex;
    gap: 10px;
}

.demo-input-group input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.demo-input-group input:focus {
    border-color: var(--primary-gold);
}

.demo-feedback {
    margin-top: 1.25rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    min-height: 24px;
}

.demo-feedback.success {
    color: #4BB543;
}

.demo-feedback.error {
    color: #ff3333;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-green), #03100c);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d4af37" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

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

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: contents;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.link-group a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar .btn {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
