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

:root {
    /* Dark Theme Default */
    --bg-dark-base: #060b13;
    --bg-dark-surface: #0a101b;
    --bg-dark-card: rgba(13, 22, 37, 0.7);
    
    --accent-orange: #FF5A00;
    --accent-orange-glow: rgba(255, 90, 0, 0.35);
    --accent-gold: #D4AF37;
    --accent-gold-glow: rgba(212, 175, 55, 0.3);
    
    --text-primary: #FFFFFF;
    --text-secondary: #97A9C0;
    --text-muted: #586B84;
    
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(255, 90, 0, 0.25);
    
    --success-color: #00E676;
    --danger-color: #FF1744;
    --info-color: #00E5FF;
    
    --font-thai: 'Sarabun', sans-serif;
    --font-eng: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme {
    /* Light Theme Overrides */
    --bg-dark-base: #f0f4f8;
    --bg-dark-surface: #ffffff;
    --bg-dark-card: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(255, 90, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-thai);
    background-color: var(--bg-dark-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 90, 0, 0.06) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.06) 0px, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-thai);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.eng-text {
    font-family: var(--font-eng);
}

.glow-text-orange {
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text-gold {
    background: linear-gradient(135deg, #FFE89C 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 11, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

body.light-theme .navbar {
    background: rgba(240, 244, 248, 0.75);
}

.navbar.scrolled {
    padding: 12px 40px;
    background: rgba(6, 11, 19, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 38px;
    height: 38px;
    fill: var(--accent-orange);
    filter: drop-shadow(0 0 10px var(--accent-orange-glow));
}

.brand-text {
    font-family: var(--font-eng);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.5px;
}

.brand-text span {
    color: var(--accent-orange);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 25px;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-orange);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
    background: rgba(255, 90, 0, 0.1);
    border-color: var(--accent-orange);
}

/* Hamburger Toggle */
.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark-surface);
    border-left: 1px solid var(--border-glass);
    z-index: 1050;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .nav-link {
    font-size: 16px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

/* Sticky Bottom Navigation for Mobile (Disabled) */
.sticky-bottom-nav {
    display: none !important;
}

body.light-theme .sticky-bottom-nav {
    display: none !important;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    flex-grow: 1;
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--accent-orange);
}

/* Increase body padding-bottom on mobile to prevent content clipping */
@media (max-width: 768px) {
    body {
        padding-bottom: 65px;
    }
}

/* Main Container */
.section {
    padding: 80px 25px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-content h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }
}

.hero-content p {
    font-size: 15.5px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-cta-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Showcase Screens Mockups */
.showcase-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-wrapper {
    position: relative;
    width: 270px;
    height: 520px;
    background: #010204;
    border: 9px solid #1a202c;
    border-radius: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.8),
        0 0 40px rgba(255, 90, 0, 0.15);
    overflow: hidden;
    z-index: 2;
}

.phone-camera-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background: #1a202c;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 25px 15px 15px;
    background: #060b13;
    scrollbar-width: none;
}

.phone-screen-content::-webkit-scrollbar {
    display: none;
}

/* Features Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

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

.feature-glass-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 35px 30px;
    transition: var(--transition-smooth);
}

.feature-glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(255, 90, 0, 0.08);
}

.feature-icon-box {
    width: 55px;
    height: 55px;
    background: rgba(255, 90, 0, 0.1);
    border: 1px solid rgba(255, 90, 0, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-orange);
}

.feature-glass-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-glass-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.step-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--accent-orange);
}

.step-number {
    font-family: var(--font-eng);
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 90, 0, 0.15);
    position: absolute;
    top: 20px;
    right: 30px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    margin-top: 10px;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

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

.benefit-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    background: rgba(0, 229, 255, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(0, 229, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* FAQ Section Styling */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

.faq-icon {
    font-size: 18px;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.faq-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-top: 0px solid transparent;
}

.faq-item.open {
    border-color: var(--accent-orange-glow);
}

.faq-item.open .faq-body {
    padding: 20px 25px;
    max-height: 200px;
    border-top: 1px solid var(--border-glass);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.premium-tag {
    border-color: var(--accent-orange);
    background: linear-gradient(180deg, rgba(255, 90, 0, 0.04) 0%, rgba(13, 22, 37, 0.7) 100%);
}

body.light-theme .pricing-card.premium-tag {
    background: linear-gradient(180deg, rgba(255, 90, 0, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 90, 0, 0.1);
    color: var(--accent-orange);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 0, 0.2);
}

.pricing-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pricing-price {
    font-family: var(--font-eng);
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.pricing-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.pricing-features-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features-list li svg {
    color: var(--accent-orange);
    flex-shrink: 0;
}

/* Demo Simulation Panel */
.demo-container {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .demo-container {
        grid-template-columns: 1.1fr 1fr;
    }
}

.demo-left h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.demo-left p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.demo-selectors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.demo-btn-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.light-theme .demo-btn-table {
    background: rgba(0, 0, 0, 0.02);
}

.demo-btn-table:hover, .demo-btn-table.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.demo-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.demo-qr-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    width: 220px;
    height: 220px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 10px;
    font-family: var(--font-thai);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #FF7400 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E65100 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12.5px;
    border-radius: 8px;
}

/* Modal Popup Contact */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 9, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.contact-modal-card {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 50px rgba(255, 90, 0, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 35px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-thai);
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: var(--bg-dark-surface);
    border-top: 1px solid var(--border-glass);
    padding: 50px 25px 30px;
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 12px;
}

.footer-copyright span {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Mock Screen Styles */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mock-shop-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}

.mock-table-badge {
    background: rgba(255, 90, 0, 0.15);
    color: var(--accent-orange);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.mock-menu-category {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.mock-cat-tab {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    color: var(--text-secondary);
}

.mock-cat-tab.active {
    background: var(--accent-orange);
    color: #FFFFFF;
    border-color: var(--accent-orange);
}

.mock-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mock-menu-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-item-thumb {
    width: 32px;
    height: 32px;
    background: rgba(255, 90, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

.mock-item-details {
    flex-grow: 1;
}

.mock-item-name {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
}

.mock-item-price {
    font-size: 10px;
    color: var(--accent-gold);
    font-weight: 700;
}

.mock-item-add {
    background: var(--accent-orange);
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    cursor: pointer;
    font-weight: 700;
}
