@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Kanit:wght@200;400;600;700&display=swap');

:root {
    /* Color Palette - Premium Emerald & Gold */
    --p-50: #ebfff5;
    --p-100: #ccffeb;
    --p-500: #00ff88;
    --p-600: #00e077;
    --p-900: #003d21;

    --s-500: #ffd700;
    --s-600: #ffc400;

    --white: #ffffff;
    --black: #05070a;
    --gray-400: #94a3b8;
    --gray-800: #1e293b;

    /* Glass Tokens */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-stroke: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(0, 255, 136, 0.15);

    /* Animation Tokens */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.6s var(--ease-out-expo);
    --transition-medium: 0.3s var(--ease-out-expo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Kanit', 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Professional Mesh & Fireflies Background (Subtle) --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(at 0% 0%, hsla(158, 95%, 8%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(200, 95%, 8%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(158, 95%, 8%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(200, 95%, 8%, 1) 0, transparent 50%);
    opacity: 0.4;
}

.fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--s-500);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--s-500), 0 0 20px rgba(255, 215, 0, 0.4);
    opacity: 0;
    filter: blur(1px);
    animation: float-firefly linear infinite;
}

.mesh-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/baseFilter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

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

/* --- Hero Section --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.badge {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--p-500);
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #ffffff 30%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 600px;
}

/* --- Steps Section --- */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.title-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--p-500), transparent);
}

.steps-grid {
    display: grid;
    gap: 3rem;
}

.step-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 1s;
}

.step-card:hover::before {
    left: 150%;
}

.step-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 255, 136, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-15px) scale(1.01);
}

.step-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-num {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.step-card:hover .step-num {
    color: var(--p-500);
    -webkit-text-stroke: 0;
}

.step-h {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Kanit';
}

.step-p {
    color: var(--gray-400);
    font-size: 1.15rem;
}

.step-visual {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 32px;
    border: 1px solid var(--glass-stroke);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: var(--transition-slow);
}

.step-card:hover .step-visual {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-medium);
}

.step-card:hover .screenshot {
    transform: scale(1.05);
}

/* Category Pills */
.cat-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.cat-pill {
    padding: 0.6rem 1.4rem;
    background: var(--gray-800);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--p-100);
    border: 1px solid transparent;
    transition: var(--transition-medium);
}

.cat-pill:hover {
    background: var(--p-600);
    color: var(--p-900);
}

.highlight-y {
    color: var(--s-500);
    font-weight: 600;
}

/* Action Buttons - Professional Series */
.btn-premium {
    position: relative;
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid #ffffff;
    overflow: hidden;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: 1;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-premium:active {
    transform: translateY(-2px) scale(0.98);
}

/* Brand Gradients */
.btn-website {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #24A1DE);
    box-shadow: 0 10px 20px rgba(36, 161, 222, 0.3);
}

.btn-line {
    background: linear-gradient(135deg, #00c300, #06C755);
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
}

/* --- Advanced Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
}

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

.glow-heavy {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes float-firefly {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translate(calc(100vw * var(--rand-x)), calc(100vh * var(--rand-y))) scale(0.5); opacity: 0; }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* --- Floating Action Buttons --- */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
    animation: float-gentle 4s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.float-btn:hover {
    transform: translateX(-10px) scale(1.05) !important;
    animation-play-state: paused;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.float-btn i {
    font-size: 1.4rem;
}

.float-line {
    animation-delay: 0s;
    background: linear-gradient(135deg, #00c300, #06C755);
}

.float-telegram {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #0088cc, #24A1DE);
}

/* --- Media Queries --- */
@media (max-width: 968px) {
    .step-card {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero {
        height: auto;
        padding: 8rem 0 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .step-card {
        padding: 2rem;
        border-radius: 24px;
        gap: 1.5rem;
    }

    .step-num {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .step-h {
        font-size: 1.75rem;
    }

    .step-visual {
        min-height: auto;
        aspect-ratio: 4/3;
        padding: 0.5rem;
    }

    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .float-btn span {
        display: none;
    }

    .float-btn {
        padding: 1rem;
        border-radius: 50%;
    }
}

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

    .step-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .section-title h2 {
        font-size: 1.5rem !important;
    }
    
    .btn-premium {
        width: 100%;
        padding: 1rem;
    }
}