/* 
 * manavigate Inc. Official Website
 * Theme: "Modern Cyber IDE" - Stylish & Cool
 * Fixes: Spacing, Visibility, Logo, Font Size (+Larger Content, Balanced Headings), Header Overlap
 * Addition: Secret Society Animation & Effects
 */

:root {
    /* Brand Colors (Neon Adjusted for Dark Mode) */
    --primary-blue: #3b82f6; /* Bright Blue */
    --accent-blue: #00d4ff; /* Cyan */
    --primary-green: #10b981; /* Emerald */
    --accent-teal: #2dd4bf; /* Teal */
    
    /* IDE Theme Colors (Modern Dark) */
    --bg-app: #0f172a; /* Deep Slate Navy */
    --bg-glass: rgba(15, 23, 42, 0.85); /* Darker Glass */
    --bg-panel: rgba(30, 41, 59, 0.6);
    --border-color: rgba(148, 163, 184, 0.15);
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1; /* Lighter for better readability */
    
    /* Syntax Highlighting (Neon) */
    --syntax-const: #c084fc; /* Purple */
    --syntax-string: #4ade80; /* Green */
    --syntax-func: #60a5fa; /* Blue */
    --syntax-tag: #f472b6; /* Pink */
    --syntax-comment: #94a3b8; /* Slate */
    
    /* Fonts */
    --font-mono: "Fira Code", "Roboto Mono", "Noto Sans JP", monospace;
    --font-sans: "Inter", system-ui, sans-serif;
}

/* Base Setup */
html {
    font-size: 20px; /* Global Scale Up (125%) - Keeps content large */
    cursor: none; /* Hide default cursor for Secret Society feel */
}

a, button, .btn, .service-card, .case-item, input, textarea {
    cursor: none !important; /* Force custom cursor everywhere */
}

/* Use native cursor on generated manavisquare detail pages. */
body.msq-native-cursor {
    cursor: auto !important;
}

body.msq-native-cursor a,
body.msq-native-cursor button,
body.msq-native-cursor .btn,
body.msq-native-cursor .service-card,
body.msq-native-cursor .case-item,
body.msq-native-cursor input,
body.msq-native-cursor textarea,
body.msq-native-cursor iframe {
    cursor: pointer !important;
}

body.msq-native-cursor .cursor-dot,
body.msq-native-cursor .cursor-outline {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono); 
}

/* Background Animation */
@keyframes gridMove {
    0% { background-position: 0 0, 0 0, 15% 50%, 85% 30%; }
    100% { background-position: 50px 50px, 50px 50px, 15% 50%, 85% 30%; }
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 2; 
    overflow-x: hidden;
    /* Grid Background + Ambient Neons */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
    background-attachment: local, local, fixed, fixed;
    /* Animate Grid */
    animation: gridMove 2s linear infinite;
    padding-bottom: 40px;
    font-size: 1rem; /* 20px base */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 1px dashed var(--accent-blue);
    animation: rotateCursor 4s linear infinite;
}

@keyframes rotateCursor { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Interactive Hover States */
body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline,
body:has(.service-card:hover) .cursor-outline {
    width: 60px; height: 60px;
    border-color: var(--primary-green);
    background: rgba(16, 185, 129, 0.1);
    animation: rotateCursor 1s linear infinite;
}

/* Text Scramble Dud */
.dud { color: var(--syntax-tag); opacity: 0.7; }

/* Rest of styles preserved */
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1em; }
p { margin-bottom: 1.5em; color: var(--text-muted); font-size: 1.1rem; }

/* Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-padding { padding: 150px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

/* Header */
header {
    position: fixed;
    top: 25px; left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.header-content { display: flex; justify-content: space-between; width: 100%; align-items: center; gap: 14px; }

.logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo span { white-space: nowrap; }
.logo::before { content: 'import'; color: var(--syntax-const); font-size: 0.9em; }
.logo img { display: block; height: 35px; width: auto; filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5)); }

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-muted);
    position: relative;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.08);
    color: var(--accent-blue);
}

.nav-links a:not(.btn)::after {
    content: '';
}

.nav-links a.btn {
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 14px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}
.nav-links a.btn::after { content: ''; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: var(--accent-blue);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

body.mobile-nav-open .nav-toggle {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}

body.mobile-nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 150px;
}

#particle-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    opacity: 0.5;
}

.hero-content {
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 60px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.1s; /* For 3D tilt effect */
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 40px;
    color: var(--text-main);
}

.hero h1::before {
    content: "const Vision =";
    display: block;
    font-size: 1rem;
    color: var(--syntax-const);
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero h1::after {
    content: "_";
    color: var(--accent-teal);
    animation: blink 1s infinite steps(2);
    display: inline-block;
    margin-left: 5px;
}

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

.hero p {
    color: var(--syntax-string);
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.8;
}
.hero p::before { content: '// '; opacity: 0.6; }

.hero-trust {
    border-top: 1px dashed var(--border-color);
    padding-top: 30px;
    margin-top: 30px;
}
.trust-logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.05em;
    gap: 10px;
    width: min(100%, 460px);
    margin: 0 auto;
}

.trust-company {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.55);
    color: var(--text-main);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.trust-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    isolation: isolate;
    clip-path: polygon(
        50% 0%,
        58% 8%,
        68% 4%,
        74% 13%,
        84% 10%,
        87% 21%,
        96% 22%,
        94% 33%,
        100% 40%,
        93% 49%,
        98% 58%,
        88% 65%,
        90% 76%,
        79% 79%,
        78% 90%,
        67% 88%,
        60% 98%,
        50% 92%,
        40% 98%,
        33% 88%,
        22% 90%,
        21% 79%,
        10% 76%,
        12% 65%,
        2% 58%,
        7% 49%,
        0% 40%,
        6% 33%,
        4% 22%,
        13% 21%,
        16% 10%,
        26% 13%,
        32% 4%,
        42% 8%
    );
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 10px;
    background: #fff;
    clip-path: polygon(0 55%, 14% 40%, 40% 70%, 84% 16%, 100% 30%, 41% 92%);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.trust-badge::after {
    content: '';
    position: absolute;
    inset: 2px 2px 10px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(0.2px);
    z-index: 1;
}

.trust-badge--official {
    background: linear-gradient(155deg, #52c5ff 0%, #1d9bf0 58%, #1066bf 100%);
    box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.3), 0 8px 18px rgba(29, 155, 240, 0.34);
}

.trust-badge--gold {
    background: linear-gradient(155deg, #ffe08a 0%, #f5b733 52%, #cc7f00 100%);
    box-shadow: 0 0 0 2px rgba(245, 183, 51, 0.32), 0 8px 18px rgba(217, 143, 15, 0.3);
}

/* Titles */
.section-title {
    text-align: center;
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 100px;
}
.section-title::before { content: '<'; color: var(--syntax-tag); margin-right: 10px; opacity: 0.8; }
.section-title::after { content: ' />'; color: var(--syntax-tag); margin-left: 10px; opacity: 0.8; }

.section-subtitle {
    max-width: 720px;
    margin: -60px auto 50px;
    color: var(--text-muted);
    font-size: 1rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.vision-text h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 10px; height: 10px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-card h3 {
    color: var(--syntax-func);
    font-size: 1.3rem; 
    margin-top: 20px;
    margin-bottom: 20px;
}
.service-card h3::after { content: '()'; color: var(--text-muted); opacity: 0.7; }

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

.text-link {
    color: var(--accent-blue);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-link:hover {
    color: var(--accent-teal);
}

/* Page Header */
.page-header {
    background: var(--bg-panel);
    padding: 220px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}
.page-title::before { content: '# '; color: var(--accent-teal); opacity: 0.7; }

/* Detail page spacing/typography tuning */
body.msq-native-cursor .page-header {
    padding: 188px 0 56px;
}

body.msq-native-cursor .page-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

body.msq-native-cursor .section-padding {
    padding-top: 106px;
}

/* Case Study */
.case-detail-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 150px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.case-detail-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 5px;
    background: var(--accent-blue);
    z-index: 1;
}

.case-detail-card:nth-of-type(even)::before {
    background: var(--primary-green);
}

.case-disclosure {
    margin-bottom: 60px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
}

.case-disclosure h3 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.case-company-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.case-disclaimer {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.case-header {
    padding: 60px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
}

.case-number {
    font-size: 3rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    opacity: 0.2;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.case-client {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.case-body { padding: 60px; }

.case-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.case-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex; align-items: center; gap: 10px;
}
.case-content h4::before { content: '#'; color: var(--syntax-const); }

.timeline-list-card {
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
}

.timeline-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue), var(--primary-green));
}

.timeline-list-single {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-list-single li {
    position: relative;
    margin: 0;
    padding: 12px 14px 12px 34px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
}

.timeline-list-single li::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

/* Case Grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.case-grid-overview {
    margin-bottom: 72px;
}

.case-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: 0.3s;
}
.case-item:hover { border-color: var(--primary-green); }

.case-content { padding: 50px; }
.case-content p { font-size: 1.1rem; }

.case-tags { margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; }
.case-tags-large {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.quote-card {
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.quote-card p {
    margin-bottom: 12px;
    font-size: 0.98rem;
    line-height: 1.9;
}

.quote-role {
    color: var(--accent-teal);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.consulting-cta {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px 34px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.consulting-cta h2 {
    margin-bottom: 20px;
    font-size: 1.65rem;
    line-height: 1.5;
}

.consulting-cta p {
    margin-bottom: 24px;
}

.cta-checklist {
    list-style: none;
    margin: 0 auto 30px;
    padding: 0;
    max-width: 700px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.cta-checklist li {
    position: relative;
    padding: 12px 14px 12px 34px;
    color: var(--text-main);
    font-size: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.55);
}

.cta-checklist li::before {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--accent-teal);
}

/* Concept Graphic - Visualized */
.concept-graphic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    padding: 42px 34px;
    background: var(--bg-panel);
    border-radius: 12px;
    gap: 28px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.graphic-before, .graphic-after {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.graphic-before span,
.graphic-after span {
    white-space: nowrap;
    letter-spacing: 0.04em;
}

@keyframes jitter {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
    25% { transform: translate(2px, 2px) rotate(1deg); }
    50% { transform: translate(-2px, -2px) rotate(-1deg); opacity: 1; }
    75% { transform: translate(2px, -2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
}

@keyframes stream {
    0% { transform: translateX(-5px); color: var(--syntax-comment); }
    50% { transform: translateX(5px); color: var(--accent-blue); }
    100% { transform: translateX(-5px); color: var(--syntax-comment); }
}

@keyframes stabilize {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--accent-teal)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px var(--accent-teal)); }
}

.graphic-before i {
    animation: jitter 0.5s infinite linear;
    color: var(--syntax-comment);
    font-size: 3.2rem;
}

.graphic-arrow {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 110px;
}

.graphic-arrow span {
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.graphic-arrow i {
    animation: stream 1.5s infinite;
    font-size: 2.1rem;
    margin-bottom: 0;
}

.graphic-after i {
    animation: stabilize 3s infinite ease-in-out;
    color: var(--accent-teal);
    font-size: 3.8rem;
}

@media screen and (max-width: 1200px) {
    .concept-graphic {
        padding: 30px 20px;
        gap: 14px;
    }

    .graphic-before,
    .graphic-after {
        font-size: 0.96rem;
    }

    .graphic-before i {
        font-size: 2.7rem;
    }

    .graphic-after i {
        font-size: 3.1rem;
    }

    .graphic-arrow {
        min-width: 82px;
    }

    .graphic-arrow i {
        font-size: 1.7rem;
    }
}

/* Company */
.director-profile-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--border-color);
}
.director-img-lg {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
.director-info-col h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--syntax-func); }
.director-info-col .role { font-size: 1rem; color: var(--text-muted); opacity: 0.8; margin-left: 10px; }
.director-info-col .en-name { color: var(--syntax-comment); font-size: 0.9rem; margin-bottom: 20px; font-family: var(--font-mono); }
.director-info-col { flex: 1; min-width: 0; }

.company-info-table-wrapper {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}
.company-info-table { width: 100%; border-collapse: collapse; }
.company-info-table th, .company-info-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.company-info-table th {
    color: var(--accent-teal);
    width: 30%;
    font-weight: normal;
}
.company-info-table td { color: var(--text-main); }

/* Message Card */
.message-card {
    background: var(--bg-panel);
    padding: 60px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.message-card::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 10px; height: 10px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

/* Service Detail */
.service-detail-item {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 50px;
    background: var(--bg-panel);
    border-radius: 16px;
    margin-bottom: 100px;
    border: 1px solid var(--border-color);
}

.service-detail-item.reverse .service-detail-content {
    order: 2;
}

.service-detail-item.reverse .service-detail-image {
    order: 1;
}

.service-detail-content .section-title {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.service-detail-content h3 {
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding: 12px 14px 12px 34px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.check-list li::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.price-tag {
    color: var(--accent-blue);
    font-weight: 700;
}

.price-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary-blue);
    padding: 20px;
    border-radius: 0 4px 4px 0;
}

/* Lead Resources */
.lead-resource-section {
    padding-bottom: 90px;
}

.contact-form-section {
    padding-top: 90px;
}

.lead-resource-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.lead-resource-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 18px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-blue);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.lead-resource-hero .section-title {
    margin-bottom: 30px;
    font-size: 1.7rem;
}

.lead-resource-benefits {
    margin: 20px auto 0;
    max-width: 780px;
    text-align: left;
}

.lead-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.lead-resource-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lead-resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(30, 41, 59, 0.6);
}

.lead-resource-tag {
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.14);
    color: var(--accent-teal);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.lead-resource-card h3 {
    margin-bottom: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
}

.lead-resource-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.9;
}

.lead-resource-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lead-resource-points li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.lead-resource-points li::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-blue);
}

.lead-resource-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.lead-resource-footer {
    margin-top: 38px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    text-align: center;
}

.lead-resource-footer p {
    margin-bottom: 20px;
}

/* Manavisqaure */
.manavisquare-intro {
    max-width: 920px;
    margin: 0 auto 56px;
    text-align: center;
}

.manavisquare-intro p {
    margin-bottom: 0;
}

.msq-essence-catalog-section {
    margin: 0 auto 46px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.msq-essence-catalog-section h3 {
    margin-bottom: 14px;
    color: var(--accent-teal);
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

.msq-essence-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    justify-items: center;
}

.msq-essence-catalog-item {
    --msq-essence-color: rgba(148, 163, 184, 0.45);
    --msq-essence-glow: rgba(148, 163, 184, 0.2);
    border: 1px solid var(--msq-essence-color);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 18%, var(--msq-essence-glow), transparent 52%),
        rgba(2, 6, 23, 0.82);
    padding: 12px;
    min-height: 72px;
    width: 100%;
    outline: none;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.msq-essence-catalog-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--msq-essence-color);
    opacity: 0.9;
}

.msq-essence-catalog-item:hover,
.msq-essence-catalog-item:focus-visible {
    border-color: var(--msq-essence-color);
    box-shadow: 0 0 0 2px var(--msq-essence-glow), 0 10px 24px rgba(0, 0, 0, 0.26);
    transform: translateY(-2px);
}

.msq-essence-catalog-item h4 {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.msq-essence-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    text-align: center;
}

.msq-essence-title i {
    color: var(--msq-essence-color);
    filter: drop-shadow(0 0 8px var(--msq-essence-glow));
}

.msq-essence-catalog-detail {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.msq-essence-catalog-item:hover .msq-essence-catalog-detail,
.msq-essence-catalog-item:focus-visible .msq-essence-catalog-detail {
    margin-top: 8px;
    max-height: 280px;
    opacity: 1;
}

.msq-essence-catalog-item--triangle-area {
    --msq-essence-color: #f59e0b;
    --msq-essence-glow: rgba(245, 158, 11, 0.28);
}

.msq-essence-catalog-item--equal-area-transform {
    --msq-essence-color: #06b6d4;
    --msq-essence-glow: rgba(6, 182, 212, 0.3);
}

.msq-essence-catalog-item--base-ratio-area-ratio {
    --msq-essence-color: #0ea5e9;
    --msq-essence-glow: rgba(14, 165, 233, 0.3);
}

.msq-essence-catalog-item--similar-figures {
    --msq-essence-color: #8b5cf6;
    --msq-essence-glow: rgba(139, 92, 246, 0.3);
}

.msq-essence-catalog-item--angle-180 {
    --msq-essence-color: #ec4899;
    --msq-essence-glow: rgba(236, 72, 153, 0.3);
}

.msq-essence-catalog-item--common-part {
    --msq-essence-color: #22c55e;
    --msq-essence-glow: rgba(34, 197, 94, 0.3);
}

.msq-essence-catalog-item--circle-properties {
    --msq-essence-color: #14b8a6;
    --msq-essence-glow: rgba(20, 184, 166, 0.3);
}

.msq-book-cta {
    margin-top: 14px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.82));
}

.msq-book-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px;
}

.msq-book-cta-cover {
    width: 88px;
    height: auto;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.msq-book-cta-copy {
    display: grid;
    gap: 4px;
}

.msq-book-cta-kicker {
    color: var(--accent-teal);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.msq-book-cta-title {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.msq-book-cta-action {
    color: var(--accent-blue);
    font-size: 0.78rem;
    line-height: 1.5;
}

.msq-book-cta-link:hover .msq-book-cta-action,
.msq-book-cta-link:focus-visible .msq-book-cta-action {
    color: var(--accent-teal);
}

.manavisquare-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.manavisquare-step {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.manavisquare-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: rgba(0, 212, 255, 0.16);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.manavisquare-step h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.manavisquare-step p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.85;
}

.manavisquare-output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.manavisquare-code-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.27);
}

.manavisquare-code-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.6);
    color: var(--accent-teal);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.manavisquare-code-card pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #dbeafe;
}

.manavisquare-meta {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.manavisquare-meta-item {
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 12px;
    padding: 16px;
    background: rgba(45, 212, 191, 0.08);
}

.manavisquare-meta-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-teal);
    font-size: 0.9rem;
}

.manavisquare-meta-item p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.8;
}

.manavisquare-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.manavisquare-player-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.msq-video-official-card {
    padding: 20px;
}

.msq-video-official-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.msq-official-pane {
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    padding-left: 18px;
}

.msq-official-pane h3 {
    margin-bottom: 12px;
}

.msq-step-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.msq-step-item {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.52);
    padding: 12px;
}

.msq-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.msq-step-time-btn {
    border: 1px solid rgba(0, 212, 255, 0.55);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(2, 6, 23, 0.86);
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.msq-step-time-btn:hover {
    border-color: rgba(45, 212, 191, 0.9);
    color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.msq-step-time-btn:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

.msq-step-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

.manavisquare-subtext {
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.msq-essence-wrap {
    margin-top: 14px;
}

.msq-essence-wrap h4 {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--accent-teal);
    letter-spacing: 0.04em;
}

.msq-essence-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msq-essence-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.76rem;
    line-height: 1.4;
    white-space: normal;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.msq-essence-badge i {
    font-size: 0.72rem;
}

.msq-essence-badge--triangle-area {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.msq-essence-badge--equal-area-transform {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.msq-essence-badge--base-ratio-area-ratio {
    background: linear-gradient(90deg, #0891b2, #0ea5e9);
}

.msq-essence-badge--similar-figures {
    background: linear-gradient(90deg, #8b5cf6, #4f46e5);
}

.msq-essence-badge--angle-180 {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

.msq-essence-badge--common-part {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.msq-essence-badge--circle-properties {
    background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.msq-essence-empty {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.manavisquare-video-title {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 1.08rem;
}

.manavisquare-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.8);
}

.manavisquare-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.manavisquare-controls {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.66);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.manavisquare-control-row {
    display: grid;
    gap: 8px;
}

.manavisquare-control-row label {
    color: var(--accent-teal);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.manavisquare-control-row select,
.manavisquare-control-row input[type="file"] {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.75);
    color: var(--text-main);
    padding: 10px 12px;
    font-size: 0.86rem;
}

.manavisquare-status {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-main);
}

.manavisquare-status[data-level="success"] {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
}

.manavisquare-status[data-level="error"] {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.16);
}

.manavisquare-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.manavisquare-panel {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.manavisquare-panel h3 {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.03rem;
}

.manavisquare-mermaid-wrap {
    overflow-x: auto;
}

.manavisquare-mermaid-wrap .mermaid {
    min-width: 360px;
}

.manavisquare-code-fallback {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.85);
    color: #dbeafe;
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-x: auto;
}

.manavisquare-list {
    display: grid;
    gap: 10px;
}

.manavisquare-item-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.55);
}

.manavisquare-item-card--featured {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.52);
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.76) 0%,
        rgba(15, 23, 42, 0.95) 70%
    );
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.18), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.manavisquare-item-card--featured::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at right top, rgba(0, 212, 255, 0.14), transparent 45%);
}

.manavisquare-title-ribbon {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
}

.manavisquare-featured-name {
    font-size: 1.03rem;
    color: #e0f2fe;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.manavisquare-item-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
}

.manavisquare-item-card p + p {
    margin-top: 8px;
}

.manavisquare-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.manavisquare-score {
    border: 1px solid rgba(45, 212, 191, 0.42);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    color: var(--accent-teal);
}

.manavisquare-empty {
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.manavisquare-article {
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.85);
    color: #dbeafe;
    padding: 14px;
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-x: auto;
}

.manavisquare-note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(45, 212, 191, 0.32);
    background: rgba(45, 212, 191, 0.1);
}

.manavisquare-note p {
    margin: 0;
    font-size: 0.84rem;
}

.msq-video-list {
    display: grid;
    gap: 18px;
}

.msq-video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.msq-video-card-link:hover .msq-video-card,
.msq-video-card-link:focus-visible .msq-video-card {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.msq-video-card-link:focus-visible {
    outline: none;
}

.msq-video-card {
    display: grid;
    grid-template-columns: 480px 1fr;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.msq-video-thumb-wrap {
    position: relative;
    width: 480px;
    height: 270px;
    justify-self: center;
    align-self: center;
    min-height: 0;
    overflow: hidden;
}

.msq-video-thumb {
    width: 480px;
    height: 270px;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.9);
    display: block;
}

.msq-video-content {
    padding: 18px 18px 18px 0;
}

.msq-video-meta {
    margin-bottom: 8px;
    color: var(--accent-teal);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.msq-video-content h3 {
    margin-bottom: 10px;
    font-size: 1.06rem;
    line-height: 1.6;
}

.msq-video-essences {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.msq-video-essence-chip {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.7rem;
    line-height: 1.4;
    white-space: normal;
    color: #fff;
    border: 1px solid transparent;
}

.msq-video-essence-chip i {
    font-size: 0.65rem;
}

.msq-video-essence-chip--triangle-area {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.msq-video-essence-chip--equal-area-transform {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.msq-video-essence-chip--base-ratio-area-ratio {
    background: linear-gradient(90deg, #0891b2, #0ea5e9);
}

.msq-video-essence-chip--similar-figures {
    background: linear-gradient(90deg, #8b5cf6, #4f46e5);
}

.msq-video-essence-chip--angle-180 {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

.msq-video-essence-chip--common-part {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.msq-video-essence-chip--circle-properties {
    background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.msq-video-content p {
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.msq-video-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.msq-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(90deg, #ef4444, #f97316);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.38);
}

.msq-new-badge-inline {
    position: static;
    margin-left: 8px;
    vertical-align: middle;
}

.msq-detail-grid {
    display: grid;
    gap: 20px;
}

.msq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent-blue);
    font-size: 0.88rem;
}

.msq-back-link:hover {
    color: var(--accent-teal);
}

/* Footer & Status Bar */
footer {
    padding: 80px 0 60px;
    background: #0b0f19;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    cursor: auto !important; /* Allow cursor in footer? */
}
.footer-col h4 { color: var(--syntax-tag); font-size: 1.1rem; }
.footer-col li { font-size: 1rem; }

.status-bar-fixed {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 30px;
    background: #1e293b; 
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 2000;
    justify-content: space-between;
}
.status-item { display: flex; align-items: center; gap: 10px; }

/* Responsive */
@media screen and (max-width: 900px) {
    html { font-size: 16px; }
    body { cursor: auto; padding-bottom: 0; }
    .container { padding: 0 20px; }
    .section-padding { padding: 64px 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 48px; }
    .page-header { padding: 140px 0 56px; }

    body.msq-native-cursor .page-header {
        padding: 122px 0 42px;
    }

    body.msq-native-cursor .page-title {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    body.msq-native-cursor .section-padding {
        padding-top: 46px;
    }

    .msq-book-cta-link {
        align-items: flex-start;
    }

    header {
        top: 12px;
        width: calc(100% - 16px);
        height: 60px;
        padding: 0 12px;
    }

    .header-content { justify-content: space-between; }
    .nav-toggle { display: inline-flex; }
    body.mobile-nav-open { overflow: hidden; }
    .nav-links {
        position: fixed;
        top: 84px;
        left: 8px;
        right: 8px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 1200;
    }
    body.mobile-nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links a {
        width: 100%;
        padding: 11px 12px;
        border-radius: 8px;
    }
    .nav-links a.btn {
        margin-top: 4px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 32px;
    }
    .hero-content { padding: 28px 20px; }
    .hero h1 { font-size: 1.5rem; line-height: 1.5; margin-bottom: 24px; }
    .hero p { font-size: 1rem; margin-bottom: 24px; }
    .hero-trust { margin-top: 20px; padding-top: 18px; }
    .trust-logos {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 14px;
        font-size: 0.85rem;
        line-height: 1.4;
        width: 100%;
    }
    .trust-company {
        width: 100%;
        justify-content: flex-start;
        min-height: 34px;
        font-size: 0.82rem;
    }

    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 28px 20px; }
    .vision-grid { grid-template-columns: 1fr; gap: 24px; }
    .section-subtitle { margin: -24px auto 30px; font-size: 0.92rem; }

    .case-disclosure { margin-bottom: 32px; padding: 18px; }
    .case-disclosure h3 { font-size: 1rem; margin-bottom: 12px; }
    .case-disclaimer { font-size: 0.88rem; }
    .case-detail-card { margin-bottom: 64px; }
    .case-grid-overview { margin-bottom: 40px; }
    .case-header, .case-body, .case-content { padding: 24px; }
    .case-content-grid { grid-template-columns: 1fr; gap: 24px; }
    .timeline-list-card { padding: 18px; }
    .timeline-list-single li { font-size: 0.9rem; padding: 10px 12px 10px 30px; }
    .timeline-list-single li::before { top: 18px; left: 12px; }

    .concept-graphic {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        padding: 20px 14px;
        gap: 10px;
    }
    .graphic-before, .graphic-after {
        gap: 10px;
        font-size: 0.82rem;
    }
    .graphic-before i, .graphic-after i { font-size: 2.3rem; }
    .graphic-before span, .graphic-after span, .graphic-arrow span {
        white-space: nowrap;
        font-size: 0.78rem;
        letter-spacing: 0.02em;
    }
    .graphic-arrow {
        min-width: 52px;
        gap: 6px;
    }
    .graphic-arrow i {
        font-size: 1.2rem;
        transform: none;
    }

    .director-profile-row { flex-direction: column; gap: 20px; margin-bottom: 48px; }
    .company-info-table-wrapper, .message-card, .service-detail-item { padding: 24px; }
    .service-detail-item { margin-bottom: 48px; grid-template-columns: 1fr; gap: 20px; }
    .service-detail-item.reverse .service-detail-content,
    .service-detail-item.reverse .service-detail-image {
        order: initial;
    }
    .check-list li { font-size: 0.9rem; padding: 10px 12px 10px 30px; }
    .check-list li::before { top: 18px; left: 12px; }
    .consulting-cta { padding: 24px 18px; }
    .consulting-cta h2 { font-size: 1.2rem; }
    .cta-checklist li { font-size: 0.9rem; padding: 10px 12px 10px 30px; }
    .cta-checklist li::before { top: 10px; left: 10px; }

    .lead-resource-section {
        padding-bottom: 34px;
    }
    .contact-form-section {
        padding-top: 34px;
    }
    .lead-resource-hero {
        margin-bottom: 26px;
    }
    .lead-resource-hero .section-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }
    .lead-resource-kicker {
        font-size: 0.72rem;
        padding: 6px 12px;
    }
    .lead-resource-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lead-resource-card {
        padding: 20px 16px;
    }
    .lead-resource-card h3 {
        font-size: 1rem;
        line-height: 1.6;
    }
    .lead-resource-card p {
        font-size: 0.9rem;
    }
    .lead-resource-footer {
        margin-top: 20px;
        padding: 18px 14px;
    }

    .manavisquare-flow {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .manavisquare-step {
        padding: 20px;
    }

    .manavisquare-output-grid {
        grid-template-columns: 1fr;
    }

    .manavisquare-code-card pre {
        font-size: 0.76rem;
    }

    .manavisquare-live-grid {
        grid-template-columns: 1fr;
    }

    .manavisquare-player-card {
        padding: 18px;
    }

    .msq-video-official-grid {
        grid-template-columns: 1fr;
    }

    .msq-official-pane {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.25);
        padding-left: 0;
        padding-top: 14px;
    }

    .manavisquare-controls {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 10px;
    }

    .manavisquare-analysis-grid {
        grid-template-columns: 1fr;
    }

    .msq-video-card {
        grid-template-columns: 1fr;
    }

    .msq-video-thumb-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .msq-video-thumb {
        width: 100%;
        height: 100%;
    }

    .msq-video-content {
        padding: 14px;
    }

    footer { margin-top: 64px; padding: 56px 0 40px; }
    .status-bar-fixed { display: none; }

    .cursor-dot, .cursor-outline { display: none; } /* Hide cursor on mobile */
}
