/* ==========================================================================
   Home page (index.php) — modern layout
   ใช้ตัวแปรสีจาก public-theme.css (navy + gold) — โหลดหลัง public-theme.css
   ========================================================================== */

/* ---------- Navbar on dark hero (index ใช้ fixed-top) ---------- */
body {
    background: #fff;
}

/* ---------- Generic section ---------- */
.hx-section {
    padding: 96px 0;
    position: relative;
}

.hx-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.hx-head-center {
    justify-content: center;
    text-align: center;
}

.hx-head-center .hx-sub {
    margin-left: auto;
    margin-right: auto;
}

.hx-h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.hx-sub {
    color: var(--muted);
    max-width: 560px;
    margin: 0;
}

.hx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    text-align: center;
    background: var(--navy-50);
}

.hx-empty i {
    font-size: 2rem;
    color: var(--gold-500);
}

/* ---------- HERO ---------- */
.hx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 150px 0 110px;
    color: #fff;
    background: linear-gradient(160deg, #061430 0%, #0a1f44 45%, #163d7a 100%);
}

.hx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.hx-orb-1 {
    width: 520px;
    height: 520px;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(220, 185, 69, 0.55), transparent 65%);
    animation: hx-drift 14s ease-in-out infinite alternate;
}

.hx-orb-2 {
    width: 620px;
    height: 620px;
    left: -220px;
    bottom: -320px;
    background: radial-gradient(circle, rgba(75, 163, 217, 0.45), transparent 65%);
    animation: hx-drift 18s ease-in-out infinite alternate-reverse;
}

.hx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}

@keyframes hx-drift {
    to {
        transform: translate(-40px, 40px) scale(1.08);
    }
}

.hx-title {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin: 6px 0 20px;
    color: #fff;
}

.hx-title-gold {
    background: linear-gradient(90deg, #dcb945 0%, #f3e2a4 60%, #dcb945 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hx-lead {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin-bottom: 30px;
}

.hx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hx-btn-ghost {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hx-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

/* แถบสถิติ: กล่องกระจกใบเดียว แบ่ง 3 ช่องด้วยเส้นคั่น ตัวเลขใหญ่สีทอง */
.hx-stats {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin-top: 40px;
    padding: 18px 8px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(220, 185, 69, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* เส้นทองเรืองแสงด้านบนของกล่อง */
.hx-stats::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #ecd488, transparent);
}

.hx-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2px 14px;
}

.hx-stat + .hx-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hx-stat-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--navy-900);
    background: var(--gold-gradient);
    box-shadow: 0 8px 18px rgba(201, 162, 39, 0.35);
}

.hx-stat-num {
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 0%, #f3e2a4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hx-stat-label {
    margin-top: 4px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

/* Hero visual (mock UI) */
.hx-visual {
    position: relative;
    max-width: 500px;
    margin-left: auto;
    padding: 30px 10px 40px 40px;
}

.hx-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.hx-visual:hover .hx-panel {
    transform: perspective(1200px) rotateY(0) rotateX(0);
}

.hx-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hx-panel-head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--gold-400);
}

.hx-panel-head strong {
    display: block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    color: var(--navy-900);
    line-height: 1.2;
}

.hx-panel-head small {
    color: var(--muted);
    font-size: 0.75rem;
}

.hx-live {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 999px;
}

.hx-live i {
    font-size: 0.5rem;
    vertical-align: middle;
}

.hx-video {
    position: relative;
    height: 170px;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(220, 185, 69, 0.45), transparent 50%),
        linear-gradient(135deg, #0a1f44 0%, #1f4f99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hx-play {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    background: #fff;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.18);
    padding-left: 4px;
}

.hx-video-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.25);
}

.hx-video-bar span,
.hx-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a227, #ecd488);
}

.hx-course-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    font-size: 0.86rem;
}

.hx-course-row + .hx-course-row {
    border-top: 1px solid var(--line);
}

.hx-course-row b {
    color: var(--navy-900);
    font-weight: 600;
}

.hx-course-row em {
    font-style: normal;
    font-weight: 700;
    color: var(--gold-600);
}

.hx-progress {
    height: 6px;
    margin-top: 6px;
    border-radius: 6px;
    background: var(--navy-50);
}

.hx-dot,
.hx-float-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--c);
}

.hx-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    font-size: 0.82rem;
    animation: hx-float 5s ease-in-out infinite;
}

.hx-float b {
    display: block;
    font-family: var(--font-head);
    color: var(--navy-900);
    line-height: 1.2;
}

.hx-float small {
    color: var(--muted);
}

.hx-float-1 {
    left: 0;
    bottom: -6px;
}

.hx-float-2 {
    right: -14px;
    top: 0;
    animation-delay: -2.5s;
}

@keyframes hx-float {
    50% {
        transform: translateY(-10px);
    }
}

/* ---------- CATEGORIES ---------- */
.hx-cats {
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(220, 185, 69, 0.10), transparent 60%),
        radial-gradient(600px 320px at 0% 100%, rgba(31, 79, 153, 0.07), transparent 60%),
        var(--page-bg);
    padding-top: 84px;
    padding-bottom: 84px;
}

.hx-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* ถ้ามีหมวดน้อย ไม่ให้การ์ดยืดกว้างเกินไป */
.hx-cat-grid:has(> .hx-cat:nth-child(-n+3):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
}

.hx-cat {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 200px;
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04), 0 10px 28px rgba(10, 31, 68, 0.06);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* แถบสีด้านบน */
.hx-cat::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(var(--accent-rgb), 0.35));
}

/* พื้นสีอ่อนตอน hover */
.hx-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hx-cat:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 2px 4px rgba(10, 31, 68, 0.05), 0 22px 44px rgba(var(--accent-rgb), 0.18);
}

.hx-cat:hover::after {
    opacity: 1;
}

.hx-cat-watermark {
    position: absolute;
    right: -14px;
    bottom: -18px;
    z-index: -1;
    font-size: 7.5rem;
    line-height: 1;
    color: rgba(var(--accent-rgb), 0.06);
    transform: rotate(-12deg);
    transition: transform 0.5s ease, color 0.35s ease;
}

.hx-cat:hover .hx-cat-watermark {
    color: rgba(var(--accent-rgb), 0.11);
    transform: rotate(-4deg) scale(1.08);
}

.hx-cat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hx-cat-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-rgb), 0.72));
    box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.32);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.hx-cat:hover .hx-cat-icon {
    transform: scale(1.08) rotate(-6deg);
}

.hx-cat-count {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.1);
    white-space: nowrap;
}

.hx-cat-count i {
    font-size: 0.72rem;
    margin-right: 3px;
}

.hx-cat-name {
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-cat-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.25s ease;
}

.hx-cat-link i {
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.hx-cat:hover .hx-cat-link {
    color: var(--accent-color);
}

.hx-cat:hover .hx-cat-link i {
    transform: translateX(4px);
}

/* ---------- COURSES ---------- */
.hx-course {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hx-course:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(201, 162, 39, 0.45);
}

.hx-course-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hx-course-media .course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hx-course:hover .course-image {
    transform: scale(1.06);
}

.hx-course-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hx-course-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px 22px;
}

.hx-course-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-course-desc {
    color: var(--muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 18px;
}

.hx-course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.hx-teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.hx-teacher-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--gold-300);
    background: var(--brand-gradient);
}

.hx-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    white-space: nowrap;
}

.hx-pill-success {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

/* ---------- FEATURES (bento) ---------- */
.hx-features {
    background: var(--page-bg);
}

.hx-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hx-tile {
    position: relative;
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hx-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(201, 162, 39, 0.45);
}

.hx-tile h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 16px 0 6px;
}

.hx-tile p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.hx-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: var(--c, var(--navy-700));
    box-shadow: 0 10px 20px rgba(10, 31, 68, 0.15);
}

.hx-tile-hero {
    grid-column: span 2;
    grid-row: span 2;
    color: #fff;
    border: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
        radial-gradient(500px 300px at 90% 0%, rgba(220, 185, 69, 0.35), transparent 60%),
        linear-gradient(150deg, #0a1f44 0%, #163d7a 100%);
}

.hx-tile-hero::before {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -30px;
    font-size: 13rem;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.hx-tile-hero .hx-tile-icon {
    color: var(--navy-900);
    background: var(--gold-gradient);
}

.hx-tile-hero h3 {
    color: #fff;
    font-size: 1.6rem;
}

.hx-tile-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    max-width: 420px;
}

.hx-tile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hx-tile-chips span {
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hx-tile-chips i {
    color: var(--gold-400);
    margin-right: 4px;
}

.hx-tile-wide {
    grid-column: span 4;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hx-tile-wide h3 {
    margin-top: 0;
}

.hx-devices {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    color: var(--navy-100);
}

.hx-devices i:nth-child(1) {
    font-size: 2.6rem;
}

.hx-devices i:nth-child(2) {
    font-size: 2.1rem;
}

.hx-devices i:nth-child(3) {
    font-size: 1.6rem;
    color: var(--gold-300);
}

/* ---------- NEWS ---------- */
.hx-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hx-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(201, 162, 39, 0.45);
}

.hx-news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(220, 185, 69, 0.3), transparent 55%),
        var(--brand-gradient);
}

.hx-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hx-news-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.25);
}

.hx-news-date {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.92);
}

.hx-news-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px;
}

.hx-news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-news-text {
    color: var(--muted);
    font-size: 0.95rem;
    flex-grow: 1;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.hx-read {
    flex-shrink: 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--gold-600);
}

.hx-read i {
    transition: transform 0.2s;
}

.hx-news-card:hover .hx-read i {
    transform: translateX(4px);
}

/* ---------- CTA ---------- */
.hx-cta-wrap {
    padding: 0 0 96px;
}

.hx-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 48px 52px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(220, 185, 69, 0.35), transparent 60%),
        linear-gradient(135deg, #061430 0%, #163d7a 100%);
    box-shadow: 0 30px 60px rgba(10, 31, 68, 0.25);
}

.hx-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 6px;
}

.hx-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.hx-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hx-hero {
        padding: 120px 0 80px;
    }

    .hx-visual {
        margin: 0 auto;
    }

    .hx-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .hx-tile-wide {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .hx-section {
        padding: 64px 0;
    }

    .hx-head {
        margin-bottom: 28px;
    }

    .hx-hero {
        padding: 108px 0 64px;
        text-align: left;
    }

    .hx-stats {
        padding: 14px 6px;
    }

    .hx-stat {
        flex-direction: column;
        gap: 8px;
        padding: 4px 6px;
        text-align: center;
    }

    .hx-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .hx-stat-num {
        font-size: 1.9rem;
    }

    .hx-stat-label {
        font-size: 0.82rem;
    }

    .hx-bento {
        grid-template-columns: 1fr;
    }

    .hx-tile-hero,
    .hx-tile-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .hx-tile-hero {
        min-height: 280px;
    }

    .hx-devices {
        display: none;
    }

    .hx-cta {
        padding: 34px 24px;
        text-align: center;
        justify-content: center;
    }

    .hx-cta-actions {
        justify-content: center;
        width: 100%;
    }

    .hx-cta-wrap {
        padding-bottom: 64px;
    }
}

@media (max-width: 575.98px) {
    .hx-actions .btn,
    .hx-cta-actions .btn {
        width: 100%;
    }

    .hx-cat-grid,
    .hx-cat-grid:has(> .hx-cat:nth-child(-n+3):last-child) {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hx-cat {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hx-orb,
    .hx-float {
        animation: none;
    }

    .hx-panel {
        transform: none;
    }
}
