:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-hover: #1c1c1c;
    --primary-color: #d00010;
    --primary-hover: #ff1020;
    --theme-blue: #002060;
    --theme-peach: #ffb080;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-en: 'IBM Plex Sans Thai', sans-serif;
    --font-th: 'IBM Plex Sans Thai', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-th);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
}
h1:not(:lang(en)), h2:not(:lang(en)), h3:not(:lang(en)), h4:not(:lang(en)), h5:not(:lang(en)), h6:not(:lang(en)) {
    font-family: var(--font-th);
    font-weight: 700;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
}

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

.logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--theme-blue));
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(208, 0, 16, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-hover), var(--theme-blue));
    box-shadow: 0 0 30px rgba(0, 32, 96, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: pulse 8s infinite alternate;
}

.glow-orb.red {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: 0%;
    left: 0%;
}

.glow-orb.blue {
    width: 600px;
    height: 600px;
    background: var(--theme-blue);
    top: -10%;
    right: 0%;
    animation-delay: 1.5s;
}

.glow-orb.peach {
    width: 400px;
    height: 400px;
    background: var(--theme-peach);
    bottom: -10%;
    right: 10%;
    animation-delay: 2.5s;
    opacity: 0.4;
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(208, 0, 16, 0.1);
    border: 1px solid rgba(208, 0, 16, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary-color), var(--theme-peach));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(208, 0, 16, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Marquee */
.marquee-container {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    background: rgba(17, 17, 17, 0.5);
    display: flex;
    white-space: nowrap;
}

.marquee {
    display: inline-flex;
    animation: scrollText 35s linear infinite;
}

.marquee span {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.marquee span.separator {
    margin: 0 3rem;
    color: var(--primary-color);
    -webkit-text-stroke: 0;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections Global */
section {
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Features */
.features {
    background: var(--bg-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--theme-blue), var(--theme-peach));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--theme-blue);
    box-shadow: 0 10px 30px rgba(0, 32, 96, 0.2);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    min-height: 4.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Studios */
.studios {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

.studio-showcase {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.studio-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.studio-card:hover {
    border-color: var(--theme-peach);
    box-shadow: 0 15px 50px rgba(255, 176, 128, 0.2);
    transform: translateY(-5px);
}

.studio-img-wrapper {
    height: 350px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-card:hover .placeholder-img {
    transform: scale(1.08);
}

.studio-info {
    padding: 3rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.studio-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.studio-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    flex: 1;
}

.link-btn {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    align-self: flex-start;
}

.link-btn:hover {
    gap: 15px;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'), radial-gradient(circle at center, rgba(0, 32, 96, 0.4) 0%, var(--bg-color) 70%);
    background-blend-mode: overlay;
    text-align: center;
    padding: 10rem 2rem;
    position: relative;
    border-top: 1px solid rgba(0, 32, 96, 0.3);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* Pricing Section */
.pricing {
    background: var(--bg-color);
}

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

.package-category {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-main);
    letter-spacing: 1px;
}

.mt-5 {
    margin-top: 5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.add-on-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    justify-content: center;
}

.pricing-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--theme-blue);
    box-shadow: 0 10px 40px rgba(0, 32, 96, 0.3);
}

.pricing-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.pricing-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--theme-peach));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
    color: var(--text-muted);
}

.pricing-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card.popular {
    border-color: rgba(208, 0, 16, 0.4);
    box-shadow: 0 0 30px rgba(208, 0, 16, 0.1);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--theme-peach);
    box-shadow: 0 10px 40px rgba(255, 176, 128, 0.2);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    width: 150px;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--theme-peach));
    color: #fff;
    padding: 5px 0;
    font-size: 0.8rem;
    font-weight: 800;
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.addon-card {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(17, 17, 17, 0.5);
    padding: 2.5rem 2rem;
}

.addon-card:hover {
    border-style: solid;
    border-color: var(--theme-peach);
}

.addon-card h4 {
    color: var(--theme-peach);
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-color);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

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

.footer-links {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s;
    font-size: 1rem;
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .pricing-grid, .add-on-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 6rem 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .studio-showcase {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-links {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        display: none; /* In a real app, we'd add a hamburger menu */
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions a {
        text-align: center;
        width: 100%;
    }
    
    .marquee span {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        min-height: auto;
    }
    
    .studio-img-wrapper {
        height: 250px;
    }
    
    .studio-info {
        padding: 2rem 1.5rem;
    }
    
    .studio-info h3 {
        font-size: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .popular-badge {
        right: -40px;
        top: 25px;
    }
    
    .cta-section {
        padding: 6rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 2rem;
    }
    
    .link-group h4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .popular-badge {
        right: -45px;
        top: 25px;
        font-size: 0.75rem;
    }
}
