/* ═══════════════════════════════════════════
   BYLONIS DESIGN SYSTEM — "The Vault"
   Enterprise On-Premise Observability
═══════════════════════════════════════════ */

:root {
    /* Depths */
    --void: #020608;
    --abyss: #040A12;
    --deep: #081420;
    --surface: #0C1E30;
    --raised: #112A40;
    --elevated: #183650;

    /* Signal Colors */
    --signal-green: #00D4A0;
    --signal-green-dim: #00D4A033;
    --signal-green-glow: #00D4A018;
    --signal-purple: #7C6AFF;
    --signal-purple-dim: #7C6AFF33;
    --signal-amber: #F5A623;
    --signal-red: #FF4D4D;

    /* Text */
    --text-primary: #E8EDF2;
    --text-secondary: #8899AA;
    --text-tertiary: #556677;
    --text-inverse: #040A12;

    /* Light surface */
    --light-bg: #F3F6F9;
    --light-surface: #FFFFFF;
    --light-border: #DCE3EB;
    --light-text: #0C1E30;
    --light-text-secondary: #556B7F;

    /* Typography */
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 140px;

    /* Borders */
    --border-subtle: 1px solid rgba(255,255,255,0.06);
    --border-glow-green: 1px solid rgba(0,212,160,0.25);
    --border-glow-purple: 1px solid rgba(124,106,255,0.25);
}

/* ── Reset & Base ── */
.bylonis-theme,
.bylonis-theme * {
    box-sizing: border-box;
}

.bylonis-theme body,
body.bylonis-theme {
    font-family: var(--font-body) !important;
    background: var(--void) !important;
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Override Fort theme base styles for our pages */
.bylonis-home .page_content_wrap,
.bylonis-page .page_content_wrap {
    padding: 0 !important;
    background: transparent !important;
}

.bylonis-home #content,
.bylonis-page #content {
    padding: 0 !important;
}

.bylonis-home .content_wrap,
.bylonis-page .content_wrap {
    max-width: none !important;
    padding: 0 !important;
}

/* ── Container ── */
.bl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.bl-container--narrow {
    max-width: 860px;
}

/* ── Typography ── */
.bl-display {
    font-family: var(--font-display) !important;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.bl-heading {
    font-family: var(--font-display) !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bl-label {
    font-family: var(--font-mono) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bl-body-lg {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Buttons ── */
.bl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.bl-btn--primary {
    background: var(--signal-green);
    color: var(--text-inverse);
    box-shadow: 0 0 30px rgba(0,212,160,0.2);
}
.bl-btn--primary:hover {
    background: #00E8B0;
    box-shadow: 0 0 50px rgba(0,212,160,0.35);
    transform: translateY(-1px);
    color: var(--text-inverse);
    text-decoration: none;
}

.bl-btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.bl-btn--secondary:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    text-decoration: none;
}

.bl-btn--light {
    background: var(--deep);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}
.bl-btn--light:hover {
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
}

.bl-btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ── Section base ── */
.bl-section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.bl-section--dark { background: var(--abyss); }
.bl-section--deep { background: var(--deep); }
.bl-section--void { background: var(--void); }
.bl-section--light {
    background: var(--light-bg);
    color: var(--light-text);
}
.bl-section--light .bl-body-lg { color: var(--light-text-secondary); }

.bl-section__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.bl-section__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--signal-green);
    box-shadow: 0 0 8px var(--signal-green);
    animation: bl-pulse-dot 2.5s ease-in-out infinite;
}

.bl-section__title {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: var(--space-lg);
}

.bl-section__subtitle {
    max-width: 620px;
}

/* ── Scroll Reveal ── */
.bl-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.bl-reveal.visible { opacity: 1; transform: translateY(0); }
.bl-reveal-delay-1 { transition-delay: 0.1s; }
.bl-reveal-delay-2 { transition-delay: 0.2s; }
.bl-reveal-delay-3 { transition-delay: 0.3s; }
.bl-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Animations ── */
@keyframes bl-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bl-fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bl-scan {
    0% { top: 0; opacity: 0; }
    5% { opacity: 0.3; }
    95% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* ── Badge ── */
.bl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

.bl-badge svg { color: var(--signal-green); flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .bl-section { padding: var(--space-3xl) 0; }
    .bl-btn-group { flex-direction: column; }
    .bl-btn { width: 100%; justify-content: center; }
}
