/* =============================================
   YANMAR KANCHANABURI — style.css
   CI: Red #E60012 · Black #0A0A0A · White
   ============================================= */

/* ── Variables ── */
:root {
    --red: #E60012;
    --red-dark: #B8000E;
    --red-light: #FF1A2E;
    --red-glow: rgba(230, 0, 18, 0.35);
    --red-glow-lg: rgba(230, 0, 18, 0.12);

    --bg: #0A0A0A;
    --bg-alt: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);

    --txt: rgba(255,255,255,0.92);
    --txt-sub: rgba(255,255,255,0.55);
    --txt-muted: rgba(255,255,255,0.3);

    --white: #FFFFFF;

    --ff: 'Noto Sans Thai', sans-serif;
    --ff-en: 'Oswald', sans-serif;
    --ff-display: 'Bebas Neue', sans-serif;

    --nav-h: 68px;
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 20px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.3s;
    --dur-slow: 0.6s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--ff);
    background: var(--bg);
    color: var(--txt);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; outline: none; border: none; background: none; color: var(--white); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.hide-mobile { display: inline; }

/* ── Loader ── */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, #181818 0%, #0A0A0A 68%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 10%, transparent 75%);
    animation: loaderGridMove 14s linear infinite;
}
@keyframes loaderGridMove { 0% { background-position: 0 0; } 100% { background-position: 44px 44px; } }

.loader-glow {
    position: absolute; width: min(60vw, 640px); aspect-ratio: 1;
    background: radial-gradient(circle, var(--red-glow-lg) 0%, transparent 70%);
    animation: loaderGlowPulse 3s ease-in-out infinite;
}
@keyframes loaderGlowPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

.loader-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.loader-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.loader-ring {
    position: absolute;
    width: clamp(220px, 55vw, 340px); aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--red) 10%, transparent 24%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: loaderRingSpin 2.4s linear infinite;
    opacity: 0.85;
}
@keyframes loaderRingSpin { to { transform: rotate(360deg); } }

.loader-logo { width: clamp(180px, 45vw, 260px); height: auto; margin-bottom: 24px; animation: ldFade 1.5s ease-in-out infinite alternate; position: relative; }
.loader-bar { width: 48px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-top: 18px; margin-left: auto; margin-right: auto; position: relative; }
.loader-bar-fill { width: 40%; height: 100%; background: var(--red); border-radius: 2px; animation: ldSlide 0.9s ease-in-out infinite; }
@keyframes ldFade { 0% { opacity: 0.85; } 100% { opacity: 1; } }
@keyframes ldSlide { 0%{transform:translateX(-120%)} 100%{transform:translateX(320%)} }

/* ── Navigation ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
    z-index: 1000;
    transition: background var(--dur) var(--ease), box-shadow var(--dur);
}
.nav.scrolled {
    background: rgba(10,10,10,0.94);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo-img { height: clamp(26px, 3.8vw, 36px); width: auto; }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 1.8rem); margin-left: auto; }
.nav-link {
    font-size: 0.88rem; font-weight: 500; color: var(--txt-sub);
    transition: color var(--dur); position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--red);
    transition: width var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: var(--red); color: var(--white);
    font-size: 0.82rem; font-weight: 600; border-radius: 100px;
    transition: all var(--dur);
    margin-left: 0.5rem;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--red-light); box-shadow: 0 4px 20px var(--red-glow); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: var(--dur) var(--ease); transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(30px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--dur-slow) var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner { text-align: center; }
.mobile-menu-logo { height: 32px; margin: 0 auto 2.5rem; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: 2.5rem; }
.mobile-menu-links a {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 700;
    color: var(--white); transition: color var(--dur);
}
.mobile-menu-links a:hover { color: var(--red); }
.mobile-menu-cta { max-width: 260px; margin: 0 auto; }

/* ── Hero ── */
.hero {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    overflow: hidden;
    padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0.25;
}
.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 10%, transparent 70%);
}
.hero-radial {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 45% at 30% 40%, var(--red-glow-lg) 0%, transparent 70%);
}
.hero-diagonal {
    position: absolute; right: -15%; top: 10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,0,18,0.05) 0%, transparent 60%);
    transform: rotate(20deg);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
    position: absolute; border-radius: 50%; background: var(--red); opacity: 0;
    animation: pFloat linear infinite;
}
@keyframes pFloat {
    0%{opacity:0;transform:translateY(0) scale(0)} 8%{opacity:.5;transform:scale(1)}
    85%{opacity:.15} 100%{opacity:0;transform:translateY(-100vh) scale(0)}
}

.hero-container {
    flex: 1; display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; gap: clamp(2rem, 4vw, 4rem);
    position: relative; z-index: 2;
    padding-top: 2rem; padding-bottom: 2rem;
}
.hero-content { max-width: 540px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.78rem; font-weight: 500;
    color: var(--txt-sub); letter-spacing: 0.04em; margin-bottom: 1.5rem;
}
.hero-badge-pulse {
    width: 6px; height: 6px; background: var(--red); border-radius: 50%;
    animation: bPulse 2s ease-in-out infinite;
}
@keyframes bPulse { 0%,100%{box-shadow:0 0 0 0 var(--red-glow)} 50%{box-shadow:0 0 0 7px transparent} }

.hero-title { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.hero-line {
    font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900;
    line-height: 1.1; letter-spacing: -0.02em;
}
.hero-line--red { color: var(--red); text-shadow: 0 0 80px var(--red-glow); }
.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.08rem); color: var(--txt-sub);
    line-height: 1.85; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Hero Visual (Tractor SVG) */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual-frame { position: relative; width: 100%; max-width: 480px; }
.hero-tractor {
    width: 100%; height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: tractorFloat 5s ease-in-out infinite;
}
@keyframes tractorFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-visual-glow {
    position: absolute; bottom: -20%; left: 10%; right: 10%; height: 60%;
    background: radial-gradient(ellipse, var(--red-glow-lg) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero Stats */
.hero-stats {
    position: relative; z-index: 2;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.hero-stats-row {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(1.2rem, 3vw, 2.5rem); flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
    font-family: var(--ff-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--white); line-height: 1;
}
.stat-plus { font-family: var(--ff-display); font-size: clamp(1rem, 2vw, 1.4rem); color: var(--red); }
.stat-label { display: block; font-size: 0.72rem; color: var(--txt-muted); margin-top: 3px; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute; bottom: 5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3;
}
.hero-scroll-hint span { font-size: 0.65rem; color: var(--txt-muted); letter-spacing: 0.18em; font-family: var(--ff-en); }
.scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: sLine 2s ease-in-out infinite;
}
@keyframes sLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; font-size: 0.92rem; font-weight: 600;
    border-radius: var(--r-sm); transition: all var(--dur) var(--ease);
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { background: var(--red-light); box-shadow: 0 8px 28px var(--red-glow); transform: translateY(-2px); }

.btn-ghost { border: 1px solid var(--border); color: var(--white); }
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }

.btn-white { background: var(--white); color: var(--bg); }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.btn-outline-white { border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn-card {
    width: 100%; justify-content: center; padding: 11px 20px;
    background: rgba(255,255,255,0.06); color: var(--white);
    border: 1px solid var(--border); font-size: 0.88rem;
}
.btn-card:hover { background: var(--red); border-color: var(--red); }

.btn-lg { padding: 15px 36px; font-size: 0.98rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section ── */
.section { padding: clamp(4rem, 10vw, 7rem) 0; position: relative; }
.section--dark { background: var(--bg); }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-tag {
    font-family: var(--ff-en); font-size: 0.82rem; font-weight: 600;
    color: var(--red); letter-spacing: 0.22em; display: block; margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-bottom: 0.8rem; }
.section-desc { font-size: clamp(0.92rem, 2vw, 1.02rem); color: var(--txt-sub); max-width: 520px; margin: 0 auto; }

/* ── Products ── */
.filter-bar { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
    padding: 7px 22px; font-size: 0.82rem; font-weight: 500;
    color: var(--txt-sub); border: 1px solid var(--border);
    border-radius: 100px; transition: all var(--dur);
}
.filter-btn:hover { color: var(--white); border-color: var(--border-hover); }
.filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 1.4rem;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
    transition: all var(--dur-slow) var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--red); }
.product-card.hidden { display: none; }

.product-img {
    position: relative; height: 190px;
    background: linear-gradient(160deg, var(--bg-card), #1f1f1f);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 0.9rem;
}
.product-image { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-slow); }
.product-card:hover .product-image { transform: scale(1.06); }

.product-tag {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 12px; background: var(--red); color: var(--white);
    font-size: 0.72rem; font-weight: 600; border-radius: 100px;
}
.product-tag--green { background: #00B74A; }
.product-tag--gold { background: #C98E00; }

.product-body { padding: 1.3rem 1.4rem 1.5rem; }
.product-series { font-family: var(--ff-en); font-size: 0.72rem; font-weight: 600; color: var(--red); letter-spacing: 0.08em; }
.product-name { font-family: var(--ff-en); font-size: 1.2rem; font-weight: 600; margin: 0.25rem 0 0.5rem; }
.product-desc { font-size: 0.85rem; color: var(--txt-sub); margin-bottom: 1rem; line-height: 1.6; }

.product-specs { display: flex; gap: 0.8rem; margin-bottom: 1.2rem; padding: 0.8rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pspec { flex: 1; text-align: center; }
.pspec-val { display: block; font-family: var(--ff-display); font-size: 1.3rem; color: var(--white); line-height: 1; }
.pspec-lbl { font-size: 0.68rem; color: var(--txt-muted); margin-top: 2px; display: block; }

/* ── Why Yanmar ── */
.why-accent {
    position: absolute; top: 0; right: -8%; width: 400px; height: 400px;
    background: radial-gradient(circle, var(--red-glow-lg) 0%, transparent 65%);
    pointer-events: none;
}
/* Red band across the top of the WHY YANMAR section */
.why-topband {
    position: absolute; top: 0; left: 0; right: 0; height: 200px;
    pointer-events: none;
    background: linear-gradient(180deg, var(--red-glow-lg) 0%, transparent 100%);
}
.why-topband::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px,100%),1fr)); gap: 1.4rem; }
.why-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    background: rgba(255,255,255,0.025); border: 1px solid var(--border);
    border-radius: var(--r); transition: all var(--dur);
    position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px; background: var(--red); transition: width var(--dur-slow);
}
.why-card:hover::before { width: 100%; }
.why-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); transform: translateY(-4px); }
.why-num { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--ff-display); font-size: 1.8rem; color: rgba(255,255,255,0.04); line-height: 1; }
.why-icon { margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.88rem; color: var(--txt-sub); line-height: 1.7; }

/* -- Gallery Carousel -- */
.gallery-section {
    position: relative; overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 0;
}
.gallery-header { margin-bottom: 2.5rem; text-align: center; padding: 0 1rem; }
.gallery-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800;
    line-height: 1.15; color: var(--white); letter-spacing: -0.02em;
}

/* Track wrapper
   overflow:hidden clips the very wide scrolling row on both axes; the generous
   vertical padding gives the scaled centre item's drop-shadow enough room so it
   sits inside the clip box and isn't cut off by a hard edge. */
.gallery-track-wrap {
    overflow: hidden;
    width: 100%;
    padding: 6.5rem 0 8rem;
    position: relative;
}
/* Fade edges */
.gallery-track-wrap::before,
.gallery-track-wrap::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 18%;
    z-index: 2; pointer-events: none;
}
.gallery-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.gallery-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* Scrolling row — JS drives translateX */
.gallery-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    will-change: transform;
}

/* Item wrapper */
.gallery-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circle — NO CSS transition: JS sets transform/opacity every frame */
.gallery-circ {
    width: clamp(150px, 20vw, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(230,0,18,0.15);
    background: #111;
    /* Scale/opacity/border set by JS inline style each rAF tick */
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.gallery-circ img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Dots hidden */
.gallery-dots { display: none; }
/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px,100%),1fr)); gap: 1.4rem; }
.svc-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--border); border-radius: var(--r);
    transition: all var(--dur); position: relative; overflow: hidden;
}
.svc-card::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--red); transition: height var(--dur-slow);
}
.svc-card:hover::after { height: 100%; }
.svc-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.025); }
.svc-icon {
    width: 52px; height: 52px; border-radius: var(--r-sm);
    background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: var(--red); transition: all var(--dur);
}
.svc-card:hover .svc-icon { background: var(--red); color: var(--white); }
.svc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.svc-card p { font-size: 0.85rem; color: var(--txt-sub); line-height: 1.7; }

/* ── CTA ── */
.cta { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; }
.cta-bg-layer { position: absolute; inset: 0; background: linear-gradient(135deg, var(--red-dark), var(--red), #ff2d3b); }
.cta-pattern {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 80px);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }

/* Moving logo marquee behind the CTA text */
.cta-logos {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.4rem 0; overflow: hidden; pointer-events: none;
}
.cta-logo-def { position: absolute; width: 0; height: 0; }
.cta-logos-row { display: flex; overflow: hidden; width: 100%; }
.cta-logos-track { display: flex; align-items: center; flex-shrink: 0; }
.cta-logo { width: 54px; height: 42px; margin-right: 2.4rem; color: #fff; opacity: 0.16; flex-shrink: 0; }
.cta-logos-row--left  .cta-logos-track { animation: ctaScrollLeft  45s linear infinite; }
.cta-logos-row--right .cta-logos-track { animation: ctaScrollRight 45s linear infinite; }
@keyframes ctaScrollLeft  { from { transform: translate3d(0,0,0); }    to { transform: translate3d(-50%,0,0); } }
@keyframes ctaScrollRight { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }
@media (prefers-reduced-motion: reduce) {
    .cta-logos-track { animation: none; }
}
.cta-inner h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 0.8rem; }
.cta-inner p { font-size: clamp(0.92rem, 2vw, 1.05rem); color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.c-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-item-icon {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: var(--r-sm); background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--red);
}
.c-item h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.c-item p { font-size: 0.88rem; color: var(--txt-sub); line-height: 1.6; }
.c-item a { color: var(--txt-sub); transition: color var(--dur); }
.c-item a:hover { color: var(--red); }

.contact-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }

.contact-form-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2rem);
}
.contact-form-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--txt-sub); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--r-sm); color: var(--white); transition: border-color var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: var(--txt-muted); }
.field select { color: var(--txt-muted); }
.field select option { background: var(--bg-card); color: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.field textarea { resize: vertical; min-height: 90px; }

/* ── Footer ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.footer-logo-img { height: 34px; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; color: var(--txt-sub); max-width: 280px; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.82rem; color: var(--txt-sub); transition: color var(--dur); }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.2rem 0; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--txt-muted); }

/* ── Back to Top ── */
.btt {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--red); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--dur); box-shadow: 0 4px 16px var(--red-glow);
}
.btt.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btt:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--red-glow); }

/* ── Floating Call Button ── */
.floating-call {
    position: fixed; bottom: 1.5rem; right: 4.9rem;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--red); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; box-shadow: 0 4px 16px var(--red-glow);
    transition: all var(--dur);
    animation: fcPulse 2.4s ease-in-out infinite;
}
.floating-call:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 28px var(--red-glow); }
@keyframes fcPulse {
    0%, 100% { box-shadow: 0 4px 16px var(--red-glow), 0 0 0 0 var(--red-glow); }
    50% { box-shadow: 0 4px 16px var(--red-glow), 0 0 0 8px transparent; }
}

/* ── Floating LINE Button ── */
.floating-line {
    position: fixed; bottom: 1.5rem; right: 8.2rem;
    height: 42px; display: inline-flex; align-items: center; gap: 7px;
    padding: 0 16px; border-radius: 100px;
    background: #06C755; color: #fff;
    font-size: 0.85rem; font-weight: 600; white-space: nowrap;
    z-index: 100; box-shadow: 0 4px 16px rgba(6,199,85,0.4);
    transition: transform var(--dur), box-shadow var(--dur), background var(--dur);
}
.floating-line svg { flex-shrink: 0; }
.floating-line:hover { background: #05b64d; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(6,199,85,0.5); }

@media (max-width: 480px) {
    /* Icon-only capsule on small screens to save space */
    .floating-line { right: 7.2rem; padding: 0 12px; }
    .floating-line span { display: none; }
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Selection / Scrollbar ── */
::selection { background: var(--red); color: var(--white); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Solis Products Enhanced ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.6rem;
}

.product-hp-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 6px 14px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 100px;
}
.product-hp-val {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    color: var(--red);
    line-height: 1;
}
.product-hp-unit {
    font-family: var(--ff-en);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--txt-sub);
    letter-spacing: 0.05em;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}
.product-actions .btn {
    flex: 1;
}
.btn-card-outline {
    justify-content: center;
    padding: 11px 20px;
    color: var(--txt-sub);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    background: transparent;
}
.btn-card-outline:hover {
    color: var(--white);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Model Detail Page ── */
.detail-hero { position: relative; padding: calc(var(--nav-h) + 2.5rem) 0 3rem; overflow: hidden; }
.detail-hero-glow {
    position: absolute; top: -10%; right: -10%; width: 55%; aspect-ratio: 1;
    background: radial-gradient(circle, var(--red-glow-lg) 0%, transparent 70%);
    pointer-events: none;
}
.detail-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--txt-sub); margin-bottom: 1.4rem;
    transition: color var(--dur);
}
.detail-back:hover { color: var(--white); }
.detail-hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.detail-hero-img {
    position: relative; border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--bg-card), #1a1a1a);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem); min-height: 280px;
}
.detail-hero-img img { max-width: 100%; max-height: 360px; object-fit: contain; }
.detail-hero-info .product-series { display: block; margin-bottom: 0.4rem; }
.detail-hero-title {
    font-family: var(--ff-en); font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700; margin-bottom: 0.9rem; line-height: 1.1;
}
.detail-hero-info .product-hp-badge { position: static; display: inline-flex; margin-bottom: 1rem; }
.detail-hero-desc { font-size: 0.98rem; color: var(--txt-sub); line-height: 1.85; margin-bottom: 1.6rem; }

.detail-specs-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.detail-spec-item { background: var(--bg-card); padding: 1.1rem 1.3rem; }
.detail-spec-label { display: block; font-size: 0.74rem; color: var(--txt-muted); margin-bottom: 4px; }
.detail-spec-value { display: block; font-size: 1.05rem; font-weight: 600; color: var(--white); }

.detail-related .product-series { display: block; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .hero-content { max-width: 600px; }
    .hero-btns { justify-content: center; }
    .hero-visual-frame { max-width: 360px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .detail-hero-info .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .theme-toggle { margin-left: auto; }
    .hide-mobile { display: none; }
    .hero-scroll-hint { display: none; }
    .hero-visual-frame { max-width: 280px; }
    .stat-sep { display: none; }
    .hero-stats-row { gap: 1.2rem; }
    .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    :root { --nav-h: 58px; }
    .hero-btns, .cta-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn, .cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    color: var(--txt-sub); border: 1px solid var(--border);
    background: transparent; transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.theme-toggle:hover { color: var(--txt); border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.theme-toggle svg { display: block; }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.04); }

/* =============================================
   LIGHT THEME
   ============================================= */
:root[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-alt: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F7F8FA;
    --border: rgba(0,0,0,0.1);
    --border-hover: rgba(0,0,0,0.2);

    --txt: rgba(17,17,17,0.92);
    --txt-sub: rgba(17,17,17,0.58);
    --txt-muted: rgba(17,17,17,0.4);

    --red-glow-lg: rgba(230,0,18,0.07);
}

/* Foreground that was pure white on dark → dark on light */
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active,
[data-theme="light"] .mobile-menu-links a,
[data-theme="light"] .stat-number,
[data-theme="light"] .pspec-val,
[data-theme="light"] .gallery-title,
[data-theme="light"] .detail-spec-value,
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .detail-back:hover,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-card { color: var(--txt); }

[data-theme="light"] .nav-toggle span { background: var(--txt); }

/* White button sits on the red CTA banner — keep its label dark & readable */
[data-theme="light"] .btn-white { color: #0A0A0A; }

/* CTA heading always sits on the red banner — keep it white for contrast */
[data-theme="light"] .cta-inner h2 { color: #fff; }

/* Subtle white-tint fills → subtle dark-tint fills */
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-card-outline:hover,
[data-theme="light"] .svc-card:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .btn-card { background: rgba(0,0,0,0.05); }
[data-theme="light"] .why-card { background: rgba(0,0,0,0.02); }
[data-theme="light"] .why-card:hover { background: rgba(0,0,0,0.035); border-color: rgba(0,0,0,0.14); }
[data-theme="light"] .why-num { color: rgba(0,0,0,0.05); }
[data-theme="light"] .svc-icon,
[data-theme="light"] .c-item-icon { background: rgba(0,0,0,0.03); }
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: rgba(0,0,0,0.03); color: var(--txt); }

/* Cards get a soft shadow so they separate from the white background */
[data-theme="light"] .product-card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

/* Hardcoded dark backgrounds → light equivalents */
[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06); }
[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.98); }
[data-theme="light"] .product-img { background: linear-gradient(160deg, #ffffff, #eef0f3); }
[data-theme="light"] .detail-hero-img { background: linear-gradient(160deg, #ffffff, #eef0f3); }
[data-theme="light"] .product-hp-badge { background: rgba(255,255,255,0.85); }
[data-theme="light"] .gallery-circ { background: #ededed; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cccccc; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #aaaaaa; }

/* Loader / splash screen */
[data-theme="light"] .loader { background: radial-gradient(ellipse 70% 60% at 50% 50%, #ffffff 0%, #eef0f3 68%); }
[data-theme="light"] .loader-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

/* ── TikTok latest clip ── */
.tiktok-section { overflow: hidden; }

.tiktok-embed-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.tiktok-embed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 1.75rem;
    justify-content: center;
    width: 100%;
}

.tiktok-embed-grid:has(.tiktok-embed-status) {
    grid-template-columns: minmax(0, 400px);
}

.tiktok-embed-frame {
    width: 100%;
    max-width: 400px;
    min-height: 560px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    display: flex;
}

@media (max-width: 860px) {
    .tiktok-embed-grid { grid-template-columns: minmax(0, 400px); }
}

.tiktok-embed-iframe {
    width: 100%;
    height: 760px;
    border: 0;
    display: block;
}

.tiktok-embed-status {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 560px;
    padding: 2rem;
    color: var(--txt-sub);
    font-weight: 300;
}

.tiktok-embed-status a { color: var(--red-light); text-decoration: underline; }

.tiktok-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--ff-en);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 600;
    padding: 0.8rem 1.9rem;
    color: var(--white);
    background: linear-gradient(135deg, #fe2c55, #25f4ee);
    border-radius: 50px;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.tiktok-follow-btn svg { width: 18px; height: 18px; }

.tiktok-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(254,44,85,0.35);
}

@media (max-width: 480px) {
    .tiktok-embed-iframe { height: 720px; }
}

[data-theme="light"] .tiktok-embed-frame { background: #f4f5f7; box-shadow: 0 18px 44px rgba(0,0,0,0.12); }
[data-theme="light"] .tiktok-embed-status { color: rgba(0,0,0,0.55); }
[data-theme="light"] .loader-bar { background: rgba(0,0,0,0.08); }