:root {
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --accent: #10b981;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}

.cube {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-glow);
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 12s ease-in forwards infinite;
}

.cube:nth-child(2n) {
    border-color: rgba(16, 185, 129, 0.3);
}

.cube:nth-child(1) { top: 80%; left: 45%; animation-delay: 0s; }
.cube:nth-child(2) { top: 90%; left: 10%; animation-delay: 2s; }
.cube:nth-child(3) { top: 40%; left: 10%; animation-delay: 4s; }
.cube:nth-child(4) { top: 10%; left: 80%; animation-delay: 6s; }
.cube:nth-child(5) { top: 50%; left: 90%; animation-delay: 8s; }

@keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 0.8;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-family: 'Outfit';
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
}

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

.nav-btn {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.gradient-text {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit';
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

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

#hero-img {
    max-width: 100%;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

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

.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    opacity: 0.5;
}

/* Sections */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: 'Outfit';
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

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

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

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.85);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.duration {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Outfit';
}

.save {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.benefits {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.benefits li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    gap: 10px;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn.outline {
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* CTA */
.cta {
    text-align: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Outfit';
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 40px 24px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

/* Mobile Menu Styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/* Base Responsive Overrides */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        padding-bottom: 80px;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
        width: 100%;
        margin-bottom: 40px;
    }
    .hero-btns {
        justify-content: center;
    }
    .gradient-text {
        font-size: 3rem;
    }
    .glow-circle {
        width: 300px;
        height: 300px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .benefits-deep > div {
        padding: 40px 24px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s ease-in-out;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Sections Padding */
    section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .gradient-text {
        font-size: 2.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin: 20px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .benefits-stats {
        grid-template-columns: 1fr !important;
    }
    
    .benefits-stats > div:last-child {
        grid-column: span 1 !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .workflow-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .faq-item {
        padding: 20px !important;
    }
}

/* New Section Hover Effects */
.workflow-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

.faq-item:hover {
    border-color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

.faq-item h3 {
    transition: color 0.3s ease;
}

.faq-item:hover h3 {
    color: #38bdf8 !important;
}
/* Interface Preview */
.interface-preview {
    padding: 100px 20px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.interface-container {
    max-width: 1100px;
    margin: 40px auto 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
}

.interface-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.interface-container:hover img {
    transform: scale(1.01);
}

.interface-tag {
    padding: 30px 40px;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    z-index: 2;
}

.interface-tag h4 {
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Outfit';
    margin-bottom: 5px;
}

.interface-tag p {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .interface-preview {
        padding: 60px 20px;
    }
    .interface-tag {
        bottom: 20px;
        left: 20px;
    }
    .interface-tag h4 {
        font-size: 1.1rem;
    }
}
.logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Floating Chat Button */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floating 3s ease-in-out infinite, pulse-blue 2s infinite;
}

.floating-chat:hover {
    transform: scale(1.1) rotate(5deg) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6);
    animation-play-state: paused;
}

.floating-chat svg {
    width: 28px;
    height: 28px;
}

.chat-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-chat:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

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

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Trust Stats */
.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 24px;
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit';
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

@media (max-width: 768px) {
    .floating-chat {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .chat-tooltip {
        display: none;
    }
    .trust-stats {
        gap: 30px;
    }
    .stat-value {
        font-size: 1.8rem;
    }
}