:root {
    /* Brand Colors */
    --primary: #f97316;
    /* Orange 500 */
    --primary-dark: #c2410c;
    /* Orange 700 */
    --primary-light: #ffedd5;
    /* Orange 100 */
    --secondary: #1e293b;
    /* Slate 800 */
    --accent: #eab308;
    /* Yellow 500 */

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --text-main: #111827;
    --text-muted: #4b5563;

    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--gray-50);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Prompt', sans-serif;
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-dark);
}

.text-brand {
    color: #166534;
}

/* RootBiz Green */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-main);
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    /* Increased padding */
    background: radial-gradient(circle at top right, var(--primary-light) 0%, transparent 40%),
        radial-gradient(circle at bottom left, #e0f2fe 0%, transparent 40%);
    overflow: visible;
    /* Changed from hidden to allow shadows and decorations */
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    min-height: 500px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.trust-item i {
    color: var(--success);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Mockup Styles */
.mockup-frame {
    position: relative;
    margin: 0 auto;
    background: #1e293b;
    border: 4px solid #334155;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.mockup-frame.laptop {
    width: 100%;
    max-width: 500px;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16/10;
}

.mockup-frame.laptop .screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-frame.laptop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.mockup-frame.laptop .base {
    height: 12px;
    background: linear-gradient(to bottom, #475569, #0f172a);
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: -12px;
    width: 110%;
    left: -5%;
    z-index: 10;
}

.mockup-frame.mobile {
    width: 260px;
    height: 520px;
    border-radius: 40px;
    border: 8px solid #334155;
    background: #111;
}

.mockup-frame.mobile .screen {
    width: 100%;
    height: 100%;
    background: white;
    overflow-y: auto;
    scrollbar-width: none;
}

.mockup-frame.mobile img {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-frame.mobile .home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* Swiper Config */
.hero-swiper {
    width: 100%;
    padding-bottom: 40px;
    overflow: visible !important;
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible !important;
}

.hero-swiper .swiper-pagination {
    bottom: 0 !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    padding: 10px;
    background-clip: content-box;
    box-sizing: content-box;
}

.hero-swiper .swiper-pagination-bullet-active {
    background-clip: content-box;
}

.floating-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Feature Section */
.features-section {
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--gray-50);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Roadmap/Coming Soon */
.roadmap-section {
    background: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.roadmap-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.roadmap-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Cookie Consent Banner - Floating Card Style */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Floating on right by default */
    width: 320px;
    max-width: calc(100% - 40px);
    background-color: var(--secondary);
    color: var(--white);
    padding: 24px;
    z-index: 99999;
    /* Higher z-index just in case */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    /* Animation state: visible instantly if logic allows, or hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    margin-right: 0;
    margin-bottom: 20px;
    text-align: left;
}

.cookie-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent);
    /* More visible link color */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    /* Buttons right-aligned */
}

.btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    flex: 1;
    /* Make buttons flex */
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-decline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

/* Floating Cookie Trigger Button */
.cookie-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    /* Below banner */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cookie-trigger-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        /* On mobile, full width bottom sheet feels better but floating card is requested */
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        bottom: 20px;
        width: calc(100% - 32px);
    }

    .cookie-consent-banner.show {
        transform: translateX(-50%) translateY(0);
    }

    .cookie-trigger-btn {
        bottom: 16px;
        right: 16px;
    }

    .lang-switch {
        margin: 10px 0;
        justify-content: center;
        width: 100%;
    }
}

/* Pricing */
.pricing-section {
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Prompt', sans-serif;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--success);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    display: inline-block;
}

.cta-buttons .btn-white {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-buttons .btn-white:hover {
    background: var(--gray-100);
}

/* Footer */
footer {
    background: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    color: var(--primary);
    font-weight: 700;
}

.lang-sep {
    color: var(--gray-200);
    font-size: 14px;
}

/* About Us Section */
.about-section {
    background: var(--white);
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-list {
    margin: 20px 0 30px;
}

.about-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-list li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 16px;
}

/* Responsive adjustments for About Us */
@media (max-width: 960px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        order: 2;
    }
}