:root {
    /* ZynexPay Blue/White Fintech Palette */
    --primary-color: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;

    --secondary-color: #6366F1;
    --accent-color: #06B6D4;
    --accent-gold: #F59E0B;

    /* Light/Dark Mode Bases */
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Premium Gradients */
    --gradient-scb: linear-gradient(135deg, #1E40AF 0%, #0F172A 100%);
    --brand-gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, transparent 60%);
    --gradient-1: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --gradient-2: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --gradient-3: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);

    /* Tech Grid Pattern */
    --bg-grid:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    --bg-grid-size: 60px 60px;
}

/* Force modern structure */
body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* Dashboard Mockup - Premium Glass */
.dashboard-mockup {
    position: relative;
    background: rgba(30, 64, 175, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    width: 120%;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center left;
}

.dashboard-mockup:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 40px 80px -12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(59, 130, 246, 0.3);
}

.dashboard-mockup .glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Dashboard Header */
.mockup-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 40px 70px -12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(59, 130, 246, 0.2);
        transform: scale(1.005);
    }

    100% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
}

/* Trust Badge Pills (Hero) */
.trust-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trust-badge-pill span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.trust-badge-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
}

.control-dot.red {
    background: #ef4444;
}

.control-dot.yellow {
    background: #f59e0b;
}

.control-dot.green {
    background: #10b981;
}

.mockup-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Dashboard Body */
.mockup-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 0;
}

.flow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: flowPulse 3s ease-in-out infinite;
}

@keyframes flowPulse {
    0% {
        left: -30%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

.flow-node {
    position: relative;
    z-index: 1;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    min-width: 90px;
}

.flow-node:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.node-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.flow-node:hover .node-icon {
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

/* Nav & Footer */
body nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.05);
}

body footer {
    background: #1E293B;
    color: #F8FAFC;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

body footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #06B6D4, transparent);
}

body footer h4 {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body footer a,
body footer p {
    color: #94A3B8;
}

body footer a:hover {
    color: #3B82F6;
    text-decoration: none;
}

/* Hero Typography */
.bg-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-glow-text {
    position: relative;
}

.hero-glow-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.65) 0%, transparent 100%);
    filter: blur(45px);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-title-large {
    font-family: 'Inter', sans-serif;
    font-size: 3.25rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
    letter-spacing: -0.02em;
}

.hero-subtitle-large {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 95%;
    margin-left: 0;
    text-align: left;
    font-weight: 400;
}

:lang(th) .hero-title-large {
    font-size: 2.5rem;
    line-height: 1.3;
    letter-spacing: 0;
    font-weight: 700;
}

:lang(th) .hero-subtitle-large {
    font-size: 1rem;
}

/* Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    max-width: 100%;
}

.hero-visual {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4rem;
}

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

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-title-large {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle-large {
        margin: 0 auto 2rem auto;
        text-align: center;
    }

    .hero-cta {
        justify-content: center !important;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Hover lift */
.lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6), 0 0 80px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.8), 0 0 100px rgba(6, 182, 212, 0.6);
    filter: brightness(120%);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: #EFF6FF;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Glass Panels */
.glass-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.1), 0 4px 6px -2px rgba(30, 64, 175, 0.05);
    transform: translateY(-2px);
}

/* Text Gradients */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Mobile menu dropdown */
@media (max-width: 768px) {
    .nav-links.show {
        display: flex !important;
        position: absolute;
        right: 1rem;
        top: 70px;
        flex-direction: column;
        gap: 1rem;
        background: #1E293B;
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
        width: calc(100% - 2rem);
        left: 1rem;
    }
}

/* Language select */
.lang-select {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    padding: .45rem .8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-select:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.lang-select option {
    background: #1E293B;
    color: white;
}