/* ==========================================================================
   สไตล์เฉพาะสำหรับเว็บไซต์ SaleRadar (Light Theme เท่านั้น)
   คอมเมนต์ทั้งหมดในไฟล์นี้เขียนเป็นภาษาไทยตามข้อกำหนด
   ========================================================================== */

/* ตัวแปรสีหลักของระบบ */
:root {
    --primary-color: #e54000;       /* สีส้มหลักของ SaleRadar */
    --primary-hover: #b83300;       /* สีส้มเข้มเมื่อวางเมาส์ */
    --primary-light: #fff0eb;       /* สีส้มพาสเทลสำหรับพื้นหลังเบาๆ */
    --secondary-color: #ffb800;     /* สีเหลืองทองเรดาร์ */
    --text-dark: #212529;           /* สีข้อความหลัก */
    --text-muted: #6c757d;          /* สีข้อความรอง */
    --bg-light: #ffffff;            /* สีพื้นหลังหลัก */
    --bg-gray: #f8f9fa;             /* สีพื้นหลังการ์ดหรือโซนรอง */
    --border-color: #e9ecef;        /* สีเส้นขอบ */
    --card-shadow: 0 10px 30px rgba(229, 64, 0, 0.06); /* เงาการ์ดแบบนุ่มนวลโทนส้ม */
    --hero-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);    /* เงาของ Mockup มือถือ */
}

/* ตั้งค่าพื้นฐานและการจัดตัวอักษร */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;       /* ป้องกันแถบเมนูด้านบนทับหัวข้อเมื่อทำการเลื่อนตำแหน่ง */
}

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ส่วนหัวและการนำทาง (Navbar) */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(229, 64, 0, 0.2);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-left: 10px;
    margin-right: 10px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* การแสดงผลสำหรับเมนูแบบพับ (Collapsed Navbar) บนหน้าจอขนาดน้อยกว่า 1200px (xl breakpoint)
   สอดคล้องกับข้อกำหนดการรองรับธีมมืดและสว่างด้วยการใช้ CSS Variables */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: var(--bg-light);
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 10px 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav {
        width: 100%;
    }
}

/* ส่วนเนื้อหาหลักด้านบน (Hero Section) */
.hero-section {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 64, 0, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ป้ายแสดงดาวน์โหลด (Badge) */
.store-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    border-radius: 8px;
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-badge img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* พื้นที่จัดวางรูปเรดาร์ช้อปปิ้งหลักและแอนิเมชันด้านหลัง */
.hero-mockup-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px; /* กำหนดพื้นที่แนวตั้งเพื่อให้แอนิเมชันแสดงผลได้เต็มตา */
}

/* ภาพหลักเรดาร์ช้อปปิ้ง (นำไปตัดขอบเป็นวงกลมและใส่แสงเรือง) */
.hero-mockup {
    max-width: 380px; /* ขนาดสูงสุดเพื่อไม่ให้ล้นออกนอกพื้นที่ */
    width: 100%;
    height: auto;
    border-radius: 50%; /* ตัดแต่งภาพสี่เหลี่ยมให้เป็นรูปวงกลมสมบูรณ์ */
    box-shadow: 0 0 35px rgba(229, 64, 0, 0.35); /* เงาสะท้อนเรืองแสงสีส้ม */
    position: relative;
    z-index: 2; /* แสดงผลทับด้านบนแอนิเมชันเรดาร์ */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.hero-mockup-wrapper:hover .hero-mockup {
    transform: translateY(-8px) scale(1.03); /* เอฟเฟกต์ยกตัวลอยและขยายขึ้นเล็กน้อยเมื่อวางเมาส์ */
    box-shadow: 0 0 50px rgba(229, 64, 0, 0.55); /* เพิ่มความเรืองแสงสีส้มให้จัดจ้านขึ้น */
}

/* คอนเทนเนอร์จัดเก็บส่วนแอนิเมชันเรดาร์หลังรูปภาพหลัก */
.hero-radar-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px; /* ขนาดคลื่นรัศมีกว้างกว่าตัวภาพหลัก */
    height: 480px;
    z-index: 1; /* วางไว้เลเยอร์หลังภาพ */
    pointer-events: none; /* ป้องกันการขัดขวางการคลิกหรือวางเมาส์บนรูปภาพ */
}

/* 1. ลำแสงเรดาร์สแกนกวาด (Conic Gradient Sweeping Beam) */
.hero-radar-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(229, 64, 0, 0.25) 0deg,      /* สีส้มเข้มที่จุดเริ่มต้นลำแสง */
        rgba(229, 64, 0, 0.08) 60deg,     /* สีส้มอ่อนไล่จางลง */
        rgba(255, 184, 0, 0.02) 180deg,    /* สีทองจางๆ */
        transparent 270deg,
        transparent 360deg
    );
    animation: hero-radar-sweep 6s infinite linear; /* หมุนรอบตัวต่อเนื่องสม่ำเสมอ */
}

/* 2. คลื่นวิทยุกระจายสัญญาณ (Radar Pulse Waves) */
.hero-radar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(229, 64, 0, 0.25);
    background: radial-gradient(circle, rgba(229, 64, 0, 0.05) 0%, transparent 80%);
    opacity: 0;
    transform: scale(0.6);
    animation: hero-radar-wave 4s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* ตั้งค่าการหน่วงเวลาเพื่อสร้างมิติคลื่นกระจายเป็นระลอกต่อเนื่อง */
.hero-radar-pulse-1 {
    animation-delay: 0s;
}

.hero-radar-pulse-2 {
    animation-delay: 1.3s;
}

.hero-radar-pulse-3 {
    animation-delay: 2.6s;
}

/* 3. ลายตาข่ายและเส้นแกนเรดาร์จำลองแบบนิ่ง (Radar Static Grid lines) */
.hero-radar-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(229, 64, 0, 0.12); /* เส้นวงกลมประรอบนอก */
    box-shadow: inset 0 0 50px rgba(229, 64, 0, 0.04);
}

.hero-radar-grid::before,
.hero-radar-grid::after {
    content: '';
    position: absolute;
    background: rgba(229, 64, 0, 0.08);
}

/* เส้นตัดกึ่งกลางแนวตั้ง */
.hero-radar-grid::before {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

/* เส้นตัดกึ่งกลางแนวนอน */
.hero-radar-grid::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

/* คีย์เฟรมแอนิเมชันหมุนลำแสง */
@keyframes hero-radar-sweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* คีย์เฟรมแอนิเมชันแผ่กระจายคลื่น */
@keyframes hero-radar-wave {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.85; /* จุดสว่างสุดของคลื่น */
    }
    100% {
        transform: scale(1.18);
        opacity: 0; /* จางหายไปที่ขอบ */
    }
}

/* การรองรับการแสดงผลสำหรับอุปกรณ์จอเล็ก (Responsive Settings) */
@media (max-width: 576px) {
    .hero-mockup-wrapper {
        min-height: 320px; /* ลดความสูงของพื้นที่ลง */
    }
    
    .hero-mockup {
        max-width: 250px; /* ลดขนาดรูปหลักลงบนจอสมาร์ทโฟน */
    }
    
    .hero-radar-background {
        width: 310px; /* ปรับลดรัศมีเรดาร์ด้านหลังป้องกันการล้นหน้าจอ */
        height: 310px;
    }
}

/* ส่วนฟีเจอร์เด่น (Features Section) */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-tag {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 64, 0, 0.2);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* เอฟเฟกต์เรดาร์แอนิเมชันสำหรับเว็บไซต์ */
.radar-animation-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: radar-pulse 3s infinite linear;
    opacity: 0;
}

.radar-circle-1 { animation-delay: 0s; }
.radar-circle-2 { animation-delay: 1s; }
.radar-circle-3 { animation-delay: 2s; }

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
}

@keyframes radar-pulse {
    0% {
        width: 24px;
        height: 24px;
        opacity: 0.8;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* ==========================================================================
   ส่วนแหล่งข้อมูลเรดาร์ (Radar Sources Section)
   แสดงรายชื่อห้างสรรพสินค้าและร้านค้าออนไลน์ที่รองรับ
   ========================================================================== */

/* พื้นหลังโทนสว่างพร้อมไล่เฉดสีส้มอ่อนละมุน */
.radar-sources-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* จุดเรืองแสงตกแต่งพื้นหลัง */
.radar-sources-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 64, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.radar-sources-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* หัวข้อหลักของ Section */
.radar-sources-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* ข้อความ "24 ชม." ที่เน้นเป็นพิเศษ */
.radar-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* คำอธิบายรองใต้หัวข้อ */
.radar-sources-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

/* ป้ายหัวข้อ "แหล่งข้อมูลที่รองรับ" */
.radar-sources-label {
    margin-bottom: 1.25rem;
}

.sources-badge-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #ff6a33);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(229, 64, 0, 0.3);
}

/* ตารางจัดวางกล่องร้านค้า — ใช้ CSS Grid จัดเรียงแถวละ 5 คอลัมน์อย่างเป็นระเบียบสวยงาม */
.radar-sources-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
}

/* กล่องร้านค้าแต่ละกล่อง */
.source-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 16px; /* ปรับรูปทรงให้โค้งมนดูพรีเมียมสอดรับกับไอคอน */
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: default;
    /* แอนิเมชัน stagger ค่อยๆ เลื่อนแสดงทีละตัว */
    opacity: 0;
    transform: translateY(15px);
    animation: pill-fade-in 0.5s ease forwards;
}

/* กำหนดการหน่วงเวลาแอนิเมชันสำหรับแต่ละกล่อง */
.source-pill:nth-child(1) { animation-delay: 0.1s; }
.source-pill:nth-child(2) { animation-delay: 0.15s; }
.source-pill:nth-child(3) { animation-delay: 0.2s; }
.source-pill:nth-child(4) { animation-delay: 0.25s; }
.source-pill:nth-child(5) { animation-delay: 0.3s; }
.source-pill:nth-child(6) { animation-delay: 0.35s; }
.source-pill:nth-child(7) { animation-delay: 0.4s; }
.source-pill:nth-child(8) { animation-delay: 0.45s; }
.source-pill:nth-child(9) { animation-delay: 0.5s; }
.source-pill:nth-child(10) { animation-delay: 0.55s; }

@keyframes pill-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* เอฟเฟกต์โฮเวอร์ยกตัวขึ้นและเปลี่ยนสีเส้นขอบ */
.source-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 64, 0, 0.35);
    box-shadow: 0 8px 20px rgba(229, 64, 0, 0.12);
    color: var(--primary-color);
}

/* โลโก้ของร้านค้าที่ขยายขนาดให้ใหญ่ขึ้น */
.source-pill-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px; /* ขอบโค้งมนของภาพโลโก้ */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* เงาบางเบา */
    background-color: #ffffff; /* รองรับกรณีรูปภาพมีส่วนโปร่งใส */
    padding: 2px;
    transition: transform 0.3s ease;
}

.source-pill:hover .source-pill-logo {
    transform: scale(1.1); /* ขยายขนาดรูปโลโก้เล็กน้อยเมื่อโฮเวอร์เพื่อมิติแบบไดนามิก */
}

/* ชื่อร้านค้า */
.source-pill-name {
    white-space: nowrap;
}

/* แถบสถิติตัวเลข (10+ แหล่ง, 24/7, ฟรี) */
.radar-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 0.5rem 0;
}

/* แต่ละช่องสถิติ */
.radar-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.radar-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.radar-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* เส้นคั่นระหว่างสถิติ */
.radar-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}


/* ส่วนแชร์ข้อมูล Local-First */
.privacy-highlight-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    border-radius: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.privacy-badge {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* ปุ่มและฟอร์มติดต่อกลับ */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
}

.form-control {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(229, 64, 0, 0.25);
}

/* ส่วนท้ายของเว็บ (Footer) */
footer {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ลิงก์แบรนด์ผู้พัฒนาในส่วนท้าย */
.footer-brand-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-brand-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ส่วนสำหรับหน้าเอกสารข้อตกลงการใช้งานและนโยบายความเป็นส่วนตัว */
.document-container {
    padding: 120px 0 80px 0;
}

.document-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--card-shadow);
}

.document-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.document-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.document-content p, .document-content li {
    color: #495057;
    margin-bottom: 15px;
}

.document-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

/* ==========================================================================
   ส่วนขั้นตอนการใช้งานดีไซน์ใหม่ (Modern How-to-use Section)
   คอมเมนต์ทั้งหมดในส่วนนี้เขียนเป็นภาษาไทยตามข้อกำหนด
   ========================================================================== */

.how-to-use-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-gray) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* คอนเทนเนอร์จัดวางการ์ดขั้นตอน */
.steps-container {
    position: relative;
    z-index: 2;
}

/* เส้นจุดเชื่อมขั้นตอน (Step Connectors) สำหรับจอขนาดใหญ่ */
.step-connector {
    position: absolute;
    top: 35%;
    width: 10%;
    height: 2px;
    border-top: 2px dashed rgba(229, 64, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

/* ตำแหน่งของเส้นเชื่อมโยง */
.connector-1 {
    left: 20%;
}

.connector-2 {
    left: 45%;
}

.connector-3 {
    left: 70%;
}

/* หัวลูกศรขยับเพื่อดึงดูดสายตา */
.step-connector::after {
    content: '➔';
    position: absolute;
    right: -5px;
    top: -12px;
    color: rgba(229, 64, 0, 0.4);
    font-size: 1.2rem;
    animation: connector-pulse 2s infinite ease-in-out;
}

/* การ์ดแต่ละขั้นตอน */
.step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 30px 40px 30px;
    position: relative;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

/* เอฟเฟกต์ยกตัวและการเรืองแสงเมื่อวางเมาส์เหนือการ์ด */
.step-card:hover {
    transform: translateY(-12px);
    border-color: rgba(229, 64, 0, 0.25);
    box-shadow: 0 20px 40px rgba(229, 64, 0, 0.08);
}

/* วงกลมตัวเลขไล่เฉดสี */
.step-number-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(229, 64, 0, 0.4);
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
}

.step-card:hover .step-number-badge {
    transform: translateX(-50%) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(229, 64, 0, 0.6);
}

/* พื้นหลังไอคอน SVG ด้านใน */
.step-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon-box {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(-5deg);
}

.step-icon-box svg {
    width: 38px;
    height: 38px;
}

/* ข้อความอธิบายในส่วนขั้นตอน */
.step-card h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* แอนิเมชันสำหรับลูกศรจุดปะ */
@keyframes connector-pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* รองรับ Responsive สำหรับหน้าจอแท็บเล็ตและโทรศัพท์มือถือ */
@media (max-width: 991px) {
    .step-connector {
        display: none; /* ซ่อนเส้นเชื่อมในขนาดจอที่การ์ดจะเรียงต่อกันเป็นแถวตั้ง */
    }
    .step-card {
        padding: 40px 20px 30px 20px;
    }
    .radar-sources-grid {
        grid-template-columns: repeat(3, 1fr); /* บนแท็บเล็ตแสดงแถวละ 3 คอลัมน์ */
        max-width: 720px;
        gap: 12px;
    }
}

/* Responsive — ปรับขนาดสำหรับจอมือถือ ย้ายมาต่อท้ายเพื่อไม่ให้โดนสไตล์ของแท็บเล็ตเขียนทับ */
@media (max-width: 576px) {
    .radar-sources-title {
        font-size: 1.4rem;
    }

    .radar-sources-subtitle {
        font-size: 0.95rem;
    }

    .radar-sources-grid {
        grid-template-columns: repeat(2, 1fr); /* บนมือถือแสดง 2 คอลัมน์ */
        gap: 10px;
        padding: 0 15px;
    }

    .source-pill {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 12px;
        gap: 8px;
    }

    .source-pill-logo {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .radar-stats-row {
        gap: 1.25rem;
    }

    .radar-stat-number {
        font-size: 1.35rem;
    }
}


/* ==========================================================================
   ส่วนจัดวางภาพตัวอย่างหน้าจอแอปและแบนเนอร์เพิ่มเติม
   คอมเมนต์ทั้งหมดเขียนเป็นภาษาไทยตามข้อกำหนด
   ========================================================================== */

/* สไตล์สำหรับแบนเนอร์แนวกว้าง */
.overview-banner-wrapper {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    background-color: var(--primary-light);
}

.overview-banner-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(229, 64, 0, 0.12) !important;
}

.overview-banner-img {
    transition: transform 0.6s ease;
}

.overview-banner-wrapper:hover .overview-banner-img {
    transform: scale(1.02);
}

/* สไตล์สำหรับส่วนการ์ดแสดงหน้าจอแอปพลิเคชัน */
.showcase-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-card:hover {
    transform: translateY(-10px);
    border-color: rgba(229, 64, 0, 0.2);
    box-shadow: 0 20px 40px rgba(229, 64, 0, 0.1);
}

.showcase-img-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    padding: 40px 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* โครงร่างกรอบโทรศัพท์จำลอง (CSS-only Phone Mockup) */
.phone-mockup {
    position: relative;
    width: 210px; /* ขนาดกะทัดรัดพอดีมือถือการ์ด */
    aspect-ratio: 485 / 1024;
    background: #111111;
    border: 9px solid #111111;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 2px #2d2d2d;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.5s ease;
}

/* รูกล้องหน้าแบบหยดน้ำ/รูเจาะ (Punch Hole Camera) */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #050505;
    border-radius: 50%;
    z-index: 10;
}

/* ลำโพงด้านบนของโทรศัพท์ */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #2d2d2d;
    border-radius: 10px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 23px; /* ให้รับกับความมนของขอบใน */
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* การเปลี่ยนสีขอบเงาเป็นสีส้มแบรนด์เมื่อเอาเมาส์มาวางทับการ์ด */
.showcase-card:hover .phone-mockup {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 25px 50px rgba(229, 64, 0, 0.22), 0 0 0 2px var(--primary-color);
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.showcase-info h5 {
    color: var(--text-dark);
}

.showcase-info p {
    line-height: 1.5;
}

