/**
 * Mugen Site - Public Website Frontend Stylesheet
 * 100% Zero-CDN | Clean Monochrome Aesthetic | Dark & Light Modes
 */

:root {
    --web-bg: #090a0d;
    --web-surface: #12151b;
    --web-surface-elevated: #1a1e27;
    --web-surface-hover: #222733;
    --web-border: rgba(255, 255, 255, 0.08);
    --web-border-strong: rgba(255, 255, 255, 0.16);
    --web-text-main: #f8fafc;
    --web-text-muted: #94a3b8;
    --web-text-subtle: #64748b;
    --web-accent: #ffffff;
    --web-accent-contrast: #000000;
    --web-theme-accent: #6366f1;
    --web-theme-accent-rgb: 99, 102, 241;
    --web-theme-accent-contrast: #ffffff;
    --web-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --web-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-bs-theme="light"] {
    --web-bg: #f8fafc;
    --web-surface: #ffffff;
    --web-surface-elevated: #f1f5f9;
    --web-surface-hover: #e2e8f0;
    --web-border: rgba(0, 0, 0, 0.08);
    --web-border-strong: rgba(0, 0, 0, 0.16);
    --web-text-main: #0f172a;
    --web-text-muted: #475569;
    --web-text-subtle: #94a3b8;
    --web-accent: #0f172a;
    --web-accent-contrast: #ffffff;
    --web-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

/* User Selection Highlight */
::selection {
    background: var(--web-theme-accent);
    color: var(--web-theme-accent-contrast);
}

body.web-body {
    background-color: var(--web-bg);
    color: var(--web-text-main);
    font-family: var(--web-font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Public Header & Navbar */
.web-navbar {
    background: rgba(18, 21, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--web-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.25s ease, border-color 0.25s ease;
}

[data-bs-theme="light"] .web-navbar {
    background: rgba(255, 255, 255, 0.85);
}

.web-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--web-text-main);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.web-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.web-nav-link {
    color: var(--web-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.web-nav-link:hover {
    color: var(--web-text-main);
    background: var(--web-surface-elevated);
}

.web-nav-link.active {
    color: var(--web-theme-accent) !important;
    background: rgba(var(--web-theme-accent-rgb), 0.12);
    font-weight: 600;
}

.web-theme-btn {
    background: var(--web-surface-elevated);
    border: 1px solid var(--web-border);
    color: var(--web-text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.web-theme-btn:hover {
    background: var(--web-surface-hover);
    border-color: var(--web-border-strong);
}

/* Hero Section */
.web-hero {
    padding: 85px 0 65px;
    position: relative;
    overflow: hidden;
}

.web-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100vw);
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--web-theme-accent-rgb), 0.22) 0%, rgba(var(--web-theme-accent-rgb), 0.05) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.web-hero .container {
    position: relative;
    z-index: 1;
}

.web-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(var(--web-theme-accent-rgb), 0.1);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.35);
    color: var(--web-text-main);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(var(--web-theme-accent-rgb), 0.15);
    transition: all 0.25s ease;
}

.web-hero-badge i {
    color: var(--web-theme-accent);
}

.web-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: var(--web-text-main);
}

.web-hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--web-text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.web-btn-primary {
    background: var(--web-theme-accent);
    color: var(--web-theme-accent-contrast);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    box-shadow: 0 8px 24px -4px rgba(var(--web-theme-accent-rgb), 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-btn-primary:hover {
    opacity: 0.93;
    color: var(--web-theme-accent-contrast);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(var(--web-theme-accent-rgb), 0.55);
}

.web-btn-outline {
    background: var(--web-surface);
    color: var(--web-text-main);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--web-border-strong);
    transition: all 0.2s ease;
}

.web-btn-outline:hover {
    background: rgba(var(--web-theme-accent-rgb), 0.08);
    color: var(--web-theme-accent);
    border-color: var(--web-theme-accent);
    transform: translateY(-1px);
}

/* Social Share / Open Graph Live Simulation Card */
.web-og-preview-card {
    background: var(--web-surface);
    border: 1px solid var(--web-border-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--web-card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
    max-width: 760px;
    margin: 0 auto;
}

.web-og-preview-card:hover {
    border-color: var(--web-text-subtle);
    transform: translateY(-3px);
}

.web-og-image-wrap {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: #000;
    overflow: hidden;
    position: relative;
}

.web-og-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.web-og-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.web-og-meta-body {
    padding: 20px 24px;
    border-top: 1px solid var(--web-border);
}

.web-og-domain {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--web-text-subtle);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.web-og-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--web-text-main);
    margin-bottom: 8px;
    line-height: 1.35;
}

.web-og-desc {
    font-size: 0.9rem;
    color: var(--web-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Feature Grid */
.web-feature-card {
    background: var(--web-surface);
    border: 1px solid var(--web-border);
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-feature-card:hover {
    background: var(--web-surface-elevated);
    border-color: rgba(var(--web-theme-accent-rgb), 0.35);
    box-shadow: 0 12px 28px -4px rgba(var(--web-theme-accent-rgb), 0.12);
    transform: translateY(-2px);
}

.web-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--web-theme-accent-rgb), 0.1);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--web-theme-accent);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.web-feature-card:hover .web-feature-icon {
    background: var(--web-theme-accent);
    color: var(--web-theme-accent-contrast);
    box-shadow: 0 4px 16px rgba(var(--web-theme-accent-rgb), 0.4);
}

.web-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--web-text-main);
}

.web-feature-desc {
    font-size: 0.9rem;
    color: var(--web-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ========================================================
   THEME ACCENT LIVE CONFIRMATION SHOWCASE STUDIO SECTION
   ======================================================== */
.web-accent-section {
    position: relative;
    padding: 60px 0;
    background: var(--web-surface);
    border-top: 1px solid var(--web-border);
    border-bottom: 1px solid var(--web-border);
    overflow: hidden;
}

.web-accent-section::before {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--web-theme-accent-rgb), 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.web-accent-showcase-box {
    background: var(--web-surface-elevated);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.25);
    border-radius: 18px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.web-accent-showcase-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--web-theme-accent), transparent);
}

.web-accent-pill-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--web-theme-accent-rgb), 0.1);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--web-theme-accent);
}

.web-accent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--web-theme-accent);
    display: inline-block;
    box-shadow: 0 0 10px var(--web-theme-accent);
    animation: webAccentDotPulse 2s infinite;
}

@keyframes webAccentDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--web-theme-accent-rgb), 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--web-theme-accent-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--web-theme-accent-rgb), 0); }
}

.web-accent-demo-card {
    background: var(--web-surface);
    border: 1px solid var(--web-border);
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.web-accent-demo-card:hover {
    border-color: rgba(var(--web-theme-accent-rgb), 0.4);
    box-shadow: 0 8px 24px -4px rgba(var(--web-theme-accent-rgb), 0.18);
    transform: translateY(-2px);
}

.web-accent-badge-solid {
    background: var(--web-theme-accent);
    color: var(--web-theme-accent-contrast);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.web-accent-badge-subtle {
    background: rgba(var(--web-theme-accent-rgb), 0.12);
    color: var(--web-theme-accent);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.3);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.web-accent-progress-bar {
    height: 8px;
    border-radius: 10px;
    background: rgba(var(--web-theme-accent-rgb), 0.15);
    overflow: hidden;
    position: relative;
}

.web-accent-progress-fill {
    height: 100%;
    background: var(--web-theme-accent);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(var(--web-theme-accent-rgb), 0.6);
    width: 82%;
}

.web-accent-chip {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Consolas', monospace;
    font-weight: 600;
    background: rgba(var(--web-theme-accent-rgb), 0.1);
    color: var(--web-theme-accent);
    border: 1px solid rgba(var(--web-theme-accent-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* Meta Code Inspector Box */
.web-code-box {
    background: var(--web-surface);
    border: 1px solid var(--web-border);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--web-text-muted);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Public Footer */
.web-footer {
    background: var(--web-surface);
    border-top: 1px solid var(--web-border);
    padding: 40px 0 30px;
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--web-text-subtle);
}

.web-footer a {
    color: var(--web-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.web-footer a:hover {
    color: var(--web-text-main);
}

/* =========================================================
   DEFENSIVE SPACING UTILITIES (ANTI-COLLISION FOR ICONS & TEXT)
   ========================================================= */
.gap-1-5, .gap-1\.5 { gap: 6px !important; }
.gap-2-5, .gap-2\.5 { gap: 10px !important; }
.me-1-5, .me-1\.5 { margin-right: 6px !important; }
.ms-1-5, .ms-1\.5 { margin-left: 6px !important; }
.py-1-5, .py-1\.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
.px-1-5, .px-1\.5 { padding-left: 6px !important; padding-right: 6px !important; }
.px-2-5, .px-2\.5 { padding-left: 10px !important; padding-right: 10px !important; }

/* =========================================================
   MONO BADGES & COLOR STATUS PILLS (ZERO-CDN)
   ========================================================= */
.badge-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3.5px 11px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: var(--web-surface-elevated);
    color: var(--web-text-muted);
    border: 1px solid var(--web-border);
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-mono.smaller {
    font-size: 0.7rem;
    padding: 2px 8px;
    gap: 5px;
}

.badge-mono.badge-mono-success,
.badge-mono-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

[data-bs-theme="light"] .badge-mono.badge-mono-success,
[data-bs-theme="light"] .badge-mono-success {
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.badge-mono.badge-mono-danger,
.badge-mono-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

[data-bs-theme="light"] .badge-mono.badge-mono-danger,
[data-bs-theme="light"] .badge-mono-danger {
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.badge-mono.badge-mono-warning,
.badge-mono-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

[data-bs-theme="light"] .badge-mono.badge-mono-warning,
[data-bs-theme="light"] .badge-mono-warning {
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
    background-color: rgba(245, 158, 11, 0.1) !important;
}

/* =========================================================
   CONTACT CARD SUBMIT OVERLAY ANIMATION
   ========================================================= */
.contact-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 13, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: inherit;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

[data-bs-theme="light"] .contact-card-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.contact-card-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-overlay-content {
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card-overlay.active .contact-overlay-content {
    transform: scale(1);
}

.contact-spinner {
    font-size: 2.4rem;
    color: var(--web-theme-accent);
    display: inline-block;
    margin-bottom: 12px;
}

.contact-overlay-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--web-text-main);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.contact-overlay-subtext {
    font-size: 0.82rem;
    color: var(--web-text-muted);
    margin-top: 4px;
}

