:root {
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.7);
    --bg-card-hover: rgba(39, 39, 42, 0.9);
    --primary: #e11d48; /* Flixy Red */
    --primary-hover: #be123c;
    --accent: #8b5cf6; /* Vibrant purple for gradients */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glow: rgba(225, 29, 72, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -150px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.glow-2 {
    bottom: 20%;
    right: -150px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border: none;
    box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 10px 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-large {
    font-size: 1.125rem;
    padding: 16px 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px var(--glow);
}

.logo-text {
    color: var(--primary);
}

/* Nav Brand (center text) */
.nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
}

/* Drawer Toggle Button */
.drawer-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.drawer-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.1);
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #111113;
    border-left: 1px solid var(--border);
    z-index: 300;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.drawer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    flex: 1;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: white;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.drawer-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.drawer-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 24px;
}

/* Make nav-content relative for absolute centering of brand */
.nav-content {
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 100px;
    color: #fda4af;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

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

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.125rem;
}

.text-left {
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 24px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How to Use Section */
.how-to {
    padding: 100px 0;
}

.how-to-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    margin-top: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Mock Phone UI */
.mock-phone {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: #111;
    border: 8px solid #222;
    border-radius: 40px;
    height: 600px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
}

.mock-screen {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.mock-header {
    background: #1c1c1d;
    padding: 20px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 1px solid #333;
}

.mock-chat {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #0f0f0f;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeUp 0.5s ease backwards;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #2b5278; /* Telegram blue */
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: #1c1c1d;
    border: 1px solid #2a2a2a;
    border-bottom-left-radius: 4px;
    animation-delay: 0.5s;
}

.mock-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mock-buttons span {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.img-bubble {
    animation-delay: 1s;
    width: 200px;
}

.mock-video {
    width: 100%;
    height: 100px;
    background: #222;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* CTA Bottom */
.cta-bottom {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 24px;
    padding: 60px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .how-to-wrapper {
        grid-template-columns: 1fr;
    }
    
    .how-to-text {
        text-align: center;
    }
    
    .section-title.text-left {
        text-align: center;
    }
    
    .step-item {
        text-align: left;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-card:hover {
        transform: none;
    }

    .how-to {
        padding: 60px 0;
    }

    .mock-phone {
        max-width: 280px;
        height: 500px;
    }

    .cta-bottom {
        padding: 40px 0;
    }

    .cta-box {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 14px 28px;
    }

    /* Footer mobile: grid 2 kolom */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        max-width: 360px;
    }

    .footer-links a {
        font-size: 0.85rem;
        justify-content: center;
        padding: 10px 12px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    footer {
        padding: 32px 0;
    }

    .footer-content {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo-img {
        height: 32px;
        width: 32px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
