:root {
    --bg-dark: #07090f;
    --bg-card: rgba(16, 21, 34, 0.6);
    --gold-primary: #FFD700;
    --gold-secondary: #FDB931;
    --gold-dark: #cc9900;
    --text-main: #f0f2f5;
    --text-muted: #a0aabf;
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(7, 9, 15, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Slightly reduced for smaller screens */
}

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

.header.scrolled {
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFE033, var(--gold-primary));
}

.btn-login {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* Added padding top for fixed header */
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden; /* Added to prevent horizontal scroll from floating elements */
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Added minmax to prevent blowout */
    gap: 2rem; /* Reduced gap */
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive typography */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    word-break: break-word; /* Ensure extremely long words don't break layout */
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem; /* Reduced gap for smaller screens */
    flex-wrap: wrap; /* allow buttons to wrap */
}


.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.hero-graphics {
    position: relative;
    height: 400px;
}

.mockup {
    position: absolute;
    width: 250px;
    top: 50%;
    left: 20%;
    transform: translateY(-50%) rotate(-5deg);
    z-index: 2;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup:hover {
    transform: translateY(-50%) rotate(0deg) scale(1.05);
}

.mockup.alt {
    left: 50%;
    top: 60%;
    z-index: 1;
    transform: translateY(-50%) rotate(10deg);
}

.mockup-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Features */
.features {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

/* CTA */
.cta-section {
    padding: 4rem 0 8rem;
}

.cta-card {
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem); /* responsive padding */
    background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, var(--bg-card) 100%);
    border-radius: 20px;
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
}

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

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-desc {
        margin: 0 auto 2.5rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-graphics {
        height: 350px; /* Reduced height on medium screens */
    }
    .mockup {
        left: 50%;
        transform: translate(-50%, -50%) rotate(-5deg);
        width: 220px;
    }
    .mockup:hover {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
    }
    .mockup.alt {
        left: 50%;
        transform: translate(-30%, -30%) rotate(10deg);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 9, 15, 0.98); /* darker blur for mobile readability */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
        padding: 2rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nav .btn {
        margin-top: 1rem;
        width: 100%; /* Full width button in mobile menu */
    }

    .nav.nav-open {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .hero {
        padding-top: 120px; /* More space for sticky nav on mobile */
    }
    
    .hero-actions {
        flex-direction: column; /* Stack buttons vertically on small screens */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
    }

    .hero-graphics {
        display: none; /* Hide complex graphics on very small screens to save space/performance */
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .cta-section {
        padding: 2rem 0 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand img {
        margin: 0 auto;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 38px; /* Slightly smaller logo on extra small screens */
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}
