/* ============================================================
   SJ88 Studio — Design System v2 (Dark Premium)
   คงชื่อ class และ CSS variables เดิมทั้งหมดไว้
   เพื่อให้ blog/*.html และหน้าอื่นที่ลิงก์ไฟล์นี้ใช้ได้ทันที
   ============================================================ */

:root {
    /* Brand */
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary: #F59E0B;
    --accent: #10B981;

    /* Surfaces */
    --bg: #0A0A14;
    --dark: #0A0A14;                          /* legacy alias */
    --dark-surface: #10101D;                  /* legacy alias */
    --dark-card: rgba(255, 255, 255, 0.035);  /* legacy alias */
    --surface: #10101D;
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Text */
    --text: #F4F4F8;
    --text-muted: #A1A1B5;

    /* Legacy aliases (ต้องคงไว้ — blog articles อ้างถึง) */
    --gradient-1: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 50%, #7C3AED 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.22) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 50% at 90% 100%, rgba(245, 158, 11, 0.07) 0%, transparent 55%),
                     linear-gradient(180deg, #0C0C18 0%, #0A0A14 100%);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --glow: 0 0 40px rgba(139, 92, 246, 0.25);

    /* Spacing scale */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    --radius: 16px;
    --radius-lg: 24px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(139, 92, 246, 0.45);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   Navigation
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px clamp(20px, 5vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    background: rgba(10, 10, 20, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 34px);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 0.25s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: right 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-cta {
    background: var(--gradient-1);
    padding: 9px 22px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.28);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.42);
}

/* Hamburger (มือถือ) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 90px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 30%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border-strong);
    color: var(--primary-light);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.8); }
}

.eyebrow {
    display: block;
    text-align: center;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.hero h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-3);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.hero h1 span,
.section-title span,
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions,
.cta-row {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

/* ============================================================
   Buttons
   ============================================================ */

.cta-button {
    display: inline-block;
    background: var(--gradient-1);
    color: #fff;
    padding: 15px 40px;
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 700;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.42);
}

.cta-button-secondary {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    box-shadow: none;
}

/* ============================================================
   Stats
   ============================================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-5) clamp(20px, 5vw, 50px);
}

.stat-item {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
    padding: var(--space-7) clamp(20px, 5vw, 50px);
}

.section-dark {
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
        var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.12rem;
    max-width: 640px;
    margin: -36px auto var(--space-6);
}

.page-header {
    padding: 160px 20px 90px;
    text-align: center;
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    margin-bottom: var(--space-2);
    line-height: 1.25;
}

.page-header p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   Cards — product / course
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--card-hover);
    box-shadow: var(--glow);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: var(--space-3);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-card>p {
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    font-size: 0.98rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin: var(--space-2) 0;
}

.product-price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: normal;
}

.product-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.14);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.product-card.featured {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%);
}

.product-card.featured::before {
    transform: scaleX(1);
}

/* รายการฟีเจอร์ในการ์ดสินค้า (แทน inline style เดิม) */
.feature-list {
    color: var(--text-muted);
    margin: var(--space-2) 0;
    display: grid;
    gap: 8px;
}

.feature-list li {
    padding-left: 26px;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 64px);
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: var(--space-3);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    font-size: 1.04rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.about-stat {
    background: var(--card);
    padding: var(--space-3);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s var(--ease);
}

.about-stat:hover {
    border-color: var(--border-strong);
}

.about-stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ============================================================
   Timeline
   ============================================================ */

.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 71px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.timeline-item {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    position: relative;
}

.timeline-year {
    min-width: 72px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-light);
    text-align: right;
    padding-top: 26px;
    white-space: nowrap;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 66px;
    top: 34px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    padding: var(--space-3);
    border-radius: var(--radius);
    flex: 1;
    transition: border-color 0.3s var(--ease);
}

.timeline-content:hover {
    border-color: var(--border-strong);
}

.timeline-content h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card);
    padding: clamp(28px, 4vw, 40px);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: var(--card-hover);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin: 0 auto var(--space-3);
}

.contact-card h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.contact-card p {
    color: var(--primary-light);
    font-size: 1.08rem;
    font-weight: 600;
}

.contact-card small {
    color: var(--text-muted);
    display: block;
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================================
   FAQ (details/summary accordion)
   ============================================================ */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-2);
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

.faq-item[open] {
    border-color: rgba(139, 92, 246, 0.4);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-light);
    transition: transform 0.3s var(--ease);
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ============================================================
   Blog
   ============================================================ */

.category-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 9px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-3);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: var(--card-hover);
    box-shadow: var(--glow);
}

.blog-card.hidden {
    display: none;
}

.blog-card-image {
    height: 150px;
    background:
        radial-gradient(ellipse 90% 120% at 50% -20%, rgba(139, 92, 246, 0.35) 0%, transparent 65%),
        var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-block;
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.14);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.13rem;
    margin-bottom: 8px;
    line-height: 1.45;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 14px;
    flex: 1;
}

.blog-card-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s var(--ease);
}

.blog-card:hover .blog-card-link {
    color: var(--primary);
}

/* ============================================================
   Banner — TikTok Affiliate
   ============================================================ */

.banner-tiktok {
    max-width: 800px;
    margin: var(--space-5) auto 0;
    background: linear-gradient(135deg, #FF0050 0%, #FF2D7E 45%, #00C2CC 100%);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-tiktok::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% -40%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.banner-tiktok h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    position: relative;
}

.banner-tiktok p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-3);
    position: relative;
}

.banner-tiktok .banner-cta {
    display: inline-block;
    background: #fff;
    color: #FF0050;
    padding: 12px 36px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.02rem;
    position: relative;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.banner-tiktok .banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--surface);
    padding: var(--space-6) clamp(20px, 5vw, 50px) 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: var(--space-3);
    font-size: 1.02rem;
    color: var(--primary-light);
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.25s var(--ease);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    margin-top: var(--space-5);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ============================================================
   Social
   ============================================================ */

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--space-4);
}

.social-link {
    width: 46px;
    height: 46px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.25s var(--ease);
    border: 1px solid var(--border);
}

.social-link:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ============================================================
   Floating Line CTA (มือถือ/แท็บเล็ต)
   ============================================================ */

.floating-line {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #06C755;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(6, 199, 85, 0.45);
    transition: transform 0.25s var(--ease);
}

.floating-line:hover {
    transform: scale(1.08);
}

.floating-line::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(6, 199, 85, 0.5);
    animation: float-ring 2.2s ease-out infinite;
}

@keyframes float-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.floating-line svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* ============================================================
   Container
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .floating-line {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }

    .nav-links.open {
        max-height: 420px;
    }

    .nav-links li {
        border-top: 1px solid var(--border);
    }

    .nav-links li:first-child {
        border-top: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 24px;
        font-size: 1.02rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        min-height: auto;
        padding: 130px 20px 70px;
    }

    .section {
        padding: var(--space-6) 20px;
    }

    .page-header {
        padding: 130px 20px 60px;
    }

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

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
        padding-left: 24px;
    }

    .timeline-item::after {
        left: 0;
        top: 8px;
    }

    .timeline-year {
        text-align: left;
        padding-top: 0;
        min-width: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-actions,
    .cta-row {
        flex-direction: column;
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .product-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
