:root {
    --bg-dark: #06070c;
    --bg-surface: #0e111a;
    --bg-card: rgba(18, 22, 35, 0.7);
    --bg-card-hover: rgba(25, 30, 48, 0.85);
    
    --gold: #f5c042;
    --gold-bright: #ffdf73;
    --gold-gradient: linear-gradient(135deg, #ffdf73 0%, #e5a91a 50%, #b87b00 100%);
    --gold-glow: rgba(245, 192, 66, 0.35);
    --gold-glow-intense: rgba(245, 192, 66, 0.65);

    --cyan: #00f2fe;
    --cyan-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --cyan-glow: rgba(0, 242, 254, 0.35);
    
    --text-main: #ffffff;
    --text-muted: #9ba1b0;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --font-main: 'Outfit', 'Noto Sans Thai', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Glow Orbs & Grid */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 192, 66, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: 10%;
    animation: floatOrb 12s ease-in-out infinite alternate;
}
.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(0,0,0,0) 70%);
    top: 300px;
    right: 5%;
    animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.max-w-4xl { max-width: 960px; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 12, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--gold-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0c10;
    box-shadow: 0 0 15px var(--gold-glow);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}
.brand:hover .brand-icon {
    transform: rotate(0deg) scale(1.05);
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
}
.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--border-glass);
    border-radius: 4px;
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 4px;
    border: 1px solid rgba(245, 192, 66, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}
.nav-link:hover {
    color: #fff;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    bottom: -4px;
    left: 0;
    transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
}
.btn-primary-nav {
    background: var(--gold-gradient);
    color: #0d0f17;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(245, 192, 66, 0.3);
}
.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 192, 66, 0.5);
}
.telegram-icon { width: 18px; height: 18px; }
.telegram-icon-lg { width: 24px; height: 24px; }

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(245, 192, 66, 0.08);
    border: 1px solid rgba(245, 192, 66, 0.25);
    border-radius: 100px;
    color: var(--gold-bright);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-bright);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--gold-bright); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}
.gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(245, 192, 66, 0.25));
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 56px;
    line-height: 1.8;
    text-align: center;
}

/* Portal Hub Grid (2 Cards) */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.portal-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 38px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    --mouse-x: -500px;
    --mouse-y: -500px;
}

.card-glow-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.05), transparent 40%);
    transition: opacity 0.3s ease;
    z-index: 0;
}
.ufabet-card .card-glow-bg {
    background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(245, 192, 66, 0.12), transparent 45%);
}
.askmebet-card .card-glow-bg {
    background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 254, 0.12), transparent 45%);
}
.card-header, .card-desc, .feature-list, .card-action {
    position: relative;
    z-index: 1;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    transition: opacity 0.4s ease;
    opacity: 0.8;
    z-index: 2;
}

.ufabet-card::before { background: var(--gold-gradient); }
.askmebet-card::before { background: var(--cyan-gradient); }

.portal-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
}
.ufabet-card:hover {
    border-color: rgba(245, 192, 66, 0.4);
    box-shadow: 0 20px 50px -15px rgba(245, 192, 66, 0.25);
}
.askmebet-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 20px 50px -15px rgba(0, 242, 254, 0.2);
}

.card-header {
    margin-bottom: 24px;
}
.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.gold-tag {
    background: rgba(245, 192, 66, 0.15);
    color: var(--gold-bright);
    border: 1px solid rgba(245, 192, 66, 0.3);
}
.cyan-tag {
    background: rgba(0, 242, 254, 0.15);
    color: #55f5ff;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.platform-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gold-circle {
    background: var(--gold-gradient);
    color: #0b0c10;
    box-shadow: 0 0 20px rgba(245, 192, 66, 0.4);
}
.cyan-circle {
    background: var(--cyan-gradient);
    color: #071018;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.platform-logo h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.card-desc {
    color: #c7ccda;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 36px;
    flex-grow: 1;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.check-icon {
    font-weight: 800;
    color: var(--gold-bright);
}
.askmebet-card .check-icon {
    color: var(--cyan);
}

.card-action {
    margin-top: auto;
}
.btn-portal-gold, .btn-portal-cyan {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    justify-content: space-between;
    border-radius: 12px;
}
.btn-portal-gold {
    background: var(--gold-gradient);
    color: #0a0c12;
    box-shadow: 0 8px 25px rgba(245, 192, 66, 0.3);
}
.btn-portal-gold:hover {
    box-shadow: 0 12px 30px rgba(245, 192, 66, 0.5);
    transform: translateY(-2px);
}
.btn-portal-cyan {
    background: var(--cyan-gradient);
    color: #05101a;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
}
.btn-portal-cyan:hover {
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}
.arrow-right {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.btn-portal-gold:hover .arrow-right, 
.btn-portal-cyan:hover .arrow-right {
    transform: translateX(5px);
}

/* SEO MATRIX SECTION (Semantic Authority Blocking) */
.matrix-section {
    padding: 90px 0;
    background: linear-gradient(180deg, rgba(6,7,12,0.4) 0%, rgba(14,17,28,0.8) 50%, rgba(6,7,12,0.4) 100%);
    border-top: 1px solid var(--border-glass);
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.matrix-box {
    background: rgba(15, 18, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}
.matrix-box:hover {
    border-color: rgba(245, 192, 66, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(21, 26, 44, 0.85);
}
.box-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.gold-icon {
    background: rgba(245, 192, 66, 0.15);
    color: var(--gold-bright);
    border: 1px solid rgba(245, 192, 66, 0.3);
}
.cyan-icon {
    background: rgba(0, 242, 254, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}
.box-icon svg { width: 22px; height: 22px; }
.matrix-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.4;
}
.matrix-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.matrix-box strong {
    color: var(--gold-bright);
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 90px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(10, 12, 20, 0.6);
}
.sub-heading {
    color: var(--gold-bright);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-desc {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.feature-card {
    background: rgba(20, 24, 40, 0.5);
    border: 1px solid var(--border-glass);
    padding: 34px;
    border-radius: 18px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-5px);
    background: rgba(26, 31, 52, 0.75);
}
.icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(245, 192, 66, 0.12);
    border: 1px solid rgba(245, 192, 66, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(245, 192, 66, 0.15);
}
.icon-wrap svg { width: 26px; height: 26px; }
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* FAQ Section */
.faq-section {
    padding: 90px 0;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}
.faq-item {
    background: rgba(18, 22, 36, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:hover {
    border-color: rgba(245, 192, 66, 0.3);
    background: rgba(22, 27, 45, 0.75);
}
.faq-question {
    padding: 22px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-arrow {
    width: 22px;
    height: 22px;
    color: var(--gold-bright);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 28px 26px;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 16px;
}
.faq-answer strong {
    color: var(--gold-bright);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 60px 0 100px;
}
.cta-card {
    background: radial-gradient(circle at center, rgba(32, 38, 60, 0.95) 0%, rgba(14, 17, 28, 0.98) 100%);
    border: 1px solid rgba(245, 192, 66, 0.35);
    border-radius: 24px;
    padding: 64px 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 50px rgba(245, 192, 66, 0.15);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.cta-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.cta-card p {
    color: #b7bee0;
    font-size: 1.05rem;
    margin-bottom: 38px;
}
.btn-gold-large {
    background: var(--gold-gradient);
    color: #0b0d14;
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(245, 192, 66, 0.4);
}
.btn-gold-large:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 15px 45px rgba(245, 192, 66, 0.6);
}

/* Footer */
.main-footer {
    background: #040508;
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-left { max-width: 380px; }
.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.gold-text { color: var(--gold-bright); }
.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}
.link-group h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}
.link-group a:hover { color: var(--gold-bright); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 26px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .portal-grid, .matrix-grid { grid-template-columns: 1fr; }
    .portal-card { padding: 28px; }
    .footer-links { gap: 30px; }
}
