/* ============================================
   ThinkMachine Design System
   Extracted from inline <style> for reuse
   across zh/en HTML pages.
   ============================================ */

/* ─── Base ─── */
body {
    font-family: 'Inter', sans-serif;
    background-color: #03050C;
    color: #F8FAFC;
}

/* ─── Typography ─── */
.gradient-text {
    background: linear-gradient(90deg, #38BDF8, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Glow / Shadow Accents ─── */
.hero-glow {
    box-shadow: 0 0 120px 20px rgba(56, 189, 248, 0.2);
}

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(90deg, #38BDF8, #818CF8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px 0 rgba(72, 164, 234, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(72, 164, 234, 0.5);
    filter: brightness(1.1);
}
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

/* ─── Glass Card Component ─── */
.glass-card {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(22, 30, 46, 0.5);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.12);
}

/* ─── Section Alternating Background ─── */
.section-bg {
    background-color: #080C17;
}

/* ─── Sticky Nav on Scroll ─── */
.nav-scrolled {
    background: rgba(3, 5, 12, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ─── Scroll Reveal Animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── Stagger Children ─── */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }

/* ─── Client Logo Grayscale Effect ─── */
.client-logo {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ─── Mobile Menu Drawer ─── */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ─── Stat Numbers ─── */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ─── Metric Card Pulse ─── */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); transform: translateY(0); }
    50% { box-shadow: 0 10px 30px 0 rgba(56, 189, 248, 0.15); transform: translateY(-4px); }
}
.metric-card {
    animation: subtle-pulse 5s ease-in-out infinite;
}

/* ─── Inline SVG Icon Component ─── */
.tm-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-icon svg {
    width: 22px;
    height: 22px;
}
.glass-card:hover .tm-icon {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* ─── TM Slider Custom Animations ─── */
.tm-tab .tm-progress {
    transform: scaleX(0);
}
.tm-tab.active .tm-progress {
    transform: scaleX(1);
    transition: transform var(--duration, 5s) linear;
}

/* Ensure slide images zoom smoothly without jitter */
.tm-slide > div:first-child {
    will-change: transform;
}
