/* ══ DESIGN SYSTEM & VARIABLES ══ */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --accent: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --red: #ef4444;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-sans: 'Inter', 'Sarabun', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.65;
    font-size: 15px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══ TYPOGRAPHY & UTILS ══ */
.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }

/* ══ BUTTONS ══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
}

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

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-line {
    background-color: #06c755;
    color: white;
    font-size: 16px;
    padding: 14px 28px;
}
.btn-line:hover {
    background-color: #05b04b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 199, 85, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* ══ NAVBAR ══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 17px;
    color: var(--dark);
    line-height: 1.2;
}

.brand-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ══ HERO SECTION ══ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    text-align: center;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.35;
}

.hero-glow-1 { top: -100px; left: 10%; background: #6366f1; }
.hero-glow-2 { top: -50px; right: 10%; background: #06b6d4; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-desc {
    max-width: 740px;
    margin: 0 auto 32px;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-stats-bar {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
    gap: 20px;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ══ SECTION COMMON ══ */
.section {
    padding: 80px 0;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ══ STEPS ══ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.step-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    background: #eef2ff;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ══ FEATURES ══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.bg-indigo { background: #e0e7ff; }
.bg-green  { background: #dcfce7; }
.bg-purple { background: #f3e8ff; }
.bg-amber  { background: #fef3c7; }
.bg-blue   { background: #dbeafe; }
.bg-red    { background: #fee2e2; }

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.feature-list {
    list-style: none;
    font-size: 13px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ══ LIVE DEMO SECTION ══ */
.demo-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    align-items: start;
}

.demo-field {
    margin-bottom: 20px;
    text-align: left;
}

.demo-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.demo-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f8fafc;
}

.demo-result {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
}

.demo-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.result-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.compliance-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.demo-text-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    min-height: 140px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.demo-compliance-audit {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ══ PROFIT CALCULATOR ══ */
.profit-calculator-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-left h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.calc-left p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-val {
    color: var(--primary);
    font-weight: 700;
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    accent-color: var(--primary);
}

.calc-right {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    border-radius: 18px;
    padding: 32px;
    text-align: center;
}

.earning-title {
    font-size: 13px;
    color: #c7d2fe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.earning-amount {
    margin: 12px 0 6px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.earning-amount .currency { font-size: 24px; font-weight: 700; color: #a5b4fc; }
.earning-amount .number { font-size: 48px; font-weight: 900; line-height: 1; }

.earning-note {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 20px;
}

.bonus-box {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-size: 12px;
}

.bonus-item {
    display: flex;
    justify-content: space-between;
}

/* ══ REGISTRATION CARD ══ */
.registration-section {
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

.register-card {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.12);
    max-width: 680px;
    margin: 0 auto;
}

.badge-pill {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.register-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.register-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.quota-meter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.meter-urgent {
    color: #dc2626;
}

.meter-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.meter-fill {
    background: linear-gradient(90deg, #4f46e5, #10b981);
    height: 100%;
}

.meter-sub {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.req { color: var(--red); }

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.reg-success-box {
    text-align: center;
    padding: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    margin-top: 20px;
}

.success-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.reg-success-box h3 {
    color: #166534;
    font-size: 20px;
    margin-bottom: 8px;
}

.reg-success-box p {
    color: #15803d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ══ FAQ ══ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-arrow {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 14px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ══ FOOTER ══ */
.footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-meta {
    text-align: right;
    font-size: 12px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 32px; }
    .hero-stats-bar { flex-direction: column; border-radius: 20px; gap: 12px; }
    .stat-divider { width: 100%; height: 1px; }
    .demo-card { grid-template-columns: 1fr; }
    .profit-calculator-card { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .register-card { padding: 28px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
}
