/* YERP Design System & CSS Styles */
:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(22, 30, 49, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-blue: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
}

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

body {
    font-family: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Blur Blobs */
.bg-blur-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    right: -100px;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #10b981;
    top: 40%;
    left: 35%;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-badge {
    font-size: 11px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.pill-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Layout */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.badge-pill {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.25);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); }
.icon-purple { background: rgba(139, 92, 246, 0.15); }
.icon-green { background: rgba(16, 185, 129, 0.15); }
.icon-orange { background: rgba(245, 158, 11, 0.15); }

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    margin: 2px 0;
}

.metric-sub {
    font-size: 12px;
    font-weight: 500;
}

.text-green { color: #34d399; }
.text-blue { color: #60a5fa; }

/* Diagnostics Tool */
.diagnostic-section {
    margin-top: 10px;
}

.main-diag-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.diag-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.diag-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diag-key {
    font-size: 12px;
    color: var(--text-muted);
}

.diag-val {
    font-size: 15px;
    font-weight: 600;
}

.highlight-green { color: #34d399; }
.highlight-blue { color: #60a5fa; }

/* Terminal Console */
.terminal-box {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    font-family: monospace;
}

.terminal-header {
    background: #111827;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.term-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 16px;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.log-line {
    line-height: 1.4;
}

.text-dim { color: #64748b; }
.text-success { color: #34d399; }
.text-info { color: #38bdf8; }

/* ERP Modules Section */
.modules-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.module-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-icon {
    font-size: 32px;
}

.module-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.module-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.mod-footer {
    margin-top: auto;
    padding-top: 12px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.hidden { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .nav-menu { display: none; }
}
